Chromium Embedded Framework (CEF)
129.0.1+g463bda9+chromium-129.0.6668.12
|
Implement this interface to handle events related to focus. More...
#include "include/cef_focus_handler.h"
Public Types | |
typedef cef_focus_source_t | FocusSource |
Public Member Functions | |
virtual void | OnTakeFocus (CefRefPtr< CefBrowser > browser, bool next) |
Called when the browser component is about to loose focus. More... | |
virtual bool | OnSetFocus (CefRefPtr< CefBrowser > browser, FocusSource source) |
Called when the browser component is requesting focus. More... | |
virtual void | OnGotFocus (CefRefPtr< CefBrowser > browser) |
Called when the browser component has received focus. 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 () |
Implement this interface to handle events related to focus.
The methods of this class will be called on the UI thread.
|
inlinevirtual |
Called when the browser component has received focus.
|
inlinevirtual |
Called when the browser component is requesting focus.
|source| indicates where the focus request is originating from. Return false to allow the focus to be set or true to cancel setting the focus.
|
inlinevirtual |
Called when the browser component is about to loose focus.
For instance, if focus was on the last HTML element and the user pressed the TAB key. |next| will be true if the browser is giving focus to the next component and false if the browser is giving focus to the previous component.