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

Unified Diff: ui/base/dragdrop/drag_source_win.h

Issue 14122008: Enable touch-initiated drag-drop work on Windows (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixings in drag_source_win Created 7 years, 6 months 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 | « content/browser/web_contents/web_drag_source_win.cc ('k') | ui/base/dragdrop/drag_source_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/drag_source_win.h
diff --git a/ui/base/dragdrop/drag_source_win.h b/ui/base/dragdrop/drag_source_win.h
index 7c03b6cb59152e5459cc6f849d3b1b054384260c..6c02839b49a16ffacec3f5234be5a6f826378364 100644
--- a/ui/base/dragdrop/drag_source_win.h
+++ b/ui/base/dragdrop/drag_source_win.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
+#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/ui_export.h"
namespace ui {
@@ -22,6 +23,7 @@ class UI_EXPORT DragSourceWin
public base::RefCountedThreadSafe<DragSourceWin> {
public:
DragSourceWin();
+ explicit DragSourceWin(DragDropTypes::DragEventSource event_source);
virtual ~DragSourceWin() {}
// Stop the drag operation at the next chance we get. This doesn't
@@ -49,6 +51,9 @@ class UI_EXPORT DragSourceWin
// Set to true if we want to cancel the drag operation.
bool cancel_drag_;
+ // Indicate the drag initiator, mouse or touch.
+ const DragDropTypes::DragEventSource event_source_;
+
DISALLOW_COPY_AND_ASSIGN(DragSourceWin);
};
« no previous file with comments | « content/browser/web_contents/web_drag_source_win.cc ('k') | ui/base/dragdrop/drag_source_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698