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

Unified Diff: chrome/browser/download/download_util.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: chrome/browser/download/download_util.cc
diff --git a/chrome/browser/download/download_util.cc b/chrome/browser/download/download_util.cc
index eae46e9575391525997cfb6dd26b35b14aa2bb2e..3d2dc09983a19c0bc96872de9306260085b92644 100644
--- a/chrome/browser/download/download_util.cc
+++ b/chrome/browser/download/download_util.cc
@@ -393,11 +393,14 @@ void DragDownload(const DownloadItem* download,
return;
gfx::Point location = gfx::Screen::GetScreenFor(view)->GetCursorScreenPoint();
+ // TODO(varunjain): Properly determine and send DRAG_EVENT_SOURCE below.
aura::client::GetDragDropClient(root_window)->StartDragAndDrop(
data,
root_window,
+ view,
location,
- ui::DragDropTypes::DRAG_COPY | ui::DragDropTypes::DRAG_LINK);
+ ui::DragDropTypes::DRAG_COPY | ui::DragDropTypes::DRAG_LINK,
+ ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE);
#else // We are on WIN without AURA
// We cannot use Widget::RunShellDrag on WIN since the |view| is backed by a
// TabContentsViewWin, not a NativeWidgetWin.
« no previous file with comments | « ash/drag_drop/drag_drop_controller_unittest.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698