| 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 #include "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "ChromiumDataObject.h" | 7 #include "ChromiumDataObject.h" |
| 8 #include "ClipboardChromium.h" | 8 #include "ClipboardChromium.h" |
| 9 #include "Frame.h" | 9 #include "Frame.h" |
| 10 #undef LOG | 10 #undef LOG |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 WebCore::Clipboard* clipboard, | 54 WebCore::Clipboard* clipboard, |
| 55 WebCore::Frame* frame, | 55 WebCore::Frame* frame, |
| 56 bool is_link_drag) { | 56 bool is_link_drag) { |
| 57 // Add a ref to the frame just in case a load occurs mid-drag. | 57 // Add a ref to the frame just in case a load occurs mid-drag. |
| 58 RefPtr<WebCore::Frame> frame_protector = frame; | 58 RefPtr<WebCore::Frame> frame_protector = frame; |
| 59 | 59 |
| 60 WebDragData drag_data = webkit_glue::ChromiumDataObjectToWebDragData( | 60 WebDragData drag_data = webkit_glue::ChromiumDataObjectToWebDragData( |
| 61 static_cast<WebCore::ClipboardChromium*>(clipboard)->dataObject()); | 61 static_cast<WebCore::ClipboardChromium*>(clipboard)->dataObject()); |
| 62 | 62 |
| 63 WebCore::DragOperation drag_operation_mask; | 63 WebCore::DragOperation drag_operation_mask; |
| 64 if (!clipboard->sourceOperation(drag_operation_mask)) { | 64 if (!clipboard->sourceOperation(drag_operation_mask)) |
| 65 drag_operation_mask = WebCore::DragOperationEvery; | 65 drag_operation_mask = WebCore::DragOperationEvery; |
| 66 } | |
| 67 | 66 |
| 68 webview_->StartDragging(webkit_glue::IntPointToWebPoint(event_pos), | 67 webview_->StartDragging( |
| 68 webkit_glue::IntPointToWebPoint(event_pos), |
| 69 drag_data, | 69 drag_data, |
| 70 static_cast<WebKit::WebDragOperationsMask>(drag_operation_mask)); | 70 static_cast<WebKit::WebDragOperationsMask>(drag_operation_mask)); |
| 71 } | 71 } |
| 72 | 72 |
| 73 WebCore::DragImageRef DragClientImpl::createDragImageForLink( | 73 WebCore::DragImageRef DragClientImpl::createDragImageForLink( |
| 74 WebCore::KURL&, | 74 WebCore::KURL&, |
| 75 const WebCore::String& label, | 75 const WebCore::String& label, |
| 76 WebCore::Frame*) { | 76 WebCore::Frame*) { |
| 77 // FIXME | 77 // FIXME |
| 78 return 0; | 78 return 0; |
| 79 } | 79 } |
| 80 | 80 |
| 81 void DragClientImpl::dragControllerDestroyed() { | 81 void DragClientImpl::dragControllerDestroyed() { |
| 82 // Our lifetime is bound to the WebViewImpl. | 82 // Our lifetime is bound to the WebViewImpl. |
| 83 } | 83 } |
| OLD | NEW |