Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 439
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefV8Context

CefBase
   |
   +--CefV8Context

   in cef.h

class CefV8Context
extends CefBase

Class that encapsulates a V8 context handle.


Method Summary
 virtual bool Enter()= 0
          Enter this context.
 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.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

Enter

public virtual bool Enter()= 0;
Enter this context. A context must be explicitly entered before creating a V8 Object, Array or Function asynchronously. Exit() must be called the same number of times as Enter() before releasing this context. V8 objects belong to the context in which they are created. Returns true if the scope was entered successfully.

Exit

public virtual bool Exit()= 0;
Exit this context. Call this method only after calling Enter(). Returns true if the scope was exited successfully.

GetBrowser

public virtual CefRefPtr< CefBrowser > GetBrowser()= 0;
Returns the browser for this context.

GetCurrentContext

public static CefRefPtr< CefV8Context > GetCurrentContext();
Returns the current (top) context object in the V8 context stack.

GetEnteredContext

public static CefRefPtr< CefV8Context > GetEnteredContext();
Returns the entered (bottom) context object in the V8 context stack.

GetFrame

public virtual CefRefPtr< CefFrame > GetFrame()= 0;
Returns the frame for this context.

GetGlobal

public virtual CefRefPtr< CefV8Value > GetGlobal()= 0;
Returns the global object for this context.

InContext

public static bool InContext();
Returns true if V8 is currently inside a context.

IsSame

public virtual bool IsSame( CefRefPtr< CefV8Context > that )= 0;
Returns true if this object is pointing to the same handle as |that| object.

 Overview   Project   Class   Tree   Index 
CEF C++ API Docs - Revision 439
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt