Click or drag to resize
CfxV8Interceptor Class

[This is preliminary documentation and is subject to change.]

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 CfxString) 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.
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxClientBase
        ChromiumCfxV8Interceptor

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxV8Interceptor : CfxClientBase

The CfxV8Interceptor type exposes the following members.

Constructors
  NameDescription
Public methodCfxV8Interceptor
Initializes a new instance of the CfxV8Interceptor class
Top
Properties
  NameDescription
Public propertyCallbacksDisabled
When true, all CEF callback events are disabled for this handler. Incoming callbacks will return default values to CEF.
(Inherited from CfxClientBase.)
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted client struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxClientBase.)
Top
Events
  NameDescription
Public eventGetByIndex
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.
Public eventGetByName
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.
Public eventSetByIndex
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.
Public eventSetByName
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.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_v8_capi.h.
See Also