| 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/renderer_blink_platform_impl.h" | 5 #include "content/renderer/renderer_blink_platform_impl.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 871 platform_event_observers_.Lookup(blink::WebPlatformEventTypeGamepad); | 871 platform_event_observers_.Lookup(blink::WebPlatformEventTypeGamepad); |
| 872 if (!observer) | 872 if (!observer) |
| 873 return; | 873 return; |
| 874 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads); | 874 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads); |
| 875 } | 875 } |
| 876 | 876 |
| 877 //------------------------------------------------------------------------------ | 877 //------------------------------------------------------------------------------ |
| 878 | 878 |
| 879 WebMediaRecorderHandler* | 879 WebMediaRecorderHandler* |
| 880 RendererBlinkPlatformImpl::createMediaRecorderHandler() { | 880 RendererBlinkPlatformImpl::createMediaRecorderHandler() { |
| 881 #if !defined(OS_ANDROID) && defined(ENABLE_WEBRTC) | 881 #if defined(ENABLE_WEBRTC) |
| 882 return new content::MediaRecorderHandler(); | 882 return new content::MediaRecorderHandler(); |
| 883 #else | 883 #else |
| 884 return nullptr; | 884 return nullptr; |
| 885 #endif | 885 #endif |
| 886 } | 886 } |
| 887 | 887 |
| 888 //------------------------------------------------------------------------------ | 888 //------------------------------------------------------------------------------ |
| 889 | 889 |
| 890 WebRTCPeerConnectionHandler* | 890 WebRTCPeerConnectionHandler* |
| 891 RendererBlinkPlatformImpl::createRTCPeerConnectionHandler( | 891 RendererBlinkPlatformImpl::createRTCPeerConnectionHandler( |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1275 //------------------------------------------------------------------------------ | 1275 //------------------------------------------------------------------------------ |
| 1276 | 1276 |
| 1277 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( | 1277 void RendererBlinkPlatformImpl::MockBatteryStatusChangedForTesting( |
| 1278 const blink::WebBatteryStatus& status) { | 1278 const blink::WebBatteryStatus& status) { |
| 1279 if (!g_test_battery_status_listener) | 1279 if (!g_test_battery_status_listener) |
| 1280 return; | 1280 return; |
| 1281 g_test_battery_status_listener->updateBatteryStatus(status); | 1281 g_test_battery_status_listener->updateBatteryStatus(status); |
| 1282 } | 1282 } |
| 1283 | 1283 |
| 1284 } // namespace content | 1284 } // namespace content |
| OLD | NEW |