_cef_client_t

Struct _cef_client_t 

Source
#[repr(C)]
pub struct _cef_client_t {
Show 20 fields pub base: cef_base_ref_counted_t, pub get_audio_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_audio_handler_t>, pub get_command_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_command_handler_t>, pub get_context_menu_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_context_menu_handler_t>, pub get_dialog_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_dialog_handler_t>, pub get_display_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_display_handler_t>, pub get_download_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_download_handler_t>, pub get_drag_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_drag_handler_t>, pub get_find_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_find_handler_t>, pub get_focus_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_focus_handler_t>, pub get_frame_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_frame_handler_t>, pub get_permission_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_permission_handler_t>, pub get_jsdialog_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_jsdialog_handler_t>, pub get_keyboard_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_keyboard_handler_t>, pub get_life_span_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_life_span_handler_t>, pub get_load_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_load_handler_t>, pub get_print_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_print_handler_t>, pub get_render_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_render_handler_t>, pub get_request_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_request_handler_t>, pub on_process_message_received: Option<unsafe extern "C" fn(self_: *mut _cef_client_t, browser: *mut _cef_browser_t, frame: *mut _cef_frame_t, source_process: cef_process_id_t, message: *mut _cef_process_message_t) -> c_int>,
}
Expand description

Implement this structure to provide handler implementations.

NOTE: This struct is allocated client-side.

Fields§

§base: cef_base_ref_counted_t

Base structure.

§get_audio_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_audio_handler_t>

Return the handler for audio rendering events.

§get_command_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_command_handler_t>

Return the handler for commands. If no handler is provided the default implementation will be used.

§get_context_menu_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_context_menu_handler_t>

Return the handler for context menus. If no handler is provided the default implementation will be used.

§get_dialog_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_dialog_handler_t>

Return the handler for dialogs. If no handler is provided the default implementation will be used.

§get_display_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_display_handler_t>

Return the handler for browser display state events.

§get_download_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_download_handler_t>

Return the handler for download events. If no handler is returned downloads will not be allowed.

§get_drag_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_drag_handler_t>

Return the handler for drag events.

§get_find_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_find_handler_t>

Return the handler for find result events.

§get_focus_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_focus_handler_t>

Return the handler for focus events.

§get_frame_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_frame_handler_t>

Return the handler for events related to cef_frame_t lifespan. This function will be called once during cef_browser_t creation and the result will be cached for performance reasons.

§get_permission_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_permission_handler_t>

Return the handler for permission requests.

§get_jsdialog_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_jsdialog_handler_t>

Return the handler for JavaScript dialogs. If no handler is provided the default implementation will be used.

§get_keyboard_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_keyboard_handler_t>

Return the handler for keyboard events.

§get_life_span_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_life_span_handler_t>

Return the handler for browser life span events.

§get_load_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_load_handler_t>

Return the handler for browser load status events.

§get_print_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_print_handler_t>

Return the handler for printing on Linux. If a print handler is not provided then printing will not be supported on the Linux platform.

§get_render_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_render_handler_t>

Return the handler for off-screen rendering events.

§get_request_handler: Option<unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_request_handler_t>

Return the handler for browser request events.

§on_process_message_received: Option<unsafe extern "C" fn(self_: *mut _cef_client_t, browser: *mut _cef_browser_t, frame: *mut _cef_frame_t, source_process: cef_process_id_t, message: *mut _cef_process_message_t) -> c_int>

Called when a new message is received from a different process. Return true (1) if the message was handled or false (0) otherwise. It is safe to keep a reference to |message| outside of this callback.

Trait Implementations§

Source§

impl Clone for _cef_client_t

Source§

fn clone(&self) -> _cef_client_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_client_t

Source§

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

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

impl Copy for _cef_client_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.