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

Unified Diff: webkit/tools/test_shell/drop_delegate.cc

Issue 10703171: Migrate drag&drop code in test_shell to new WebKit API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/drop_delegate.cc
diff --git a/webkit/tools/test_shell/drop_delegate.cc b/webkit/tools/test_shell/drop_delegate.cc
index 4f577043536efe98ac10487fb77c072d01ba3842..aff7116e7a37f40e704dbe926c295cdd8a64d9df 100644
--- a/webkit/tools/test_shell/drop_delegate.cc
+++ b/webkit/tools/test_shell/drop_delegate.cc
@@ -32,7 +32,8 @@ DWORD TestDropDelegate::OnDragEnter(IDataObject* data_object,
drop_data.ToDragData(),
WebPoint(client_pt.x, client_pt.y),
WebPoint(cursor_position.x, cursor_position.y),
- WebDragOperationCopy);
+ WebDragOperationCopy,
+ 0);
// TODO(snej): Pass the real drag operation instead
return op ? DROPEFFECT_COPY : DROPEFFECT_NONE;
// TODO(snej): Return the real drop effect constant matching 'op'
@@ -47,7 +48,8 @@ DWORD TestDropDelegate::OnDragOver(IDataObject* data_object,
WebDragOperation op = webview_->dragTargetDragOver(
WebPoint(client_pt.x, client_pt.y),
WebPoint(cursor_position.x, cursor_position.y),
- WebDragOperationCopy);
+ WebDragOperationCopy,
+ 0);
// TODO(snej): Pass the real drag operation instead
return op ? DROPEFFECT_COPY : DROPEFFECT_NONE;
// TODO(snej): Return the real drop effect constant matching 'op'
@@ -65,7 +67,8 @@ DWORD TestDropDelegate::OnDrop(IDataObject* data_object,
ScreenToClient(GetHWND(), &client_pt);
webview_->dragTargetDrop(
WebPoint(client_pt.x, client_pt.y),
- WebPoint(cursor_position.x, cursor_position.y));
+ WebPoint(cursor_position.x, cursor_position.y),
+ 0);
// webkit win port always returns DROPEFFECT_NONE
return DROPEFFECT_NONE;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698