#[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_tBase 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
impl Clone for _cef_browser_t
Source§fn clone(&self) -> _cef_browser_t
fn clone(&self) -> _cef_browser_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more