#[repr(C)]pub struct _cef_app_t {
pub base: cef_base_ref_counted_t,
pub on_before_command_line_processing: Option<unsafe extern "C" fn(self_: *mut _cef_app_t, process_type: *const cef_string_t, command_line: *mut _cef_command_line_t)>,
pub on_register_custom_schemes: Option<unsafe extern "C" fn(self_: *mut _cef_app_t, registrar: *mut _cef_scheme_registrar_t)>,
pub get_resource_bundle_handler: Option<unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t>,
pub get_browser_process_handler: Option<unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_browser_process_handler_t>,
pub get_render_process_handler: Option<unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_render_process_handler_t>,
}Expand description
Implement this structure to provide handler implementations. Methods will be called by the process and/or thread indicated.
Fields§
§base: cef_base_ref_counted_tBase structure.
on_before_command_line_processing: Option<unsafe extern "C" fn(self_: *mut _cef_app_t, process_type: *const cef_string_t, command_line: *mut _cef_command_line_t)>Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium. The |process_type| value will be NULL for the browser process. Do not keep a reference to the cef_command_line_t object passed to this function. The cef_settings_t.command_line_args_disabled value can be used to start with an NULL command-line object. Any values specified in CefSettings that equate to command-line arguments will be set before this function is called. Be cautious when using this function to modify command-line arguments for non-browser processes as this may result in undefined behavior including crashes.
on_register_custom_schemes: Option<unsafe extern "C" fn(self_: *mut _cef_app_t, registrar: *mut _cef_scheme_registrar_t)>Provides an opportunity to register custom schemes. Do not keep a reference to the |registrar| object. This function is called on the main thread for each process and the registered schemes should be the same across all processes.
get_resource_bundle_handler: Option<unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t>Return the handler for resource bundle events. If cef_settings_t.pack_loading_disabled is true (1) a handler must be returned. If no handler is returned resources will be loaded from pack files. This function is called by the browser and render processes on multiple threads.
get_browser_process_handler: Option<unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_browser_process_handler_t>Return the handler for functionality specific to the browser process. This function is called on multiple threads in the browser process.
get_render_process_handler: Option<unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_render_process_handler_t>Return the handler for functionality specific to the render process. This function is called on the render process main thread.
Trait Implementations§
Source§impl Clone for _cef_app_t
impl Clone for _cef_app_t
Source§fn clone(&self) -> _cef_app_t
fn clone(&self) -> _cef_app_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more