cef_extension_handler_t.on_before_browser

Called when an extension API (e.g. chrome.tabs.create) requests creation of a new browser. |extension| and |browser| are the source of the API call. |active_browser| may optionally be specified via the windowId property or returned via the get_active_browser() callback and provides the default |client| and |settings| values for the new browser. |index| is the position value optionally specified via the index property. |url| is the URL that will be loaded in the browser. |active| is true (1) if the new browser should be active when opened. To allow creation of the browser optionally modify |windowInfo|, |client| and |settings| and return false (0). To cancel creation of the browser return true (1). Successful creation will be indicated by a call to

More...
struct cef_extension_handler_t
extern (System)
int function(cef_extension_handler_t* self, cef_extension_t* extension, cef_browser_t* browser, cef_browser_t* active_browser, int index, const(cef_string_t)* url, int active, cef_window_info_t* windowInfo, cef_client_t** client, cef_browser_settings_t* settings) nothrow on_before_browser;

Detailed Description

cef life span handler t

:OnAfterCreated. Any modifications to |windowInfo| will be ignored if |active_browser| is wrapped in a cef_browser_view_t.

Meta