The OpenD Programming Language

cef_browser_process_handler_t

Structure used to implement browser process callbacks. The functions of this structure will be called on the browser process main thread unless otherwise indicated.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_default_client
cef_client_t* function(cef_browser_process_handler_t* self) nothrow get_default_client;

Return the default client for use with a newly created browser window (cef_browser_t object). If null is returned the cef_browser_t will be unmanaged (no callbacks will be executed for that cef_browser_t) and application shutdown will be blocked until the browser window is closed manually. This function is currently only used with the Chrome runtime when creating new browser windows via Chrome UI.

get_default_request_context_handler
cef_request_context_handler_t* function(cef_browser_process_handler_t* self) nothrow get_default_request_context_handler;

Return the default handler for use with a new user or incognito profile (cef_request_context_t object). If null is returned the cef_request_context_t will be unmanaged (no callbacks will be executed for that cef_request_context_t). This function is currently only used with the Chrome runtime when creating new browser windows via Chrome UI.

on_already_running_app_relaunch
int function(cef_browser_process_handler_t* self, cef_command_line_t* command_line, const(cef_string_t)* current_directory) nothrow on_already_running_app_relaunch;

Implement this function to provide app-specific behavior when an already running app is relaunched with the same CefSettings.root_cache_path value. For example, activate an existing app window or create a new app window. |command_line| will be read-only. Do not keep a reference to |command_line| outside of this function. Return true (1) if the relaunch is handled or false (0) for default relaunch behavior. Default behavior will create a new default styled Chrome window.

on_before_child_process_launch
void function(cef_browser_process_handler_t* self, cef_command_line_t* command_line) nothrow on_before_child_process_launch;

Called before a child process is launched. Will be called on the browser process UI thread when launching a render process and on the browser process IO thread when launching a GPU process. Provides an opportunity to modify the child process command line. Do not keep a reference to |command_line| outside of this function.

on_context_initialized
void function(cef_browser_process_handler_t* self) nothrow on_context_initialized;

Called on the browser process UI thread immediately after the CEF context has been initialized.

on_register_custom_preferences
void function(cef_browser_process_handler_t* self, cef_preferences_type_t type, cef_preference_registrar_t* registrar) nothrow on_register_custom_preferences;

time at application startup. See related cef_settings_t.cache_path and cef_settings_t.persist_user_preferences configuration.

on_schedule_message_pump_work
void function(cef_browser_process_handler_t* self, long delay_ms) nothrow on_schedule_message_pump_work;

Called from any thread when work has been scheduled for the browser process main (UI) thread. This callback is used in combination with cef_settings_t.external_message_pump and cef_do_message_loop_work() in cases where the CEF message loop must be integrated into an existing application message loop (see additional comments and warnings on CefDoMessageLoopWork). This callback should schedule a cef_do_message_loop_work() call to happen on the main (UI) thread. |delay_ms| is the requested delay in milliseconds. If |delay_ms| is <= 0 then the call should happen reasonably soon. If |delay_ms| is > 0 then the call should be scheduled to happen after the specified delay and any currently pending scheduled call should be cancelled.

Meta