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

Unified Diff: ui/views/controls/menu/menu_delegate.h

Issue 11485022: Open bookmark in new background tab at Ctrl+Click but not closing menu (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/views/controls/menu/menu_delegate.h
diff --git a/ui/views/controls/menu/menu_delegate.h b/ui/views/controls/menu/menu_delegate.h
index 918e322580a03adff0c3f0c8cb64bbdedbe0b10e..a59439ddb059f6143600bbda8ee83ce9195a4d78 100644
--- a/ui/views/controls/menu/menu_delegate.h
+++ b/ui/views/controls/menu/menu_delegate.h
@@ -112,6 +112,11 @@ class VIEWS_EXPORT MenuDelegate {
// other than a mouse event.
virtual void ExecuteCommand(int id, int mouse_event_flags);
+ // Returns true if command specified by |id| should execute on event |e|
sky 2012/12/11 15:59:43 Returns true if ExecuteCommand() should be invoked
yosin_UTC9 2012/12/12 01:39:39 Done.
+ // without closingmenu.
+ virtual bool ShouldExecuteCommandWithoutClosingMenu(int id,
+ const ui::Event& e);
+
// Returns true if the specified event is one the user can use to trigger, or
// accept, the item. Defaults to left or right mouse buttons or tap.
virtual bool IsTriggerableEvent(MenuItemView* view, const ui::Event& e);

Powered by Google App Engine
This is Rietveld 408576698