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