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 3881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3892 return runModalAlertDialog(frame, message); | 3892 return runModalAlertDialog(frame, message); |
3893 } | 3893 } |
3894 | 3894 |
3895 void RenderViewImpl::LoadURLExternally( | 3895 void RenderViewImpl::LoadURLExternally( |
3896 WebKit::WebFrame* frame, | 3896 WebKit::WebFrame* frame, |
3897 const WebKit::WebURLRequest& request, | 3897 const WebKit::WebURLRequest& request, |
3898 WebKit::WebNavigationPolicy policy) { | 3898 WebKit::WebNavigationPolicy policy) { |
3899 loadURLExternally(frame, request, policy); | 3899 loadURLExternally(frame, request, policy); |
3900 } | 3900 } |
3901 | 3901 |
| 3902 void RenderViewImpl::GetRenderingStats(WebKit::WebRenderingStats& stats) const { |
| 3903 RenderWidget::GetRenderingStats(stats); |
| 3904 } |
| 3905 |
3902 // webkit_glue::WebPluginPageDelegate ------------------------------------------ | 3906 // webkit_glue::WebPluginPageDelegate ------------------------------------------ |
3903 | 3907 |
3904 webkit::npapi::WebPluginDelegate* RenderViewImpl::CreatePluginDelegate( | 3908 webkit::npapi::WebPluginDelegate* RenderViewImpl::CreatePluginDelegate( |
3905 const FilePath& file_path, | 3909 const FilePath& file_path, |
3906 const std::string& mime_type) { | 3910 const std::string& mime_type) { |
3907 if (!PluginChannelHost::IsListening()) { | 3911 if (!PluginChannelHost::IsListening()) { |
3908 LOG(ERROR) << "PluginChannelHost isn't listening"; | 3912 LOG(ERROR) << "PluginChannelHost isn't listening"; |
3909 return NULL; | 3913 return NULL; |
3910 } | 3914 } |
3911 | 3915 |
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5603 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5607 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5604 return !!RenderThreadImpl::current()->compositor_thread(); | 5608 return !!RenderThreadImpl::current()->compositor_thread(); |
5605 } | 5609 } |
5606 | 5610 |
5607 void RenderViewImpl::OnJavaBridgeInit() { | 5611 void RenderViewImpl::OnJavaBridgeInit() { |
5608 DCHECK(!java_bridge_dispatcher_); | 5612 DCHECK(!java_bridge_dispatcher_); |
5609 #if defined(ENABLE_JAVA_BRIDGE) | 5613 #if defined(ENABLE_JAVA_BRIDGE) |
5610 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5614 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5611 #endif | 5615 #endif |
5612 } | 5616 } |
OLD | NEW |