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 5188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5199 #if defined(OS_MACOSX) | 5199 #if defined(OS_MACOSX) |
5200 // Inform NPAPI plugins that their container is no longer visible. | 5200 // Inform NPAPI plugins that their container is no longer visible. |
5201 std::set<WebPluginDelegateProxy*>::iterator plugin_it; | 5201 std::set<WebPluginDelegateProxy*>::iterator plugin_it; |
5202 for (plugin_it = plugin_delegates_.begin(); | 5202 for (plugin_it = plugin_delegates_.begin(); |
5203 plugin_it != plugin_delegates_.end(); ++plugin_it) { | 5203 plugin_it != plugin_delegates_.end(); ++plugin_it) { |
5204 (*plugin_it)->SetContainerVisibility(false); | 5204 (*plugin_it)->SetContainerVisibility(false); |
5205 } | 5205 } |
5206 #endif // OS_MACOSX | 5206 #endif // OS_MACOSX |
5207 } | 5207 } |
5208 | 5208 |
5209 void RenderViewImpl::OnWasRestored(bool needs_repainting) { | 5209 void RenderViewImpl::OnWasShown(bool needs_repainting) { |
5210 RenderWidget::OnWasRestored(needs_repainting); | 5210 RenderWidget::OnWasShown(needs_repainting); |
5211 | 5211 |
5212 if (webview()) { | 5212 if (webview()) { |
5213 webview()->settings()->setMinimumTimerInterval( | 5213 webview()->settings()->setMinimumTimerInterval( |
5214 webkit_glue::kForegroundTabTimerInterval); | 5214 webkit_glue::kForegroundTabTimerInterval); |
5215 webview()->setVisibilityState(visibilityState(), false); | 5215 webview()->setVisibilityState(visibilityState(), false); |
5216 } | 5216 } |
5217 | 5217 |
5218 // Inform PPAPI plugins that their page is visible. | 5218 // Inform PPAPI plugins that their page is visible. |
5219 pepper_delegate_.PageVisibilityChanged(true); | 5219 pepper_delegate_.PageVisibilityChanged(true); |
5220 | 5220 |
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5715 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { | 5715 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { |
5716 return !!RenderThreadImpl::current()->compositor_thread(); | 5716 return !!RenderThreadImpl::current()->compositor_thread(); |
5717 } | 5717 } |
5718 | 5718 |
5719 void RenderViewImpl::OnJavaBridgeInit() { | 5719 void RenderViewImpl::OnJavaBridgeInit() { |
5720 DCHECK(!java_bridge_dispatcher_); | 5720 DCHECK(!java_bridge_dispatcher_); |
5721 #if defined(ENABLE_JAVA_BRIDGE) | 5721 #if defined(ENABLE_JAVA_BRIDGE) |
5722 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); | 5722 java_bridge_dispatcher_ = new JavaBridgeDispatcher(this); |
5723 #endif | 5723 #endif |
5724 } | 5724 } |
OLD | NEW |