Chromium Embedded Framework (CEF)  106.0.15+gbb70d04+chromium-106.0.5249.12
CefCommandHandler Class Reference

Implement this interface to handle events related to commands. More...

#include "include/cef_command_handler.h"

Inheritance diagram for CefCommandHandler:
CefBaseRefCounted

Public Member Functions

virtual bool OnChromeCommand (CefRefPtr< CefBrowser > browser, int command_id, cef_window_open_disposition_t disposition)
 Called to execute a Chrome command triggered via menu selection or keyboard shortcut. 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 handle events related to commands.

The methods of this class will be called on the UI thread.

Member Function Documentation

◆ OnChromeCommand()

virtual bool CefCommandHandler::OnChromeCommand ( CefRefPtr< CefBrowser browser,
int  command_id,
cef_window_open_disposition_t  disposition 
)
inlinevirtual

Called to execute a Chrome command triggered via menu selection or keyboard shortcut.

Values for |command_id| can be found in the cef_command_ids.h file. |disposition| provides information about the intended command target. Return true if the command was handled or false for the default implementation. For context menu commands this will be called after CefContextMenuHandler::OnContextMenuCommand. Only used with the Chrome runtime.


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