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

Unified Diff: chrome/browser/tab_contents/web_drag_utils_win.cc

Issue 1572027: Return an approximately correct drop effect from WebDragTarget::OnDrop. (Closed)
Patch Set: . Created 10 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: chrome/browser/tab_contents/web_drag_utils_win.cc
diff --git a/chrome/browser/tab_contents/web_drag_utils_win.cc b/chrome/browser/tab_contents/web_drag_utils_win.cc
index 5c15f45c082a6a785e349bf402e8de1c0a74a9f7..6796876cf89af6bf6977943b6b27ece2622a2f8a 100644
--- a/chrome/browser/tab_contents/web_drag_utils_win.cc
+++ b/chrome/browser/tab_contents/web_drag_utils_win.cc
@@ -25,5 +25,16 @@ WebDragOperationsMask WinDragOpToWebDragOp(DWORD effect) {
return op;
}
+DWORD WebDragOpToWinDragOp(WebDragOperationsMask op) {
+ DWORD win_op = DROPEFFECT_NONE;
+ if (op & WebDragOperationCopy)
+ win_op |= DROPEFFECT_COPY;
+ if (op & WebDragOperationLink)
+ win_op |= DROPEFFECT_LINK;
+ if (op & WebDragOperationMove)
+ win_op |= DROPEFFECT_MOVE;
+ return win_op;
+}
+
} // namespace web_drag_utils_win
« no previous file with comments | « chrome/browser/tab_contents/web_drag_utils_win.h ('k') | chrome/browser/tab_contents/web_drop_target_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698