| 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 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 3546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3557 return false; | 3557 return false; |
| 3558 return webview()->hasTouchEventHandlersAt(point); | 3558 return webview()->hasTouchEventHandlersAt(point); |
| 3559 } | 3559 } |
| 3560 | 3560 |
| 3561 void RenderViewImpl::OnWasHidden() { | 3561 void RenderViewImpl::OnWasHidden() { |
| 3562 RenderWidget::OnWasHidden(); | 3562 RenderWidget::OnWasHidden(); |
| 3563 | 3563 |
| 3564 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) | 3564 #if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |
| 3565 RenderThreadImpl::current()->video_capture_impl_manager()-> | 3565 RenderThreadImpl::current()->video_capture_impl_manager()-> |
| 3566 SuspendDevices(true); | 3566 SuspendDevices(true); |
| 3567 speech_recognition_dispatcher_->AbortAllRecognitions(); | |
| 3568 #endif | 3567 #endif |
| 3569 | 3568 |
| 3570 if (webview()) | 3569 if (webview()) |
| 3571 webview()->setVisibilityState(visibilityState(), false); | 3570 webview()->setVisibilityState(visibilityState(), false); |
| 3572 | 3571 |
| 3573 #if defined(ENABLE_PLUGINS) | 3572 #if defined(ENABLE_PLUGINS) |
| 3574 for (PepperPluginSet::iterator i = active_pepper_instances_.begin(); | 3573 for (PepperPluginSet::iterator i = active_pepper_instances_.begin(); |
| 3575 i != active_pepper_instances_.end(); ++i) | 3574 i != active_pepper_instances_.end(); ++i) |
| 3576 (*i)->PageVisibilityChanged(false); | 3575 (*i)->PageVisibilityChanged(false); |
| 3577 | 3576 |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4301 std::vector<gfx::Size> sizes; | 4300 std::vector<gfx::Size> sizes; |
| 4302 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4301 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4303 if (!url.isEmpty()) | 4302 if (!url.isEmpty()) |
| 4304 urls.push_back( | 4303 urls.push_back( |
| 4305 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4304 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4306 } | 4305 } |
| 4307 SendUpdateFaviconURL(urls); | 4306 SendUpdateFaviconURL(urls); |
| 4308 } | 4307 } |
| 4309 | 4308 |
| 4310 } // namespace content | 4309 } // namespace content |
| OLD | NEW |