| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |