| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 3102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3113 return runModalAlertDialog(frame, message); | 3113 return runModalAlertDialog(frame, message); |
| 3114 } | 3114 } |
| 3115 | 3115 |
| 3116 void RenderViewImpl::LoadURLExternally( | 3116 void RenderViewImpl::LoadURLExternally( |
| 3117 WebKit::WebFrame* frame, | 3117 WebKit::WebFrame* frame, |
| 3118 const WebKit::WebURLRequest& request, | 3118 const WebKit::WebURLRequest& request, |
| 3119 WebKit::WebNavigationPolicy policy) { | 3119 WebKit::WebNavigationPolicy policy) { |
| 3120 loadURLExternally(frame, request, policy); | 3120 loadURLExternally(frame, request, policy); |
| 3121 } | 3121 } |
| 3122 | 3122 |
| 3123 bool RenderViewImpl::IsInFullscreenMode() { |
| 3124 // TODO(darin): add a boolean flag to ViewMsg_Resize indicating whether or |
| 3125 // not we are in fullscreen mode. Return the value that was reported via the |
| 3126 // ViewMsg_Resize IPC. |
| 3127 return true; |
| 3128 } |
| 3129 |
| 3123 // webkit_glue::WebPluginPageDelegate ------------------------------------------ | 3130 // webkit_glue::WebPluginPageDelegate ------------------------------------------ |
| 3124 | 3131 |
| 3125 webkit::npapi::WebPluginDelegate* RenderViewImpl::CreatePluginDelegate( | 3132 webkit::npapi::WebPluginDelegate* RenderViewImpl::CreatePluginDelegate( |
| 3126 const FilePath& file_path, | 3133 const FilePath& file_path, |
| 3127 const std::string& mime_type) { | 3134 const std::string& mime_type) { |
| 3128 if (!PluginChannelHost::IsListening()) | 3135 if (!PluginChannelHost::IsListening()) |
| 3129 return NULL; | 3136 return NULL; |
| 3130 | 3137 |
| 3131 bool in_process_plugin = RenderProcess::current()->UseInProcessPlugins(); | 3138 bool in_process_plugin = RenderProcess::current()->UseInProcessPlugins(); |
| 3132 if (in_process_plugin) { | 3139 if (in_process_plugin) { |
| (...skipping 1457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4590 pepper_delegate_.OnLockMouseACK(succeeded); | 4597 pepper_delegate_.OnLockMouseACK(succeeded); |
| 4591 } | 4598 } |
| 4592 | 4599 |
| 4593 void RenderViewImpl::OnMouseLockLost() { | 4600 void RenderViewImpl::OnMouseLockLost() { |
| 4594 pepper_delegate_.OnMouseLockLost(); | 4601 pepper_delegate_.OnMouseLockLost(); |
| 4595 } | 4602 } |
| 4596 | 4603 |
| 4597 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 4604 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
| 4598 return webview()->settings()->useThreadedCompositor(); | 4605 return webview()->settings()->useThreadedCompositor(); |
| 4599 } | 4606 } |
| OLD | NEW |