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:
@ -29,7 +29,7 @@ void CEF_CALLBACK focus_handler_on_take_focus(struct _cef_focus_handler_t* self,
|
||||
}
|
||||
|
||||
int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
|
||||
cef_browser_t* browser, int isWidget)
|
||||
cef_browser_t* browser, enum cef_handler_focus_source_t source)
|
||||
{
|
||||
DCHECK(self);
|
||||
DCHECK(browser);
|
||||
@ -37,7 +37,7 @@ int CEF_CALLBACK focus_handler_on_set_focus(struct _cef_focus_handler_t* self,
|
||||
return 0;
|
||||
|
||||
return CefFocusHandlerCppToC::Get(self)->OnSetFocus(
|
||||
CefBrowserCToCpp::Wrap(browser), isWidget?true:false);
|
||||
CefBrowserCToCpp::Wrap(browser), source);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user