(default)
Class CefFocusHandler
CefBase
|
+--CefFocusHandler
in cef_focus_handler.h
- class CefFocusHandler
- extends CefBase
Implement this interface to handle events related to focus. The methods of
this class will be called on the UI thread.
OnFocusedNodeChanged
public virtual void OnFocusedNodeChanged( CefRefPtr< CefBrowser > browser, CefRefPtr< CefFrame > frame, CefRefPtr< CefDOMNode > node );
- Called when a new node in the the browser gets focus. The |node| value may
be empty if no specific node has gained focus. The node object passed to
this method represents a snapshot of the DOM at the time this method is
executed. DOM objects are only valid for the scope of this method. Do not
keep references to or attempt to access any DOM objects outside the scope
of this method.
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.
Chromium Embedded Framework (CEF) Copyright © 2011 Marshall A. Greenblatt