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 #ifndef WEBKIT_GLUE_DRAGCLIENT_IMPL_H__ | 5 #ifndef WEBKIT_GLUE_DRAGCLIENT_IMPL_H__ |
6 #define WEBKIT_GLUE_DRAGCLIENT_IMPL_H__ | 6 #define WEBKIT_GLUE_DRAGCLIENT_IMPL_H__ |
7 | 7 |
8 #include "base/basictypes.h" | |
9 #include "base/compiler_specific.h" | |
10 | |
11 MSVC_PUSH_WARNING_LEVEL(0); | |
12 #include "DragClient.h" | 8 #include "DragClient.h" |
13 #include "DragActions.h" | 9 #include "DragActions.h" |
14 MSVC_POP_WARNING(); | |
15 | 10 |
16 namespace WebCore { | 11 namespace WebCore { |
17 class ClipBoard; | 12 class ClipBoard; |
18 class DragData; | 13 class DragData; |
19 class IntPoint; | 14 class IntPoint; |
20 class KURL; | 15 class KURL; |
21 } | 16 } |
22 | 17 |
23 class WebViewImpl; | 18 class WebViewImpl; |
24 | 19 |
25 class DragClientImpl : public WebCore::DragClient { | 20 class DragClientImpl : public WebCore::DragClient { |
26 public: | 21 public: |
27 DragClientImpl(WebViewImpl* webview) : webview_(webview) {} | 22 DragClientImpl(WebViewImpl* webview) : webview_(webview) {} |
28 virtual ~DragClientImpl() {} | 23 virtual ~DragClientImpl() {} |
29 | 24 |
30 virtual void willPerformDragDestinationAction(WebCore::DragDestinationAction, | 25 virtual void willPerformDragDestinationAction(WebCore::DragDestinationAction, |
31 WebCore::DragData*); | 26 WebCore::DragData*); |
32 virtual void willPerformDragSourceAction(WebCore::DragSourceAction, | 27 virtual void willPerformDragSourceAction(WebCore::DragSourceAction, |
33 const WebCore::IntPoint&, | 28 const WebCore::IntPoint&, |
34 WebCore::Clipboard*); | 29 WebCore::Clipboard*); |
35 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*); | 30 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*); |
36 virtual WebCore::DragSourceAction dragSourceActionMaskForPoint( | 31 virtual WebCore::DragSourceAction dragSourceActionMaskForPoint( |
37 const WebCore::IntPoint& window_point); | 32 const WebCore::IntPoint& window_point); |
38 | 33 |
39 virtual void startDrag(WebCore::DragImageRef drag_image, | 34 virtual void startDrag(WebCore::DragImageRef drag_image, |
40 const WebCore::IntPoint& drag_image_origin, | 35 const WebCore::IntPoint& drag_image_origin, |
41 const WebCore::IntPoint& event_pos, | 36 const WebCore::IntPoint& event_pos, |
42 WebCore::Clipboard* clipboard, | 37 WebCore::Clipboard* clipboard, |
43 WebCore::Frame* frame, | 38 WebCore::Frame* frame, |
44 bool is_link_drag = false); | 39 bool is_link_drag = false); |
45 virtual WebCore::DragImageRef createDragImageForLink( | 40 virtual WebCore::DragImageRef createDragImageForLink( |
46 WebCore::KURL&, const WebCore::String& label, WebCore::Frame*); | 41 WebCore::KURL&, const WebCore::String& label, WebCore::Frame*); |
47 | 42 |
48 virtual void dragControllerDestroyed(); | 43 virtual void dragControllerDestroyed(); |
49 | 44 |
50 private: | 45 private: |
51 DISALLOW_EVIL_CONSTRUCTORS(DragClientImpl); | |
52 WebViewImpl* webview_; | 46 WebViewImpl* webview_; |
53 }; | 47 }; |
54 | 48 |
55 #endif // #ifndef WEBKIT_GLUE_DRAGCLIENT_IMPL_H__ | 49 #endif // #ifndef WEBKIT_GLUE_DRAGCLIENT_IMPL_H__ |
OLD | NEW |