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 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "DragClientImpl.h" | 32 #include "DragClientImpl.h" |
33 | 33 |
34 #include "ChromiumDataObject.h" | 34 #include "ChromiumDataObject.h" |
35 #include "ClipboardChromium.h" | 35 #include "ClipboardChromium.h" |
36 #include "Frame.h" | 36 #include "Frame.h" |
37 #include "WebDragData.h" | 37 #include "WebDragData.h" |
38 #include "WebViewClient.h" | 38 #include "WebViewClient.h" |
39 | 39 #include "WebViewImpl.h" |
40 // FIXME: Remove this once WebViewImpl moves out of glue/. | |
41 #include "webkit/glue/webview_impl.h" | |
42 | 40 |
43 using namespace WebCore; | 41 using namespace WebCore; |
44 | 42 |
45 namespace WebKit { | 43 namespace WebKit { |
46 | 44 |
47 void DragClientImpl::willPerformDragDestinationAction(DragDestinationAction, DragData*) | 45 void DragClientImpl::willPerformDragDestinationAction(DragDestinationAction, DragData*) |
48 { | 46 { |
49 // FIXME | 47 // FIXME |
50 } | 48 } |
51 | 49 |
(...skipping 26 matching lines...) Expand all Loading... |
78 { | 76 { |
79 // Add a ref to the frame just in case a load occurs mid-drag. | 77 // Add a ref to the frame just in case a load occurs mid-drag. |
80 RefPtr<Frame> frameProtector = frame; | 78 RefPtr<Frame> frameProtector = frame; |
81 | 79 |
82 WebDragData dragData = static_cast<ClipboardChromium*>(clipboard)->dataObject(); | 80 WebDragData dragData = static_cast<ClipboardChromium*>(clipboard)->dataObject(); |
83 | 81 |
84 DragOperation dragOperationMask; | 82 DragOperation dragOperationMask; |
85 if (!clipboard->sourceOperation(dragOperationMask)) | 83 if (!clipboard->sourceOperation(dragOperationMask)) |
86 dragOperationMask = DragOperationEvery; | 84 dragOperationMask = DragOperationEvery; |
87 | 85 |
88 m_webView->StartDragging( | 86 m_webView->startDragging( |
89 eventPos, dragData, static_cast<WebDragOperationsMask>(dragOperationMask)); | 87 eventPos, dragData, static_cast<WebDragOperationsMask>(dragOperationMask)); |
90 } | 88 } |
91 | 89 |
92 DragImageRef DragClientImpl::createDragImageForLink(KURL&, const String& label, Frame*) | 90 DragImageRef DragClientImpl::createDragImageForLink(KURL&, const String& label, Frame*) |
93 { | 91 { |
94 // FIXME | 92 // FIXME |
95 return 0; | 93 return 0; |
96 } | 94 } |
97 | 95 |
98 void DragClientImpl::dragControllerDestroyed() | 96 void DragClientImpl::dragControllerDestroyed() |
99 { | 97 { |
100 // Our lifetime is bound to the WebViewImpl. | 98 // Our lifetime is bound to the WebViewImpl. |
101 } | 99 } |
102 | 100 |
103 } // namespace WebKit | 101 } // namespace WebKit |
OLD | NEW |