Chromium Embedded Framework (CEF)  117.1.0+ga287baf+chromium-117.0.5938.62
CefV8Accessor Class Referenceabstract

Interface that should be implemented to handle V8 accessor calls. More...

#include "include/cef_v8.h"

Inheritance diagram for CefV8Accessor:
CefBaseRefCounted

Public Member Functions

virtual bool Get (const CefString &name, const CefRefPtr< CefV8Value > object, CefRefPtr< CefV8Value > &retval, CefString &exception)=0
 Handle retrieval the accessor value identified by |name|. More...
 
virtual bool Set (const CefString &name, const CefRefPtr< CefV8Value > object, const CefRefPtr< CefV8Value > value, CefString &exception)=0
 Handle assignment of the accessor value identified by |name|. More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Interface that should be implemented to handle V8 accessor calls.

Accessor identifiers are registered by calling CefV8Value::SetValue(). The methods of this class will be called on the thread associated with the V8 accessor.

Member Function Documentation

◆ Get()

virtual bool CefV8Accessor::Get ( const CefString name,
const CefRefPtr< CefV8Value object,
CefRefPtr< CefV8Value > &  retval,
CefString exception 
)
pure virtual

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 if accessor retrieval was handled.

◆ Set()

virtual bool CefV8Accessor::Set ( const CefString name,
const CefRefPtr< CefV8Value object,
const CefRefPtr< CefV8Value value,
CefString exception 
)
pure virtual

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 if accessor assignment was handled.


The documentation for this class was generated from the following file: