OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #ifndef DragClientImpl_h | 31 #ifndef DragClientImpl_h |
32 #define DragClientImpl_h | 32 #define DragClientImpl_h |
33 | 33 |
34 #include "core/page/DragActions.h" | 34 #include "core/page/DragActions.h" |
35 #include "core/page/DragClient.h" | 35 #include "core/page/DragClient.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 class ClipBoard; | 38 class ClipBoard; |
39 class DragData; | 39 class DragData; |
| 40 class DragImage; |
40 class IntPoint; | 41 class IntPoint; |
41 class KURL; | 42 class KURL; |
42 } | 43 } |
43 | 44 |
44 namespace WebKit { | 45 namespace WebKit { |
45 class WebViewImpl; | 46 class WebViewImpl; |
46 | 47 |
47 class DragClientImpl : public WebCore::DragClient { | 48 class DragClientImpl : public WebCore::DragClient { |
48 public: | 49 public: |
49 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { } | 50 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { } |
50 | 51 |
51 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*)
; | 52 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*)
; |
52 virtual void startDrag( | 53 virtual void startDrag( |
53 WebCore::DragImageRef dragImage, | 54 WebCore::DragImage*, |
54 const WebCore::IntPoint& dragImageOrigin, | 55 const WebCore::IntPoint& dragImageOrigin, |
55 const WebCore::IntPoint& eventPos, | 56 const WebCore::IntPoint& eventPos, |
56 WebCore::Clipboard* clipboard, | 57 WebCore::Clipboard* clipboard, |
57 WebCore::Frame* frame, | 58 WebCore::Frame* frame, |
58 bool isLinkDrag = false); | 59 bool isLinkDrag = false); |
59 | 60 |
60 private: | 61 private: |
61 WebViewImpl* m_webView; | 62 WebViewImpl* m_webView; |
62 }; | 63 }; |
63 | 64 |
64 } // namespace WebKit | 65 } // namespace WebKit |
65 | 66 |
66 #endif | 67 #endif |
OLD | NEW |