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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_drag_drop.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/download/download_util.cc ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc b/chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc
index ad379f6b1a929b9997481cf9343e3c7d5360c5b8..32460d263c73fde1de38b4b6cc9cefe92c3bdf7c 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_drag_drop.cc
@@ -33,12 +33,15 @@ void DragBookmarks(Profile* profile,
ui::DragDropTypes::DRAG_MOVE |
ui::DragDropTypes::DRAG_LINK;
views::Widget* widget = views::Widget::GetWidgetForNativeView(view);
+ // TODO(varunjain): Properly determine and send DRAG_EVENT_SOURCE below.
if (widget) {
- widget->RunShellDrag(NULL, data, gfx::Point(), operation);
+ widget->RunShellDrag(NULL, data, gfx::Point(), operation,
+ ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE);
} else {
// We hit this case when we're using WebContentsViewWin or
// WebContentsViewAura, instead of TabContentsViewViews.
- views::RunShellDrag(view, data, gfx::Point(), operation);
+ views::RunShellDrag(view, data, gfx::Point(), operation,
+ ui::DragDropTypes::DRAG_EVENT_SOURCE_MOUSE);
}
MessageLoop::current()->SetNestableTasksAllowed(was_nested);
« no previous file with comments | « chrome/browser/download/download_util.cc ('k') | content/browser/web_contents/web_contents_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698