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