chrome: Implement CefFocusHandler::OnTakeFocus callback (fixes #3897)

This commit is contained in:
Marshall Greenblatt
2025-03-21 13:03:53 -04:00
parent e88e98f061
commit 8cf30843f9
6 changed files with 55 additions and 35 deletions

View File

@@ -1057,14 +1057,7 @@ void AlloyBrowserHostImpl::BeforeUnloadFired(content::WebContents* source,
bool AlloyBrowserHostImpl::TakeFocus(content::WebContents* source,
bool reverse) {
if (client_.get()) {
CefRefPtr<CefFocusHandler> handler = client_->GetFocusHandler();
if (handler.get()) {
handler->OnTakeFocus(this, !reverse);
}
}
return false;
return contents_delegate_.TakeFocus(source, reverse);
}
void AlloyBrowserHostImpl::CanDownload(