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

Unified Diff: content/browser/web_contents/web_drag_dest_win.cc

Issue 10377119: Plumb event flags (shift/alt/ctrl modifiers) for drag/drop events to WebKit. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: content/browser/web_contents/web_drag_dest_win.cc
diff --git a/content/browser/web_contents/web_drag_dest_win.cc b/content/browser/web_contents/web_drag_dest_win.cc
index 8a3142d388caf1865150217fde715e6cbfd0c4dd..c22e9ffb94b06074c0ec13ed21e367f3a111d2e8 100644
--- a/content/browser/web_contents/web_drag_dest_win.cc
+++ b/content/browser/web_contents/web_drag_dest_win.cc
@@ -129,7 +129,8 @@ DWORD WebDragDest::OnDragEnter(IDataObject* data_object,
web_contents_->GetRenderViewHost()->DragTargetDragEnter(*drop_data_,
gfx::Point(client_pt.x, client_pt.y),
gfx::Point(cursor_position.x, cursor_position.y),
- web_drag_utils_win::WinDragOpMaskToWebDragOpMask(effects));
+ web_drag_utils_win::WinDragOpMaskToWebDragOpMask(effects),
+ 0 /* shift/ctrl/alt flags */);
if (delegate_)
delegate_->OnDragEnter(data_object);
@@ -155,7 +156,8 @@ DWORD WebDragDest::OnDragOver(IDataObject* data_object,
web_contents_->GetRenderViewHost()->DragTargetDragOver(
gfx::Point(client_pt.x, client_pt.y),
gfx::Point(cursor_position.x, cursor_position.y),
- web_drag_utils_win::WinDragOpMaskToWebDragOpMask(effects));
+ web_drag_utils_win::WinDragOpMaskToWebDragOpMask(effects),
+ 0 /* shift/ctrl/alt flags */);
if (delegate_)
delegate_->OnDragOver(data_object);
@@ -198,7 +200,8 @@ DWORD WebDragDest::OnDrop(IDataObject* data_object,
ScreenToClient(GetHWND(), &client_pt);
web_contents_->GetRenderViewHost()->DragTargetDrop(
gfx::Point(client_pt.x, client_pt.y),
- gfx::Point(cursor_position.x, cursor_position.y));
+ gfx::Point(cursor_position.x, cursor_position.y),
+ 0 /* shift/ctrl/alt flags */);
if (delegate_)
delegate_->OnDrop(data_object);

Powered by Google App Engine
This is Rietveld 408576698