OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // A class that implements BaseDropTarget for the test shell webview delegate. | 5 // A class that implements BaseDropTarget for the test shell webview delegate. |
6 | 6 |
7 #ifndef WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ | 7 #ifndef WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ |
8 #define WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ | 8 #define WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ |
9 | 9 |
10 #include "app/win/drop_target.h" | 10 #include "ui/base/dragdrop/drop_target.h" |
11 | 11 |
12 namespace WebKit { | 12 namespace WebKit { |
13 class WebView; | 13 class WebView; |
14 } | 14 } |
15 | 15 |
16 class TestDropDelegate : public app::win::DropTarget { | 16 class TestDropDelegate : public ui::DropTarget { |
17 public: | 17 public: |
18 TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview); | 18 TestDropDelegate(HWND source_hwnd, WebKit::WebView* webview); |
19 | 19 |
20 protected: | 20 protected: |
21 // BaseDropTarget methods | 21 // BaseDropTarget methods |
22 virtual DWORD OnDragEnter(IDataObject* data_object, | 22 virtual DWORD OnDragEnter(IDataObject* data_object, |
23 DWORD key_state, | 23 DWORD key_state, |
24 POINT cursor_position, | 24 POINT cursor_position, |
25 DWORD effect); | 25 DWORD effect); |
26 virtual DWORD OnDragOver(IDataObject* data_object, | 26 virtual DWORD OnDragOver(IDataObject* data_object, |
27 DWORD key_state, | 27 DWORD key_state, |
28 POINT cursor_position, | 28 POINT cursor_position, |
29 DWORD effect); | 29 DWORD effect); |
30 virtual void OnDragLeave(IDataObject* data_object); | 30 virtual void OnDragLeave(IDataObject* data_object); |
31 virtual DWORD OnDrop(IDataObject* data_object, | 31 virtual DWORD OnDrop(IDataObject* data_object, |
32 DWORD key_state, | 32 DWORD key_state, |
33 POINT cursor_position, | 33 POINT cursor_position, |
34 DWORD effect); | 34 DWORD effect); |
35 | 35 |
36 private: | 36 private: |
37 WebKit::WebView* webview_; | 37 WebKit::WebView* webview_; |
38 }; | 38 }; |
39 | 39 |
40 #endif // WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ | 40 #endif // WEBKIT_TOOLS_TEST_SHELL_DROP_DELEGATE_H_ |
OLD | NEW |