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

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

Issue 378333003: Allow menus to stay open during a child view's drag and drop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/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 7f4b74fb53c4b679c0d2372f222b1349d48c8fde..5db3a555b496b03b038947e8c777fe51e552adb3 100644
--- a/ui/views/controls/menu/menu_delegate.h
+++ b/ui/views/controls/menu/menu_delegate.h
@@ -132,6 +132,10 @@ class VIEWS_EXPORT MenuDelegate {
// context menu should be closed.
virtual bool ShouldCloseAllMenusOnExecute(int id);
+ // Returns true if the menu should close upon a drag completing. Defaults to
+ // true.
sky 2014/07/14 15:19:05 Document this is only invoked for menus originatin
Devlin 2014/07/16 16:00:45 Done.
+ virtual bool ShouldCloseOnDragComplete();
+
// Executes the specified command. mouse_event_flags give the flags of the
// mouse event that triggered this to be invoked (ui::MouseEvent
// flags). mouse_event_flags is 0 if this is triggered by a user gesture

Powered by Google App Engine
This is Rietveld 408576698