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

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: Created 9 years, 8 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
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 28c1b01c444d35d172d0d38be39f47c542c7d475..d975dd28b5ca2ce7db64f2276856f0958abe7461 100644
--- a/ui/base/models/simple_menu_model.cc
+++ b/ui/base/models/simple_menu_model.cc
@@ -49,6 +49,11 @@ void SimpleMenuModel::Delegate::CommandIdHighlighted(int command_id) {
void SimpleMenuModel::Delegate::MenuClosed() {
}
+void SimpleMenuModel::Delegate::ExecuteCommandWithDisposition(
+ int command_id, int disposition) {
+ ExecuteCommand(command_id);
+}
+
////////////////////////////////////////////////////////////////////////////////
// SimpleMenuModel, public:
@@ -287,6 +292,12 @@ void SimpleMenuModel::ActivatedAt(int index) {
delegate_->ExecuteCommand(GetCommandIdAt(index));
}
+void SimpleMenuModel::ActivatedAtWithDisposition(int index, int disposition) {
+ if (delegate_)
+ delegate_->ExecuteCommandWithDisposition(GetCommandIdAt(index),
+ disposition);
+}
+
MenuModel* SimpleMenuModel::GetSubmenuModelAt(int index) const {
return items_.at(FlipIndex(index)).submenu;
}
« chrome/browser/tab_contents/render_view_context_menu.cc ('K') | « ui/base/models/simple_menu_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698