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

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: fixed pointed problems. Created 9 years, 7 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 | « chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h ('k') | ui/base/models/simple_menu_model.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.h
diff --git a/ui/base/models/simple_menu_model.h b/ui/base/models/simple_menu_model.h
index e8ccb40afec92d21af4767801331d60381f45c60..96a4294d733379dcb00a45887c65ca11c6351ba4 100644
--- a/ui/base/models/simple_menu_model.h
+++ b/ui/base/models/simple_menu_model.h
@@ -48,6 +48,8 @@ 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 is about to show.
virtual void MenuWillShow();
@@ -122,6 +124,7 @@ class SimpleMenuModel : public MenuModel {
virtual bool IsVisibleAt(int index) const OVERRIDE;
virtual void HighlightChangedTo(int index) OVERRIDE;
virtual void ActivatedAt(int index) OVERRIDE;
+ virtual void ActivatedAtWithDisposition(int index, int disposition) OVERRIDE;
Ben Goodger (Google) 2011/05/13 19:46:26 This is an implicit coupling between this model co
virtual MenuModel* GetSubmenuModelAt(int index) const OVERRIDE;
virtual void MenuWillShow() OVERRIDE;
virtual void MenuClosed() OVERRIDE;
« no previous file with comments | « chrome/browser/ui/tab_contents/tab_contents_wrapper_delegate.h ('k') | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698