The OpenD Programming Language

cef_focus_handler_t

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

version(cef && embedded_cef_bindings)
extern (C)
struct cef_focus_handler_t {
extern (System)
void function(cef_focus_handler_t* self, cef_browser_t* browser, int next) nothrow on_take_focus;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

on_got_focus
void function(cef_focus_handler_t* self, cef_browser_t* browser) nothrow on_got_focus;

Called when the browser component has received focus.

on_set_focus
int function(cef_focus_handler_t* self, cef_browser_t* browser, cef_focus_source_t source) nothrow on_set_focus;

where the focus request is originating from. Return false (0) to allow the focus to be set or true (1) to cancel setting the focus.

Meta