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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 | 846 |
847 //------------------------------------------------------------------------------ | 847 //------------------------------------------------------------------------------ |
848 | 848 |
849 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { | 849 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
850 // blob_registry_ can be NULL when running some tests. | 850 // blob_registry_ can be NULL when running some tests. |
851 return blob_registry_.get(); | 851 return blob_registry_.get(); |
852 } | 852 } |
853 | 853 |
854 //------------------------------------------------------------------------------ | 854 //------------------------------------------------------------------------------ |
855 | 855 |
| 856 void RendererWebKitPlatformSupportImpl::resumeGamepads() { |
| 857 RenderThreadImpl::current()->ResumeGamepads(); |
| 858 } |
| 859 |
| 860 //------------------------------------------------------------------------------ |
| 861 |
| 862 void RendererWebKitPlatformSupportImpl::pauseGamepads() { |
| 863 RenderThreadImpl::current()->PauseGamepads(); |
| 864 } |
| 865 |
| 866 //------------------------------------------------------------------------------ |
| 867 |
856 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { | 868 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
857 if (g_test_gamepads == 0) { | 869 if (g_test_gamepads == 0) { |
858 RenderThreadImpl::current()->SampleGamepads(&gamepads); | 870 RenderThreadImpl::current()->SampleGamepads(&gamepads); |
859 } else { | 871 } else { |
860 gamepads = g_test_gamepads.Get(); | 872 gamepads = g_test_gamepads.Get(); |
861 } | 873 } |
862 } | 874 } |
863 | 875 |
864 blink::WebString RendererWebKitPlatformSupportImpl::userAgent( | 876 blink::WebString RendererWebKitPlatformSupportImpl::userAgent( |
865 const blink::WebURL& url) { | 877 const blink::WebURL& url) { |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1074 return; | 1086 return; |
1075 QuotaDispatcher::ThreadSpecificInstance( | 1087 QuotaDispatcher::ThreadSpecificInstance( |
1076 thread_safe_sender_.get(), | 1088 thread_safe_sender_.get(), |
1077 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1089 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
1078 storage_partition, | 1090 storage_partition, |
1079 static_cast<quota::StorageType>(type), | 1091 static_cast<quota::StorageType>(type), |
1080 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1092 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
1081 } | 1093 } |
1082 | 1094 |
1083 } // namespace content | 1095 } // namespace content |
OLD | NEW |