cef_display_handler_t

Implement this structure to handle events related to browser display state. The functions of this structure will be called on the UI thread.

version(cef && embedded_cef_bindings)
extern (C)
struct cef_display_handler_t {
extern (System)
void function(cef_display_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, const(cef_string_t)* url) nothrow on_address_change;
extern (System)
void function(cef_display_handler_t* self, cef_browser_t* browser, const(cef_string_t)* title) nothrow on_title_change;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

on_auto_resize
int function(cef_display_handler_t* self, cef_browser_t* browser, const(cef_size_t)* new_size) nothrow on_auto_resize;

Called when auto-resize is enabled via

on_console_message
int function(cef_display_handler_t* self, cef_browser_t* browser, cef_log_severity_t level, const(cef_string_t)* message, const(cef_string_t)* source, int line) nothrow on_console_message;

Called to display a console message. Return true (1) to stop the message from being output to the console.

on_cursor_change
int function(cef_display_handler_t* self, cef_browser_t* browser, c_ulong cursor, cef_cursor_type_t type, const(cef_cursor_info_t)* custom_cursor_info) nothrow on_cursor_change;

Called when the browser's cursor has changed. If |type| is CT_CUSTOM then |custom_cursor_info| will be populated with the custom cursor information. Return true (1) if the cursor change was handled or false (0) for default handling.

on_favicon_urlchange
void function(cef_display_handler_t* self, cef_browser_t* browser, cef_string_list_t icon_urls) nothrow on_favicon_urlchange;

Called when the page icon changes.

on_fullscreen_mode_change
void function(cef_display_handler_t* self, cef_browser_t* browser, int fullscreen) nothrow on_fullscreen_mode_change;

Called when web content in the page has toggled fullscreen mode. If |fullscreen| is true (1) the content will automatically be sized to fill the browser content area. If |fullscreen| is false (0) the content will automatically return to its original size and position. With the Alloy runtime the client is responsible for triggering the fullscreen transition (for example, by calling cef_window_t::SetFullscreen when using Views). With the Chrome runtime the fullscreen transition will be triggered automatically. The cef_window_delegate_t::OnWindowFullscreenTransition function will be called during the fullscreen transition for notification purposes.

on_loading_progress_change
void function(cef_display_handler_t* self, cef_browser_t* browser, double progress) nothrow on_loading_progress_change;

Called when the overall page loading progress has changed. |progress| ranges from 0.0 to 1.0.

on_media_access_change
void function(cef_display_handler_t* self, cef_browser_t* browser, int has_video_access, int has_audio_access) nothrow on_media_access_change;

Called when the browser's access to an audio and/or video source has changed.

on_status_message
void function(cef_display_handler_t* self, cef_browser_t* browser, const(cef_string_t)* value) nothrow on_status_message;

Called when the browser receives a status message. |value| contains the text that will be displayed in the status message.

on_tooltip
int function(cef_display_handler_t* self, cef_browser_t* browser, cef_string_t* text) nothrow on_tooltip;

Called when the browser is about to display a tooltip. |text| contains the text that will be displayed in the tooltip. To handle the display of the tooltip yourself return true (1). Otherwise, you can optionally modify |text| and then return false (0) to allow the browser to display the tooltip. When window rendering is disabled the application is responsible for drawing tooltips and the return value is ignored.

Meta