Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: ui/base/models/simple_menu_model.cc

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make this patch applicable to the latest trunk Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/models/simple_menu_model.h ('k') | views/controls/menu/menu_model_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_menu_model.cc
diff --git a/ui/base/models/simple_menu_model.cc b/ui/base/models/simple_menu_model.cc
index 57f6ec3e736ce04d06a0a35047a3d8e278916c0e..4adbaece65b61de6b9c1a24107e6c0485e1870bf 100644
--- a/ui/base/models/simple_menu_model.cc
+++ b/ui/base/models/simple_menu_model.cc
@@ -52,6 +52,11 @@ void SimpleMenuModel::Delegate::MenuWillShow() {
void SimpleMenuModel::Delegate::MenuClosed() {
}
+void SimpleMenuModel::Delegate::ExecuteCommandWithFlags(
+ int command_id, int flags) {
+ ExecuteCommand(command_id);
+}
+
////////////////////////////////////////////////////////////////////////////////
// SimpleMenuModel, public:
@@ -290,6 +295,11 @@ void SimpleMenuModel::ActivatedAt(int index) {
delegate_->ExecuteCommand(GetCommandIdAt(index));
}
+void SimpleMenuModel::ActivatedAtWithFlags(int index, int flags) {
+ if (delegate_)
+ delegate_->ExecuteCommandWithFlags(GetCommandIdAt(index), flags);
+}
+
MenuModel* SimpleMenuModel::GetSubmenuModelAt(int index) const {
return items_.at(FlipIndex(index)).submenu;
}
« no previous file with comments | « ui/base/models/simple_menu_model.h ('k') | views/controls/menu/menu_model_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698