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

(default)
Class CefV8ContextHandler

CefBase
   |
   +--CefV8ContextHandler

   in cef_v8context_handler.h

class CefV8ContextHandler
extends CefBase

Implement this interface to handle V8 context events. The methods of this class will be called on the UI thread.


Method Summary
 virtual void OnContextCreated( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context )
          Called immediately after the V8 context for a frame has been created.
 virtual void OnContextReleased( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context )
          Called immediately before the V8 context for a frame is released.
 virtual void OnUncaughtException( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Exception > exception, CefRefPtr< CefV8StackTrace > stackTrace )
          Called for global uncaught exceptions.
   
Methods inherited from class CefBase
AddRef, Release, GetRefCt
 

Method Detail

OnContextCreated

public virtual void OnContextCreated( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context );
Called immediately after the V8 context for a frame has been created. To retrieve the JavaScript 'window' object use the CefV8Context::GetGlobal() method.

OnContextReleased

public virtual void OnContextReleased( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context );
Called immediately before the V8 context for a frame is released. No references to the context should be kept after this method is called.

OnUncaughtException

public virtual void OnUncaughtException( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Exception > exception, CefRefPtr< CefV8StackTrace > stackTrace );
Called for global uncaught exceptions. Execution of this callback is disabled by default. To enable set CefSettings.uncaught_exception_stack_size > 0.

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

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