cef_render_process_handler_t

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

version(cef && embedded_cef_bindings)
extern (C)
struct cef_render_process_handler_t {
extern (System)
void function(cef_render_process_handler_t* self) nothrow on_web_kit_initialized;
}

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_load_handler
cef_load_handler_t* function(cef_render_process_handler_t* self) nothrow get_load_handler;

Return the handler for browser load status events.

on_browser_created
void function(cef_render_process_handler_t* self, cef_browser_t* browser, cef_dictionary_value_t* extra_info) nothrow on_browser_created;

destroyed. |extra_info| is an optional read-only value originating from

on_browser_destroyed
void function(cef_render_process_handler_t* self, cef_browser_t* browser) nothrow on_browser_destroyed;

Called before a browser is destroyed.

on_context_created
void function(cef_render_process_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_v8context_t* context) nothrow on_context_created;

Called immediately after the V8 context for a frame has been created. To retrieve the JavaScript 'window' object use the cef_v8context_t::get_global() function. V8 handles can only be accessed from the thread on which they are created. A task runner for posting tasks on the associated thread can be retrieved via the cef_v8context_t::get_task_runner() function.

on_context_released
void function(cef_render_process_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_v8context_t* context) nothrow on_context_released;

Called immediately before the V8 context for a frame is released. No references to the context should be kept after this function is called.

on_focused_node_changed
void function(cef_render_process_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_domnode_t* node) nothrow on_focused_node_changed;

Called when a new node in the the browser gets focus. The |node| value may be NULL if no specific node has gained focus. The node object passed to this function represents a snapshot of the DOM at the time this function is executed. DOM objects are only valid for the scope of this function. Do not keep references to or attempt to access any DOM objects outside the scope of this function.

on_process_message_received
int function(cef_render_process_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_process_id_t source_process, cef_process_message_t* message) nothrow on_process_message_received;

Called when a new message is received from a different process. Return true (1) if the message was handled or false (0) otherwise. It is safe to keep a reference to |message| outside of this callback.

on_uncaught_exception
void function(cef_render_process_handler_t* self, cef_browser_t* browser, cef_frame_t* frame, cef_v8context_t* context, cef_v8exception_t* exception, cef_v8stack_trace_t* stackTrace) nothrow on_uncaught_exception;

Called for global uncaught exceptions in a frame. Execution of this callback is disabled by default. To enable set cef_settings_t.uncaught_exception_stack_size > 0.

Meta