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

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

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.h
diff --git a/ui/base/models/simple_menu_model.h b/ui/base/models/simple_menu_model.h
index 59b752fe1ba97f859bd74d7de10f878ea6e0ebda..82f2cad6dec1d71f284687b9926af8bb56fa13d3 100644
--- a/ui/base/models/simple_menu_model.h
+++ b/ui/base/models/simple_menu_model.h
@@ -48,6 +48,7 @@ class SimpleMenuModel : public MenuModel {
// Performs the action associated with the specified command id.
virtual void ExecuteCommand(int command_id) = 0;
+ virtual void ExecuteCommandWithDisposition(int command_id, int disposition);
// Notifies the delegate that the menu has closed.
virtual void MenuClosed();
@@ -118,6 +119,7 @@ class SimpleMenuModel : public MenuModel {
virtual bool IsVisibleAt(int index) const;
virtual void HighlightChangedTo(int index);
virtual void ActivatedAt(int index);
+ virtual void ActivatedAtWithDisposition(int index, int disposition);
virtual MenuModel* GetSubmenuModelAt(int index) const;
virtual void MenuClosed();
virtual void SetMenuModelDelegate(ui::MenuModelDelegate* menu_model_delegate);

Powered by Google App Engine
This is Rietveld 408576698