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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 10392136: Add WebFrame pointer to WebViewClient::startDragging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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 | « content/renderer/render_view_impl.h ('k') | webkit/plugins/webview_plugin.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1941 matching lines...) Expand 10 before | Expand all | Expand 10 after
1952 void RenderViewImpl::setMouseOverURL(const WebURL& url) { 1952 void RenderViewImpl::setMouseOverURL(const WebURL& url) {
1953 mouse_over_url_ = GURL(url); 1953 mouse_over_url_ = GURL(url);
1954 UpdateTargetURL(mouse_over_url_, focus_url_); 1954 UpdateTargetURL(mouse_over_url_, focus_url_);
1955 } 1955 }
1956 1956
1957 void RenderViewImpl::setKeyboardFocusURL(const WebURL& url) { 1957 void RenderViewImpl::setKeyboardFocusURL(const WebURL& url) {
1958 focus_url_ = GURL(url); 1958 focus_url_ = GURL(url);
1959 UpdateTargetURL(focus_url_, mouse_over_url_); 1959 UpdateTargetURL(focus_url_, mouse_over_url_);
1960 } 1960 }
1961 1961
1962 void RenderViewImpl::startDragging(const WebDragData& data, 1962 void RenderViewImpl::startDragging(WebFrame* frame,
1963 const WebDragData& data,
1963 WebDragOperationsMask mask, 1964 WebDragOperationsMask mask,
1964 const WebImage& image, 1965 const WebImage& image,
1965 const WebPoint& imageOffset) { 1966 const WebPoint& imageOffset) {
1966 Send(new DragHostMsg_StartDragging(routing_id_, 1967 Send(new DragHostMsg_StartDragging(routing_id_,
1967 WebDropData(data), 1968 WebDropData(data),
1968 mask, 1969 mask,
1969 image.getSkBitmap(), 1970 image.getSkBitmap(),
1970 imageOffset)); 1971 imageOffset));
1971 } 1972 }
1972 1973
(...skipping 3418 matching lines...) Expand 10 before | Expand all | Expand 10 after
5391 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5392 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5392 return !!RenderThreadImpl::current()->compositor_thread(); 5393 return !!RenderThreadImpl::current()->compositor_thread();
5393 } 5394 }
5394 5395
5395 void RenderViewImpl::OnJavaBridgeInit() { 5396 void RenderViewImpl::OnJavaBridgeInit() {
5396 DCHECK(!java_bridge_dispatcher_); 5397 DCHECK(!java_bridge_dispatcher_);
5397 #if defined(ENABLE_JAVA_BRIDGE) 5398 #if defined(ENABLE_JAVA_BRIDGE)
5398 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); 5399 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this);
5399 #endif 5400 #endif
5400 } 5401 }
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | webkit/plugins/webview_plugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698