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

Unified Diff: content/browser/web_contents/web_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
Index: content/browser/web_contents/web_drag_source_win.h
diff --git a/content/browser/web_contents/web_drag_source_win.h b/content/browser/web_contents/web_drag_source_win.h
index 72d4a1692a243afb8ab7a3394de5e329d154a20c..c8afb00a108ceafce43abf49699427526ee328f1 100644
--- a/content/browser/web_contents/web_drag_source_win.h
+++ b/content/browser/web_contents/web_drag_source_win.h
@@ -29,7 +29,9 @@ class WebDragSource : public ui::DragSourceWin,
public NotificationObserver {
public:
// Create a new DragSource for a given HWND and WebContents.
- WebDragSource(gfx::NativeWindow source_wnd, WebContents* web_contents);
+ WebDragSource(gfx::NativeWindow source_wnd,
+ WebContents* web_contents,
+ ui::DragDropTypes::DragEventSource event_source);
virtual ~WebDragSource();
// NotificationObserver implementation.
@@ -57,6 +59,8 @@ class WebDragSource : public ui::DragSourceWin,
// by posting a task to this function.
void DelayedOnDragSourceDrop();
+ void CancelLongPressGestureIfNeeded();
+
// Keep a reference to the window so we can translate the cursor position.
gfx::NativeWindow source_wnd_;
« no previous file with comments | « content/browser/web_contents/web_contents_drag_win.cc ('k') | content/browser/web_contents/web_drag_source_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698