mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Add CefJSDialogHandler support (fixes #3702)
This commit is contained in:
committed by
Marshall Greenblatt
parent
fd7444c7a4
commit
e4bb51f6f6
@@ -619,6 +619,16 @@ void ChromeBrowserDelegate::CanDownload(
|
||||
std::move(callback).Run(true);
|
||||
}
|
||||
|
||||
content::JavaScriptDialogManager*
|
||||
ChromeBrowserDelegate::GetJavaScriptDialogManager(
|
||||
content::WebContents* source) {
|
||||
auto browser_host = ChromeBrowserHostImpl::GetBrowserForContents(source);
|
||||
if (browser_host) {
|
||||
return browser_host->GetJavaScriptDialogManager();
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
KeyboardEventProcessingResult ChromeBrowserDelegate::PreHandleKeyboardEvent(
|
||||
content::WebContents* source,
|
||||
const content::NativeWebKeyboardEvent& event) {
|
||||
|
Reference in New Issue
Block a user