Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefRenderProcessHandler

CefBaseRefCounted
   |
   +--CefRenderProcessHandler

   in cef_render_process_handler.h

class CefRenderProcessHandler
extends CefBaseRefCounted

Class used to implement render process callbacks. The methods of this class will be called on the render process main thread (TID_RENDERER) unless otherwise indicated.


Inner Classes, Typedefs, and Enums
typedef CefRenderProcessHandler::NavigationType
          
 
Method Summary
 virtual CefRefPtr< CefLoadHandler > GetLoadHandler()
          Return the handler for browser load status events.
 virtual void OnBrowserCreated( CefRefPtr< CefBrowser > browser )
          Called after a browser has been created.
 virtual void OnBrowserDestroyed( CefRefPtr< CefBrowser > browser )
          Called before a browser is destroyed.
 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 OnFocusedNodeChanged( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefDOMNode > node )
          Called when a new node in the the browser gets focus.
 virtual bool OnProcessMessageReceived( CefRefPtr< CefBrowser > browser, CefProcessId source_process, CefRefPtr< CefProcessMessage > message )
          Called when a new message is received from a different process.
 virtual void OnRenderThreadCreated( CefRefPtr< CefListValue > extra_info )
          Called after the render process main thread has been created.
 virtual void OnUncaughtException( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Exception > exception, CefRefPtr< CefV8StackTrace > stackTrace )
          Called for global uncaught exceptions in a frame.
 virtual void OnWebKitInitialized()
          Called after WebKit has been initialized.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

GetLoadHandler

public virtual CefRefPtr< CefLoadHandler > GetLoadHandler();
Return the handler for browser load status events.

OnBrowserCreated

public virtual void OnBrowserCreated( CefRefPtr< CefBrowser > browser );
Called after a browser has been created. When browsing cross-origin a new browser will be created before the old browser with the same identifier is destroyed.

OnBrowserDestroyed

public virtual void OnBrowserDestroyed( CefRefPtr< CefBrowser > browser );
Called before a browser is destroyed.

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. V8 handles can only be accessed from the thread on which they are created. A task runner for posting tasks on the associated thread can be retrieved via the CefV8Context::GetTaskRunner() 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.

OnFocusedNodeChanged

public virtual void OnFocusedNodeChanged( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefDOMNode > node );
Called when a new node in the the browser gets focus. The |node| value may be empty if no specific node has gained focus. The node object passed to this method represents a snapshot of the DOM at the time this method is executed. DOM objects are only valid for the scope of this method. Do not keep references to or attempt to access any DOM objects outside the scope of this method.

OnProcessMessageReceived

public virtual bool OnProcessMessageReceived( CefRefPtr< CefBrowser > browser, CefProcessId source_process, CefRefPtr< CefProcessMessage > message );
Called when a new message is received from a different process. Return true if the message was handled or false otherwise. Do not keep a reference to or attempt to access the message outside of this callback.

OnRenderThreadCreated

public virtual void OnRenderThreadCreated( CefRefPtr< CefListValue > extra_info );
Called after the render process main thread has been created. |extra_info| is a read-only value originating from CefBrowserProcessHandler::OnRenderProcessThreadCreated(). Do not keep a reference to |extra_info| outside of this method.

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 in a frame. Execution of this callback is disabled by default. To enable set CefSettings.uncaught_exception_stack_size > 0.

OnWebKitInitialized

public virtual void OnWebKitInitialized();
Called after WebKit has been initialized.

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 3.3578.1860.g36610bd
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

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