_cef_browser_t

Struct _cef_browser_t 

Source
#[repr(C)]
pub struct _cef_browser_t {
Show 22 fields pub base: cef_base_ref_counted_t, pub is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>, pub get_host: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_browser_host_t>, pub can_go_back: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>, pub go_back: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>, pub can_go_forward: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>, pub go_forward: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>, pub is_loading: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>, pub reload: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>, pub reload_ignore_cache: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>, pub stop_load: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>, pub get_identifier: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>, pub is_same: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, that: *mut _cef_browser_t) -> c_int>, pub is_popup: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>, pub has_document: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>, pub get_main_frame: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t>, pub get_focused_frame: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t>, pub get_frame_by_identifier: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, identifier: *const cef_string_t) -> *mut _cef_frame_t>, pub get_frame_by_name: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, name: *const cef_string_t) -> *mut _cef_frame_t>, pub get_frame_count: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> usize>, pub get_frame_identifiers: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, identifiers: cef_string_list_t)>, pub get_frame_names: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, names: cef_string_list_t)>,
}
Expand description

Structure used to represent a browser. When used in the browser process the functions of this structure may be called on any thread unless otherwise indicated in the comments. When used in the render process the functions of this structure may only be called on the main thread.

NOTE: This struct is allocated DLL-side.

Fields§

§base: cef_base_ref_counted_t

Base structure.

§is_valid: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>

True if this object is currently valid. This will return false (0) after cef_life_span_handler_t::OnBeforeClose is called.

§get_host: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_browser_host_t>

Returns the browser host object. This function can only be called in the browser process.

§can_go_back: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>

Returns true (1) if the browser can navigate backwards.

§go_back: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>

Navigate backwards.

§can_go_forward: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>

Returns true (1) if the browser can navigate forwards.

§go_forward: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>

Navigate forwards.

§is_loading: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>

Returns true (1) if the browser is currently loading.

§reload: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>

Reload the current page.

§reload_ignore_cache: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>

Reload the current page ignoring any cached data.

§stop_load: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>

Stop loading the page.

§get_identifier: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>

Returns the globally unique identifier for this browser. This value is also used as the tabId for extension APIs.

§is_same: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, that: *mut _cef_browser_t) -> c_int>

Returns true (1) if this object is pointing to the same handle as |that| object.

§is_popup: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>

Returns true (1) if the browser is a popup.

§has_document: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> c_int>

Returns true (1) if a document has been loaded in the browser.

§get_main_frame: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t>

Returns the main (top-level) frame for the browser. In the browser process this will return a valid object until after cef_life_span_handler_t::OnBeforeClose is called. In the renderer process this will return NULL if the main frame is hosted in a different renderer process (e.g. for cross-origin sub-frames). The main frame object will change during cross-origin navigation or re-navigation after renderer process termination (due to crashes, etc).

§get_focused_frame: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t>

Returns the focused frame for the browser.

§get_frame_by_identifier: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, identifier: *const cef_string_t) -> *mut _cef_frame_t>

Returns the frame with the specified identifier, or NULL if not found.

§get_frame_by_name: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, name: *const cef_string_t) -> *mut _cef_frame_t>

Returns the frame with the specified name, or NULL if not found.

§get_frame_count: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> usize>

Returns the number of frames that currently exist.

§get_frame_identifiers: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, identifiers: cef_string_list_t)>

Returns the identifiers of all existing frames.

§get_frame_names: Option<unsafe extern "C" fn(self_: *mut _cef_browser_t, names: cef_string_list_t)>

Returns the names of all existing frames.

Trait Implementations§

Source§

impl Clone for _cef_browser_t

Source§

fn clone(&self) -> _cef_browser_t

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for _cef_browser_t

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for _cef_browser_t

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.