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_webkitplatformsupport_impl.h" | 5 #include "content/renderer/renderer_webkitplatformsupport_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/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 //------------------------------------------------------------------------------ | 908 //------------------------------------------------------------------------------ |
909 | 909 |
910 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { | 910 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
911 if (g_test_gamepads == 0) { | 911 if (g_test_gamepads == 0) { |
912 RenderThreadImpl::current()->SampleGamepads(&gamepads); | 912 RenderThreadImpl::current()->SampleGamepads(&gamepads); |
913 } else { | 913 } else { |
914 gamepads = g_test_gamepads.Get(); | 914 gamepads = g_test_gamepads.Get(); |
915 } | 915 } |
916 } | 916 } |
917 | 917 |
| 918 void RendererWebKitPlatformSupportImpl::setGamepadListener( |
| 919 blink::WebGamepadListener* listener) { |
| 920 RenderThreadImpl::current()->SetGamepadListener(listener); |
| 921 } |
| 922 |
918 //------------------------------------------------------------------------------ | 923 //------------------------------------------------------------------------------ |
919 | 924 |
920 WebRTCPeerConnectionHandler* | 925 WebRTCPeerConnectionHandler* |
921 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 926 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
922 WebRTCPeerConnectionHandlerClient* client) { | 927 WebRTCPeerConnectionHandlerClient* client) { |
923 RenderThreadImpl* render_thread = RenderThreadImpl::current(); | 928 RenderThreadImpl* render_thread = RenderThreadImpl::current(); |
924 DCHECK(render_thread); | 929 DCHECK(render_thread); |
925 if (!render_thread) | 930 if (!render_thread) |
926 return NULL; | 931 return NULL; |
927 | 932 |
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1170 return; | 1175 return; |
1171 QuotaDispatcher::ThreadSpecificInstance( | 1176 QuotaDispatcher::ThreadSpecificInstance( |
1172 thread_safe_sender_.get(), | 1177 thread_safe_sender_.get(), |
1173 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1178 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
1174 storage_partition, | 1179 storage_partition, |
1175 static_cast<quota::StorageType>(type), | 1180 static_cast<quota::StorageType>(type), |
1176 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1181 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
1177 } | 1182 } |
1178 | 1183 |
1179 } // namespace content | 1184 } // namespace content |
OLD | NEW |