Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

(default)
Class CefFocusHandler

CefBaseRefCounted
   |
   +--CefFocusHandler

   in cef_focus_handler.h

class CefFocusHandler
extends CefBaseRefCounted

Implement this interface to handle events related to focus. The methods of this class will be called on the UI thread.


Inner Classes, Typedefs, and Enums
typedef CefFocusHandler::FocusSource
          
 
Method Summary
 virtual void OnGotFocus( CefRefPtr< CefBrowser > browser )
          Called when the browser component has received focus.
 virtual bool OnSetFocus( CefRefPtr< CefBrowser > browser, CefFocusHandler::FocusSource source )
          Called when the browser component is requesting focus.
 virtual void OnTakeFocus( CefRefPtr< CefBrowser > browser, bool next )
          Called when the browser component is about to loose focus.
   
Methods inherited from class CefBaseRefCounted
AddRef, Release, HasOneRef, HasAtLeastOneRef
 

Method Detail

OnGotFocus

public virtual void OnGotFocus( CefRefPtr< CefBrowser > browser );
Called when the browser component has received focus.

OnSetFocus

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

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

 Overview   Project   Class   Tree   Index 
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

Chromium Embedded Framework (CEF) Copyright © 2016 Marshall A. Greenblatt