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

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: Created 7 years, 8 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 898f3c3ada546fd21966d763e5dd9d0993247d63..abf65b4a669996997a775ab500c37dd1e30f091c 100644
--- a/content/browser/web_contents/web_drag_source_win.h
+++ b/content/browser/web_contents/web_drag_source_win.h
@@ -39,6 +39,7 @@ class WebDragSource : public ui::DragSourceWin,
virtual void OnDragSourceCancel();
virtual void OnDragSourceDrop();
virtual void OnDragSourceMove();
+ virtual bool ShouldDropDragSource(BOOL escape_pressed, DWORD key_state);
private:
// Cannot construct thusly.
@@ -48,6 +49,8 @@ class WebDragSource : public ui::DragSourceWin,
// by posting a task to this function.
void DelayedOnDragSourceDrop();
+ void OnDragSourceEnded();
+
// Keep a reference to the window so we can translate the cursor position.
gfx::NativeWindow source_wnd_;

Powered by Google App Engine
This is Rietveld 408576698