alloy: Use Views context menus on Windows/Linux (fixes issue #3330)

This commit is contained in:
Marshall Greenblatt
2022-05-13 14:38:41 +03:00
parent 2dcee2ccfc
commit 7a372a642b
41 changed files with 475 additions and 1418 deletions

View File

@@ -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() {