| 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 5143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5154 } | 5154 } |
| 5155 | 5155 |
| 5156 void RenderViewImpl::OnViewContextSwapBuffersAborted() { | 5156 void RenderViewImpl::OnViewContextSwapBuffersAborted() { |
| 5157 RenderWidget::OnSwapBuffersAborted(); | 5157 RenderWidget::OnSwapBuffersAborted(); |
| 5158 } | 5158 } |
| 5159 | 5159 |
| 5160 webkit::ppapi::PluginInstance* RenderViewImpl::GetBitmapForOptimizedPluginPaint( | 5160 webkit::ppapi::PluginInstance* RenderViewImpl::GetBitmapForOptimizedPluginPaint( |
| 5161 const gfx::Rect& paint_bounds, | 5161 const gfx::Rect& paint_bounds, |
| 5162 TransportDIB** dib, | 5162 TransportDIB** dib, |
| 5163 gfx::Rect* location, | 5163 gfx::Rect* location, |
| 5164 gfx::Rect* clip) { | 5164 gfx::Rect* clip, |
| 5165 float* scale_factor) { |
| 5165 return pepper_delegate_.GetBitmapForOptimizedPluginPaint( | 5166 return pepper_delegate_.GetBitmapForOptimizedPluginPaint( |
| 5166 paint_bounds, dib, location, clip); | 5167 paint_bounds, dib, location, clip, scale_factor); |
| 5167 } | 5168 } |
| 5168 | 5169 |
| 5169 gfx::Point RenderViewImpl::GetScrollOffset() { | 5170 gfx::Point RenderViewImpl::GetScrollOffset() { |
| 5170 WebSize scroll_offset = webview()->mainFrame()->scrollOffset(); | 5171 WebSize scroll_offset = webview()->mainFrame()->scrollOffset(); |
| 5171 return gfx::Point(scroll_offset.width, scroll_offset.height); | 5172 return gfx::Point(scroll_offset.width, scroll_offset.height); |
| 5172 } | 5173 } |
| 5173 | 5174 |
| 5174 void RenderViewImpl::OnClearFocusedNode() { | 5175 void RenderViewImpl::OnClearFocusedNode() { |
| 5175 if (webview()) | 5176 if (webview()) |
| 5176 webview()->clearFocusedNode(); | 5177 webview()->clearFocusedNode(); |
| (...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5892 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5893 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 5893 return !!RenderThreadImpl::current()->compositor_thread(); | 5894 return !!RenderThreadImpl::current()->compositor_thread(); |
| 5894 } | 5895 } |
| 5895 | 5896 |
| 5896 void RenderViewImpl::OnJavaBridgeInit() { | 5897 void RenderViewImpl::OnJavaBridgeInit() { |
| 5897 DCHECK(!java_bridge_dispatcher_); | 5898 DCHECK(!java_bridge_dispatcher_); |
| 5898 #if defined(ENABLE_JAVA_BRIDGE) | 5899 #if defined(ENABLE_JAVA_BRIDGE) |
| 5899 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5900 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
| 5900 #endif | 5901 #endif |
| 5901 } | 5902 } |
| OLD | NEW |