| 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 #ifndef WEBKIT_TOOLS_TEST_SHELL_DRAG_DELEGATE_H__ | 5 #ifndef WEBKIT_TOOLS_TEST_SHELL_DRAG_DELEGATE_H__ |
| 6 #define WEBKIT_TOOLS_TEST_SHELL_DRAG_DELEGATE_H__ | 6 #define WEBKIT_TOOLS_TEST_SHELL_DRAG_DELEGATE_H__ |
| 7 | 7 |
| 8 #include "app/win/drag_source.h" | 8 #include "ui/base/dragdrop/drag_source.h" |
| 9 | 9 |
| 10 namespace WebKit { | 10 namespace WebKit { |
| 11 class WebView; | 11 class WebView; |
| 12 } | 12 } |
| 13 | 13 |
| 14 // A class that implements app::win::DragSource for the test shell webview | 14 // A class that implements ui::DragSource for the test shell webview |
| 15 // delegate. | 15 // delegate. |
| 16 class TestDragDelegate : public app::win::DragSource { | 16 class TestDragDelegate : public ui::DragSource { |
| 17 public: | 17 public: |
| 18 TestDragDelegate(HWND source_hwnd, WebKit::WebView* webview) | 18 TestDragDelegate(HWND source_hwnd, WebKit::WebView* webview) |
| 19 : app::win::DragSource(), | 19 : ui::DragSource(), |
| 20 source_hwnd_(source_hwnd), | 20 source_hwnd_(source_hwnd), |
| 21 webview_(webview) { } | 21 webview_(webview) { } |
| 22 | 22 |
| 23 protected: | 23 protected: |
| 24 // app::win::DragSource | 24 // ui::DragSource |
| 25 virtual void OnDragSourceCancel(); | 25 virtual void OnDragSourceCancel(); |
| 26 virtual void OnDragSourceDrop(); | 26 virtual void OnDragSourceDrop(); |
| 27 virtual void OnDragSourceMove(); | 27 virtual void OnDragSourceMove(); |
| 28 | 28 |
| 29 private: | 29 private: |
| 30 WebKit::WebView* webview_; | 30 WebKit::WebView* webview_; |
| 31 | 31 |
| 32 // A HWND for the source we are associated with, used for translating | 32 // A HWND for the source we are associated with, used for translating |
| 33 // mouse coordinates from screen to client coordinates. | 33 // mouse coordinates from screen to client coordinates. |
| 34 HWND source_hwnd_; | 34 HWND source_hwnd_; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 #endif // WEBKIT_TOOLS_TEST_SHELL_DRAG_DELEGATE_H__ | 37 #endif // WEBKIT_TOOLS_TEST_SHELL_DRAG_DELEGATE_H__ |
| OLD | NEW |