cef_v8interceptor_t

Structure that should be implemented to handle V8 interceptor calls. The functions of this structure will be called on the thread associated with the V8 interceptor. Interceptor's named property handlers (with first argument of type CefString) are called when object is indexed by string. Indexed property handlers (with first argument of type int) are called when object is indexed by integer.

Members

Variables

base
cef_base_ref_counted_t base;

Base structure.

get_byindex
int function(cef_v8interceptor_t* self, int index, cef_v8value_t* object, cef_v8value_t** retval, cef_string_t* exception) nothrow get_byindex;

Handle retrieval of the interceptor value identified by |index|. |object| is the receiver ('this' object) of the interceptor. If retrieval succeeds, set |retval| to the return value. If the requested value does not exist, don't set either |retval| or |exception|. If retrieval fails, set |exception| to the exception that will be thrown. Return true (1) if interceptor retrieval was handled, false (0) otherwise.

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

Handle retrieval of the interceptor value identified by |name|. |object| is the receiver ('this' object) of the interceptor. If retrieval succeeds, set |retval| to the return value. If the requested value does not exist, don't set either |retval| or |exception|. If retrieval fails, set |exception| to the exception that will be thrown. If the property has an associated accessor, it will be called only if you don't set |retval|. Return true (1) if interceptor retrieval was handled, false (0) otherwise.

set_byindex
int function(cef_v8interceptor_t* self, int index, cef_v8value_t* object, cef_v8value_t* value, cef_string_t* exception) nothrow set_byindex;

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

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

Handle assignment of the interceptor value identified by |name|. |object| is the receiver ('this' object) of the interceptor. |value| is the new value being assigned to the interceptor. If assignment fails, set |exception| to the exception that will be thrown. This setter will always be called, even when the property has an associated accessor. Return true (1) if interceptor assignment was handled, false (0) otherwise.

Meta