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 27 matching lines...) Expand all Loading... |
38 class ClipBoard; | 38 class ClipBoard; |
39 class DragData; | 39 class DragData; |
40 class DragImage; | 40 class DragImage; |
41 class IntPoint; | 41 class IntPoint; |
42 class KURL; | 42 class KURL; |
43 } | 43 } |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 class WebViewImpl; | 46 class WebViewImpl; |
47 | 47 |
48 class DragClientImpl : public WebCore::DragClient { | 48 class DragClientImpl FINAL : public WebCore::DragClient { |
49 public: | 49 public: |
50 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { } | 50 DragClientImpl(WebViewImpl* webView) : m_webView(webView) { } |
51 | 51 |
52 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*)
; | 52 virtual WebCore::DragDestinationAction actionMaskForDrag(WebCore::DragData*)
OVERRIDE; |
53 virtual void startDrag( | 53 virtual void startDrag( |
54 WebCore::DragImage*, | 54 WebCore::DragImage*, |
55 const WebCore::IntPoint& dragImageOrigin, | 55 const WebCore::IntPoint& dragImageOrigin, |
56 const WebCore::IntPoint& eventPos, | 56 const WebCore::IntPoint& eventPos, |
57 WebCore::Clipboard* clipboard, | 57 WebCore::Clipboard* clipboard, |
58 WebCore::Frame* frame, | 58 WebCore::Frame* frame, |
59 bool isLinkDrag = false); | 59 bool isLinkDrag = false) OVERRIDE; |
60 | 60 |
61 private: | 61 private: |
62 WebViewImpl* m_webView; | 62 WebViewImpl* m_webView; |
63 }; | 63 }; |
64 | 64 |
65 } // namespace blink | 65 } // namespace blink |
66 | 66 |
67 #endif | 67 #endif |
OLD | NEW |