|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBase | +--CefV8Contextin cef_v8.h
Class that encapsulates a V8 context handle. The methods of this class may only be called on the UI thread.
Method Summary | |
virtual bool |
Enter()= 0
Enter this context. |
virtual bool |
Eval( const CefString& code, CefRefPtr< CefV8Value >& retval, CefRefPtr< CefV8Exception >& exception )= 0
Evaluates the specified JavaScript code using this context's global object. |
virtual bool |
Exit()= 0
Exit this context. |
virtual CefRefPtr< CefBrowser > |
GetBrowser()= 0
Returns the browser for this context. |
static CefRefPtr< CefV8Context > |
GetCurrentContext()
Returns the current (top) context object in the V8 context stack. |
static CefRefPtr< CefV8Context > |
GetEnteredContext()
Returns the entered (bottom) context object in the V8 context stack. |
virtual CefRefPtr< CefFrame > |
GetFrame()= 0
Returns the frame for this context. |
virtual CefRefPtr< CefV8Value > |
GetGlobal()= 0
Returns the global object for this context. |
static bool |
InContext()
Returns true if V8 is currently inside a context. |
virtual bool |
IsSame( CefRefPtr< CefV8Context > that )= 0
Returns true if this object is pointing to the same handle as |that| object. |
virtual bool |
IsValid()= 0
Returns true if this object is valid. |
Methods inherited from class CefBase |
AddRef, Release, GetRefCt |
Method Detail |
public virtual bool Enter()= 0;
public virtual bool Eval( const CefString& code, CefRefPtr< CefV8Value >& retval, CefRefPtr< CefV8Exception >& exception )= 0;
public virtual bool Exit()= 0;
public virtual CefRefPtr< CefBrowser > GetBrowser()= 0;
public static CefRefPtr< CefV8Context > GetCurrentContext();
public static CefRefPtr< CefV8Context > GetEnteredContext();
public virtual CefRefPtr< CefFrame > GetFrame()= 0;
public virtual CefRefPtr< CefV8Value > GetGlobal()= 0;
public static bool InContext();
public virtual bool IsSame( CefRefPtr< CefV8Context > that )= 0;
public virtual bool IsValid()= 0;
|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |