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

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

Issue 2876203003: Make shelf item can be dragged when context menu is opened.
Patch Set: Created 3 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
Index: ui/views/controls/menu/menu_controller.h
diff --git a/ui/views/controls/menu/menu_controller.h b/ui/views/controls/menu/menu_controller.h
index 16ac2d4bd9c3a746d667f5c2c41e45d186e6fe61..dfbd4f3c790158cc3d7a506db4522bd79c280438 100644
--- a/ui/views/controls/menu/menu_controller.h
+++ b/ui/views/controls/menu/menu_controller.h
@@ -130,6 +130,9 @@ class VIEWS_EXPORT MenuController
void set_is_combobox(bool is_combobox) { is_combobox_ = is_combobox; }
+ void set_cancel_active_touches(bool cancel_active_touches) {
+ cancel_active_touches_ = cancel_active_touches;
+ }
// Various events, forwarded from the submenu.
//
// NOTE: the coordinates of the events are in that of the
@@ -667,6 +670,10 @@ class VIEWS_EXPORT MenuController
// (like a context menu).
bool is_combobox_;
+ // In order to make item can be dragged after context menu is opened. Cannot
+ // cancel existing touch events.
+ bool cancel_active_touches_ = true;
+
// Set to true if the menu item was selected by touch.
bool item_selected_by_touch_;

Powered by Google App Engine
This is Rietveld 408576698