Chromium Embedded Framework (CEF)  109.0.1+gcd5e37a+chromium-109.0.5414.8
CefV8Handler Class Referenceabstract

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

#include "include/cef_v8.h"

Inheritance diagram for CefV8Handler:
CefBaseRefCounted

Public Member Functions

virtual bool Execute (const CefString &name, CefRefPtr< CefV8Value > object, const CefV8ValueList &arguments, CefRefPtr< CefV8Value > &retval, CefString &exception)=0
 Handle execution of the function 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 function calls.

The methods of this class will be called on the thread associated with the V8 function.

Member Function Documentation

◆ Execute()

virtual bool CefV8Handler::Execute ( const CefString name,
CefRefPtr< CefV8Value object,
const CefV8ValueList arguments,
CefRefPtr< CefV8Value > &  retval,
CefString exception 
)
pure virtual

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


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