Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(569)

Side by Side Diff: webkit/glue/dragclient_impl.cc

Issue 196128: Hook up WebViewClient, part 1.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/chrome_client_impl.cc ('k') | webkit/glue/webframeloaderclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698