Chromium Embedded Framework (CEF)  128.4.2+g5c235a2+chromium-128.0.6613.18
CefClient Class Reference

Implement this interface to provide handler implementations. More...

#include "include/cef_client.h"

Inheritance diagram for CefClient:
CefBaseRefCounted

Public Member Functions

virtual CefRefPtr< CefAudioHandlerGetAudioHandler ()
 Return the handler for audio rendering events. More...
 
virtual CefRefPtr< CefCommandHandlerGetCommandHandler ()
 Return the handler for commands. More...
 
virtual CefRefPtr< CefContextMenuHandlerGetContextMenuHandler ()
 Return the handler for context menus. More...
 
virtual CefRefPtr< CefDialogHandlerGetDialogHandler ()
 Return the handler for dialogs. More...
 
virtual CefRefPtr< CefDisplayHandlerGetDisplayHandler ()
 Return the handler for browser display state events. More...
 
virtual CefRefPtr< CefDownloadHandlerGetDownloadHandler ()
 Return the handler for download events. More...
 
virtual CefRefPtr< CefDragHandlerGetDragHandler ()
 Return the handler for drag events. More...
 
virtual CefRefPtr< CefFindHandlerGetFindHandler ()
 Return the handler for find result events. More...
 
virtual CefRefPtr< CefFocusHandlerGetFocusHandler ()
 Return the handler for focus events. More...
 
virtual CefRefPtr< CefFrameHandlerGetFrameHandler ()
 Return the handler for events related to CefFrame lifespan. More...
 
virtual CefRefPtr< CefPermissionHandlerGetPermissionHandler ()
 Return the handler for permission requests. More...
 
virtual CefRefPtr< CefJSDialogHandlerGetJSDialogHandler ()
 Return the handler for JavaScript dialogs. More...
 
virtual CefRefPtr< CefKeyboardHandlerGetKeyboardHandler ()
 Return the handler for keyboard events. More...
 
virtual CefRefPtr< CefLifeSpanHandlerGetLifeSpanHandler ()
 Return the handler for browser life span events. More...
 
virtual CefRefPtr< CefLoadHandlerGetLoadHandler ()
 Return the handler for browser load status events. More...
 
virtual CefRefPtr< CefPrintHandlerGetPrintHandler ()
 Return the handler for printing on Linux. More...
 
virtual CefRefPtr< CefRenderHandlerGetRenderHandler ()
 Return the handler for off-screen rendering events. More...
 
virtual CefRefPtr< CefRequestHandlerGetRequestHandler ()
 Return the handler for browser request events. 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 ()
 

Detailed Description

Implement this interface to provide handler implementations.

Member Function Documentation

◆ GetAudioHandler()

virtual CefRefPtr<CefAudioHandler> CefClient::GetAudioHandler ( )
inlinevirtual

Return the handler for audio rendering events.

◆ GetCommandHandler()

virtual CefRefPtr<CefCommandHandler> CefClient::GetCommandHandler ( )
inlinevirtual

Return the handler for commands.

If no handler is provided the default implementation will be used.

◆ GetContextMenuHandler()

virtual CefRefPtr<CefContextMenuHandler> CefClient::GetContextMenuHandler ( )
inlinevirtual

Return the handler for context menus.

If no handler is provided the default implementation will be used.

◆ GetDialogHandler()

virtual CefRefPtr<CefDialogHandler> CefClient::GetDialogHandler ( )
inlinevirtual

Return the handler for dialogs.

If no handler is provided the default implementation will be used.

◆ GetDisplayHandler()

virtual CefRefPtr<CefDisplayHandler> CefClient::GetDisplayHandler ( )
inlinevirtual

Return the handler for browser display state events.

◆ GetDownloadHandler()

virtual CefRefPtr<CefDownloadHandler> CefClient::GetDownloadHandler ( )
inlinevirtual

Return the handler for download events.

If no handler is returned downloads will not be allowed.

◆ GetDragHandler()

virtual CefRefPtr<CefDragHandler> CefClient::GetDragHandler ( )
inlinevirtual

Return the handler for drag events.

◆ GetFindHandler()

virtual CefRefPtr<CefFindHandler> CefClient::GetFindHandler ( )
inlinevirtual

Return the handler for find result events.

◆ GetFocusHandler()

virtual CefRefPtr<CefFocusHandler> CefClient::GetFocusHandler ( )
inlinevirtual

Return the handler for focus events.

◆ GetFrameHandler()

virtual CefRefPtr<CefFrameHandler> CefClient::GetFrameHandler ( )
inlinevirtual

Return the handler for events related to CefFrame lifespan.

This method will be called once during CefBrowser creation and the result will be cached for performance reasons.

◆ GetJSDialogHandler()

virtual CefRefPtr<CefJSDialogHandler> CefClient::GetJSDialogHandler ( )
inlinevirtual

Return the handler for JavaScript dialogs.

If no handler is provided the default implementation will be used.

◆ GetKeyboardHandler()

virtual CefRefPtr<CefKeyboardHandler> CefClient::GetKeyboardHandler ( )
inlinevirtual

Return the handler for keyboard events.

◆ GetLifeSpanHandler()

virtual CefRefPtr<CefLifeSpanHandler> CefClient::GetLifeSpanHandler ( )
inlinevirtual

Return the handler for browser life span events.

◆ GetLoadHandler()

virtual CefRefPtr<CefLoadHandler> CefClient::GetLoadHandler ( )
inlinevirtual

Return the handler for browser load status events.

◆ GetPermissionHandler()

virtual CefRefPtr<CefPermissionHandler> CefClient::GetPermissionHandler ( )
inlinevirtual

Return the handler for permission requests.

◆ GetPrintHandler()

virtual CefRefPtr<CefPrintHandler> CefClient::GetPrintHandler ( )
inlinevirtual

Return the handler for printing on Linux.

If a print handler is not provided then printing will not be supported on the Linux platform.

◆ GetRenderHandler()

virtual CefRefPtr<CefRenderHandler> CefClient::GetRenderHandler ( )
inlinevirtual

Return the handler for off-screen rendering events.

◆ GetRequestHandler()

virtual CefRefPtr<CefRequestHandler> CefClient::GetRequestHandler ( )
inlinevirtual

Return the handler for browser request events.

◆ OnProcessMessageReceived()

virtual bool CefClient::OnProcessMessageReceived ( CefRefPtr< CefBrowser browser,
CefRefPtr< CefFrame frame,
CefProcessId  source_process,
CefRefPtr< CefProcessMessage message 
)
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.


The documentation for this class was generated from the following file: