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

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

Issue 11368072: aura: Add flag to indicate if a drag session is started with touch or mouse. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 8 years, 1 month 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 | « ui/base/dragdrop/drag_drop_types.h ('k') | ui/views/drag_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller.cc
diff --git a/ui/views/controls/menu/menu_controller.cc b/ui/views/controls/menu/menu_controller.cc
index 2bba4026b2f39ce87af51d03d097bde9d2bd1d6a..3875b5fd87c4a1a8d39daa722fd541cac84585ab 100644
--- a/ui/views/controls/menu/menu_controller.cc
+++ b/ui/views/controls/menu/menu_controller.cc
@@ -863,7 +863,9 @@ void MenuController::StartDrag(SubmenuView* source,
StopScrolling();
int drag_ops = item->GetDelegate()->GetDragOperations(item);
drag_in_progress_ = true;
- item->GetWidget()->RunShellDrag(NULL, data, widget_loc, drag_ops);
+ // TODO(varunjain): Properly determine and send DRAG_EVENT_SOURCE below.
+ item->GetWidget()->RunShellDrag(NULL, data, widget_loc, drag_ops,
+ ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE);
drag_in_progress_ = false;
if (GetActiveInstance() == this) {
« no previous file with comments | « ui/base/dragdrop/drag_drop_types.h ('k') | ui/views/drag_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698