(default)
Class CefV8ContextHandler
CefBase
|
+--CefV8ContextHandler
in cef.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.
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.
Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt