mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
alloy: Use Views context menus on Windows/Linux (fixes issue #3330)
This commit is contained in:
@@ -188,9 +188,15 @@ bool CefMenuManager::CreateContextMenu(
|
||||
}
|
||||
}
|
||||
|
||||
if (custom_menu || !runner_)
|
||||
if (custom_menu)
|
||||
return true;
|
||||
return runner_->RunContextMenu(browser_, model_.get(), params_);
|
||||
|
||||
if (!runner_ || !runner_->RunContextMenu(browser_, model_.get(), params_)) {
|
||||
LOG(ERROR) << "Default context menu implementation is not available; "
|
||||
"canceling the menu";
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void CefMenuManager::CancelContextMenu() {
|
||||
|
Reference in New Issue
Block a user