OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |