cef_v8_handler_t

Type Alias cef_v8_handler_t 

Source
pub type cef_v8_handler_t = _cef_v8_handler_t;
Expand description

Structure that should be implemented to handle V8 function calls. The functions of this structure will be called on the thread associated with the V8 function.

NOTE: This struct is allocated client-side.

Aliased Type§

#[repr(C)]
pub struct cef_v8_handler_t { pub base: _cef_base_ref_counted_t, pub execute: Option<unsafe extern "C" fn(*mut _cef_v8_handler_t, *const _cef_string_utf16_t, *mut _cef_v8_value_t, usize, *const *mut _cef_v8_value_t, *mut *mut _cef_v8_value_t, *mut _cef_string_utf16_t) -> i32>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§execute: Option<unsafe extern "C" fn(*mut _cef_v8_handler_t, *const _cef_string_utf16_t, *mut _cef_v8_value_t, usize, *const *mut _cef_v8_value_t, *mut *mut _cef_v8_value_t, *mut _cef_string_utf16_t) -> i32>

Handle execution of the function identified by |name|. |object| is the receiver (‘this’ object) of the function. |arguments| is the list of arguments passed to the function. If execution succeeds set |retval| to the function return value. If execution fails set |exception| to the exception that will be thrown. Return true (1) if execution was handled.