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

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

#include "include/cef_focus_handler.h"

Inheritance diagram for CefFocusHandler:
CefBaseRefCounted

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 ()
 

Detailed Description

Implement this interface to handle events related to focus.

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

Member Typedef Documentation

◆ FocusSource

Member Function Documentation

◆ OnGotFocus()

virtual void CefFocusHandler::OnGotFocus ( CefRefPtr< CefBrowser browser)
inlinevirtual

Called when the browser component has received focus.

◆ OnSetFocus()

virtual bool CefFocusHandler::OnSetFocus ( CefRefPtr< CefBrowser browser,
FocusSource  source 
)
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.

◆ OnTakeFocus()

virtual void CefFocusHandler::OnTakeFocus ( CefRefPtr< CefBrowser browser,
bool  next 
)
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.


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