cef_client_t

Type Alias cef_client_t 

Source
pub type cef_client_t = _cef_client_t;
Expand description

Implement this structure to provide handler implementations.

NOTE: This struct is allocated client-side.

Aliased Type§

#[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(*mut _cef_client_t) -> *mut _cef_audio_handler_t>, pub get_command_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_command_handler_t>, pub get_context_menu_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_context_menu_handler_t>, pub get_dialog_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_dialog_handler_t>, pub get_display_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_display_handler_t>, pub get_download_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_download_handler_t>, pub get_drag_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_drag_handler_t>, pub get_find_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_find_handler_t>, pub get_focus_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_focus_handler_t>, pub get_frame_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_frame_handler_t>, pub get_permission_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_permission_handler_t>, pub get_jsdialog_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_jsdialog_handler_t>, pub get_keyboard_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_keyboard_handler_t>, pub get_life_span_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_life_span_handler_t>, pub get_load_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_load_handler_t>, pub get_print_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_print_handler_t>, pub get_render_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_render_handler_t>, pub get_request_handler: Option<unsafe extern "C" fn(*mut _cef_client_t) -> *mut _cef_request_handler_t>, pub on_process_message_received: Option<unsafe extern "C" fn(*mut _cef_client_t, *mut _cef_browser_t, *mut _cef_frame_t, cef_process_id_t, *mut _cef_process_message_t) -> i32>,
}

Fields§

§base: _cef_base_ref_counted_t

Base structure.

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

Return the handler for audio rendering events.

§get_command_handler: Option<unsafe extern "C" fn(*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(*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(*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(*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(*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(*mut _cef_client_t) -> *mut _cef_drag_handler_t>

Return the handler for drag events.

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

Return the handler for find result events.

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

Return the handler for focus events.

§get_frame_handler: Option<unsafe extern "C" fn(*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(*mut _cef_client_t) -> *mut _cef_permission_handler_t>

Return the handler for permission requests.

§get_jsdialog_handler: Option<unsafe extern "C" fn(*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(*mut _cef_client_t) -> *mut _cef_keyboard_handler_t>

Return the handler for keyboard events.

§get_life_span_handler: Option<unsafe extern "C" fn(*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(*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(*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(*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(*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(*mut _cef_client_t, *mut _cef_browser_t, *mut _cef_frame_t, cef_process_id_t, *mut _cef_process_message_t) -> i32>

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.