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

Unified Diff: content/browser/web_contents/web_contents_view_aura.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
Index: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 6a03aadc48389d848ba9c9159b6eaf98398b01ae..db904557d0d06b6257dbff8ac796daca8d35e31d 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -465,7 +465,8 @@ void WebContentsViewAura::StartDragging(
gfx::Screen::GetScreenFor(GetNativeView())->GetCursorScreenPoint());
MessageLoop::ScopedNestableTaskAllower allow(MessageLoop::current());
result_op = aura::client::GetDragDropClient(root_window)->StartDragAndDrop(
- data, root_window, location, ConvertFromWeb(operations));
+ data, root_window, location, ConvertFromWeb(operations),
+ ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE);
sky 2012/11/05 18:13:56 Do we know this is always from a mouse event?
varunjain 2012/11/05 18:25:49 No. In a followup CL, I plan to patch this informa
}
// Bail out immediately if the contents view window is gone. Note that it is

Powered by Google App Engine
This is Rietveld 408576698