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

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

Issue 14294003: Touch-initiated drag-out to download file but fails. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase to trunk Created 7 years, 7 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 | « ui/base/dragdrop/drag_source_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/dragdrop/drag_source_win.cc
diff --git a/ui/base/dragdrop/drag_source_win.cc b/ui/base/dragdrop/drag_source_win.cc
index 90ce68273a3379b463e1d9571d9fc73dbd26ad3f..376922a4bc2a90c78e169d40d29a2a77fd7ea71a 100644
--- a/ui/base/dragdrop/drag_source_win.cc
+++ b/ui/base/dragdrop/drag_source_win.cc
@@ -18,7 +18,7 @@ HRESULT DragSourceWin::QueryContinueDrag(BOOL escape_pressed, DWORD key_state) {
return DRAGDROP_S_CANCEL;
}
- if (!(key_state & MK_LBUTTON)) {
+ if (ShouldDropDragSource(escape_pressed, key_state)) {
OnDragSourceDrop();
return DRAGDROP_S_DROP;
}
@@ -52,4 +52,9 @@ ULONG DragSourceWin::Release() {
return 0;
}
+bool DragSourceWin::ShouldDropDragSource(
+ BOOL escape_pressed,DWORD key_state) {
+ return !(key_state & MK_LBUTTON);
+}
+
} // namespace ui
« no previous file with comments | « ui/base/dragdrop/drag_source_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698