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

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
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc ('k') | ui/aura/client/drag_drop_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..1cec2e638cce76b6037e5cbbd0d976daa15095e8 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -461,11 +461,13 @@ void WebContentsViewAura::StartDragging(
// always start from a mouse-event (e.g. a touch or gesture event could
// initiate the drag). The location information should be carried over from
// webkit. http://crbug.com/114754
+ // TODO(varunjain): Properly determine and send DRAG_EVENT_SOURCE below.
gfx::Point location(
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, GetContentNativeView(), location,
+ ConvertFromWeb(operations), ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE);
}
// Bail out immediately if the contents view window is gone. Note that it is
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc ('k') | ui/aura/client/drag_drop_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698