OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "third_party/WebKit/Source/WebKit/chromium/public/WebDragData.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebDragData.
h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPoint.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebPoint.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 9 #include "third_party/WebKit/Source/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 TestDropDelegate::TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview) | 17 TestDropDelegate::TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview) |
18 : ui::DropTarget(source_hwnd), | 18 : ui::DropTarget(source_hwnd), |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 DWORD effect) { | 63 DWORD effect) { |
64 POINT client_pt = cursor_position; | 64 POINT client_pt = cursor_position; |
65 ScreenToClient(GetHWND(), &client_pt); | 65 ScreenToClient(GetHWND(), &client_pt); |
66 webview_->dragTargetDrop( | 66 webview_->dragTargetDrop( |
67 WebPoint(client_pt.x, client_pt.y), | 67 WebPoint(client_pt.x, client_pt.y), |
68 WebPoint(cursor_position.x, cursor_position.y)); | 68 WebPoint(cursor_position.x, cursor_position.y)); |
69 | 69 |
70 // webkit win port always returns DROPEFFECT_NONE | 70 // webkit win port always returns DROPEFFECT_NONE |
71 return DROPEFFECT_NONE; | 71 return DROPEFFECT_NONE; |
72 } | 72 } |
OLD | NEW |