mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Implement CefFocusHandler::OnTakeFocus callback (fixes #3897)
This commit is contained in:
@@ -629,6 +629,17 @@ void CefBrowserContentsDelegate::OnFocusChangedInPage(
|
||||
details->is_editable_node;
|
||||
}
|
||||
|
||||
bool CefBrowserContentsDelegate::TakeFocus(content::WebContents* source,
|
||||
bool reverse) {
|
||||
if (auto c = client()) {
|
||||
if (auto handler = c->GetFocusHandler()) {
|
||||
handler->OnTakeFocus(browser(), !reverse);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
void CefBrowserContentsDelegate::WebContentsDestroyed() {
|
||||
auto wc = web_contents();
|
||||
ObserveWebContents(nullptr);
|
||||
|
Reference in New Issue
Block a user