The OpenD Programming Language

cef_v8accessor_t

Structure that should be implemented to handle V8 accessor calls. Accessor identifiers are registered by calling cef_v8value_t::set_value(). The functions of this structure will be called on the thread associated with the V8 accessor.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get
int function(cef_v8accessor_t* self, const(cef_string_t)* name, cef_v8value_t* object, cef_v8value_t** retval, cef_string_t* exception) nothrow get;

Handle retrieval the accessor value identified by |name|. |object| is the receiver ('this' object) of the accessor. If retrieval succeeds set |retval| to the return value. If retrieval fails set |exception| to the exception that will be thrown. Return true (1) if accessor retrieval was handled.

set
int function(cef_v8accessor_t* self, const(cef_string_t)* name, cef_v8value_t* object, cef_v8value_t* value, cef_string_t* exception) nothrow set;

Handle assignment of the accessor value identified by |name|. |object| is the receiver ('this' object) of the accessor. |value| is the new value being assigned to the accessor. If assignment fails set |exception| to the exception that will be thrown. Return true (1) if accessor assignment was handled.

Meta