Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1779)

Side by Side Diff: webkit/tools/test_shell/drag_delegate.h

Issue 6250014: Move more dnd related files to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « views/widget/widget_gtk.cc ('k') | webkit/tools/test_shell/drop_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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__
OLDNEW
« no previous file with comments | « views/widget/widget_gtk.cc ('k') | webkit/tools/test_shell/drop_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698