mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add a FocusSource parameter to OnSetFocus() that indicates where the focus request is originating from (issue #369).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@306 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -26,13 +26,13 @@ void CefFocusHandlerCToCpp::OnTakeFocus(CefRefPtr<CefBrowser> browser,
|
||||
}
|
||||
|
||||
bool CefFocusHandlerCToCpp::OnSetFocus(CefRefPtr<CefBrowser> browser,
|
||||
bool isWidget)
|
||||
FocusSource source)
|
||||
{
|
||||
if (CEF_MEMBER_MISSING(struct_, on_set_focus))
|
||||
return false;
|
||||
|
||||
return struct_->on_set_focus(struct_, CefBrowserCppToC::Wrap(browser),
|
||||
isWidget) ? true : false;
|
||||
source) ? true : false;
|
||||
}
|
||||
|
||||
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
// CefFocusHandler methods
|
||||
virtual void OnTakeFocus(CefRefPtr<CefBrowser> browser, bool next) OVERRIDE;
|
||||
virtual bool OnSetFocus(CefRefPtr<CefBrowser> browser,
|
||||
bool isWidget) OVERRIDE;
|
||||
FocusSource source) OVERRIDE;
|
||||
};
|
||||
|
||||
#endif // BUILDING_CEF_SHARED
|
||||
|
Reference in New Issue
Block a user