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

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

Issue 174364: Plumb the DragOperation through all the layers between the platform DnD code ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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_drop_target.cc
===================================================================
--- chrome/browser/tab_contents/web_drop_target.cc (revision 25321)
+++ chrome/browser/tab_contents/web_drop_target.cc (working copy)
@@ -18,6 +18,8 @@
#include "webkit/glue/webdropdata.h"
#include "webkit/glue/window_open_disposition.h"
+using WebKit::WebDragOperationCopy;
+
namespace {
// A helper method for getting the preferred drop effect.
@@ -113,7 +115,8 @@
ScreenToClient(GetHWND(), &client_pt);
tab_contents_->render_view_host()->DragTargetDragEnter(drop_data,
gfx::Point(client_pt.x, client_pt.y),
- gfx::Point(cursor_position.x, cursor_position.y));
+ gfx::Point(cursor_position.x, cursor_position.y),
+ WebDragOperationCopy); // FIXME(snej): Send actual operation
// We lie here and always return a DROPEFFECT because we don't want to
// wait for the IPC call to return.
@@ -135,7 +138,8 @@
ScreenToClient(GetHWND(), &client_pt);
tab_contents_->render_view_host()->DragTargetDragOver(
gfx::Point(client_pt.x, client_pt.y),
- gfx::Point(cursor_position.x, cursor_position.y));
+ gfx::Point(cursor_position.x, cursor_position.y),
+ WebDragOperationCopy); // FIXME(snej): Send actual operation
if (!is_drop_target_)
return DROPEFFECT_NONE;
« no previous file with comments | « chrome/browser/tab_contents/web_drag_source.cc ('k') | chrome/browser/views/tab_contents/tab_contents_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698