Chromium Embedded Framework (CEF)
121.0.1+g7a4b55f+chromium-121.0.6167.16
|
Class used to implement render process callbacks. More...
#include "include/cef_render_process_handler.h"
Public Types | |
typedef cef_navigation_type_t | NavigationType |
Public Member Functions | |
virtual void | OnWebKitInitialized () |
Called after WebKit has been initialized. More... | |
virtual void | OnBrowserCreated (CefRefPtr< CefBrowser > browser, CefRefPtr< CefDictionaryValue > extra_info) |
Called after a browser has been created. More... | |
virtual void | OnBrowserDestroyed (CefRefPtr< CefBrowser > browser) |
Called before a browser is destroyed. More... | |
virtual CefRefPtr< CefLoadHandler > | GetLoadHandler () |
Return the handler for browser load status events. More... | |
virtual void | OnContextCreated (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context) |
Called immediately after the V8 context for a frame has been created. More... | |
virtual void | OnContextReleased (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefV8Context > context) |
Called immediately before the V8 context for a frame is released. More... | |
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. More... | |
virtual void | OnFocusedNodeChanged (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefDOMNode > node) |
Called when a new node in the the browser gets focus. More... | |
virtual bool | OnProcessMessageReceived (CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefProcessId source_process, CefRefPtr< CefProcessMessage > message) |
Called when a new message is received from a different process. More... | |
Public Member Functions inherited from CefBaseRefCounted | |
virtual void | AddRef () const =0 |
Called to increment the reference count for the object. More... | |
virtual bool | Release () const =0 |
Called to decrement the reference count for the object. More... | |
virtual bool | HasOneRef () const =0 |
Returns true if the reference count is 1. More... | |
virtual bool | HasAtLeastOneRef () const =0 |
Returns true if the reference count is at least 1. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from CefBaseRefCounted | |
virtual | ~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.
|
inlinevirtual |
Return the handler for browser load status events.
|
inlinevirtual |
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. |extra_info| is an optional read-only value originating from CefBrowserHost::CreateBrowser(), CefBrowserHost::CreateBrowserSync(), CefLifeSpanHandler::OnBeforePopup() or CefBrowserView::CreateBrowserView().
|
inlinevirtual |
Called before a browser is destroyed.
|
inlinevirtual |
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.
|
inlinevirtual |
Called immediately before the V8 context for a frame is released.
No references to the context should be kept after this method is called.
|
inlinevirtual |
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.
|
inlinevirtual |
Called when a new message is received from a different process.
Return true if the message was handled or false otherwise. It is safe to keep a reference to |message| outside of this callback.
|
inlinevirtual |
Called for global uncaught exceptions in a frame.
Execution of this callback is disabled by default. To enable set cef_settings_t.uncaught_exception_stack_size > 0.
|
inlinevirtual |
Called after WebKit has been initialized.