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

Side by Side Diff: webkit/tools/test_shell/drop_delegate.cc

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "webkit/tools/test_shell/drop_delegate.h" 5 #include "webkit/tools/test_shell/drop_delegate.h"
6 6
7 #include "webkit/api/public/WebDragData.h" 7 #include "third_party/WebKit/WebKit/chromium/public/WebDragData.h"
8 #include "webkit/api/public/WebPoint.h" 8 #include "third_party/WebKit/WebKit/chromium/public/WebPoint.h"
9 #include "webkit/api/public/WebView.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebView.h"
10 #include "webkit/glue/webdropdata.h" 10 #include "webkit/glue/webdropdata.h"
11 11
12 using WebKit::WebDragOperation; 12 using WebKit::WebDragOperation;
13 using WebKit::WebDragOperationCopy; 13 using WebKit::WebDragOperationCopy;
14 using WebKit::WebPoint; 14 using WebKit::WebPoint;
15 using WebKit::WebView; 15 using WebKit::WebView;
16 16
17 // BaseDropTarget methods ---------------------------------------------------- 17 // BaseDropTarget methods ----------------------------------------------------
18 18
19 DWORD TestDropDelegate::OnDragEnter(IDataObject* data_object, 19 DWORD TestDropDelegate::OnDragEnter(IDataObject* data_object,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 DWORD effect) { 60 DWORD effect) {
61 POINT client_pt = cursor_position; 61 POINT client_pt = cursor_position;
62 ScreenToClient(GetHWND(), &client_pt); 62 ScreenToClient(GetHWND(), &client_pt);
63 webview_->dragTargetDrop( 63 webview_->dragTargetDrop(
64 WebPoint(client_pt.x, client_pt.y), 64 WebPoint(client_pt.x, client_pt.y),
65 WebPoint(cursor_position.x, cursor_position.y)); 65 WebPoint(cursor_position.x, cursor_position.y));
66 66
67 // webkit win port always returns DROPEFFECT_NONE 67 // webkit win port always returns DROPEFFECT_NONE
68 return DROPEFFECT_NONE; 68 return DROPEFFECT_NONE;
69 } 69 }
OLDNEW
« no previous file with comments | « webkit/tools/test_shell/drag_delegate.cc ('k') | webkit/tools/test_shell/event_sending_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698