| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 4 | 5 |
| 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h" | 6 #include "content/renderer/renderer_webkitplatformsupport_impl.h" |
| 6 | 7 |
| 7 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 8 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 9 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| 10 #include "base/memory/shared_memory.h" | 11 #include "base/memory/shared_memory.h" |
| 11 #include "base/message_loop/message_loop_proxy.h" | 12 #include "base/message_loop/message_loop_proxy.h" |
| (...skipping 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 #endif | 844 #endif |
| 844 } | 845 } |
| 845 | 846 |
| 846 //------------------------------------------------------------------------------ | 847 //------------------------------------------------------------------------------ |
| 847 | 848 |
| 848 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { | 849 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
| 849 // blob_registry_ can be NULL when running some tests. | 850 // blob_registry_ can be NULL when running some tests. |
| 850 return blob_registry_.get(); | 851 return blob_registry_.get(); |
| 851 } | 852 } |
| 852 | 853 |
| 854 #if defined(OS_ANDROID) |
| 855 //------------------------------------------------------------------------------ |
| 856 |
| 857 void RendererWebKitPlatformSupportImpl::resumeGamepads() { |
| 858 RenderThreadImpl::current()->ResumeGamepads(); |
| 859 } |
| 860 |
| 853 //------------------------------------------------------------------------------ | 861 //------------------------------------------------------------------------------ |
| 854 | 862 |
| 863 void RendererWebKitPlatformSupportImpl::pauseGamepads() { |
| 864 RenderThreadImpl::current()->PauseGamepads(); |
| 865 } |
| 866 #endif |
| 867 |
| 868 //------------------------------------------------------------------------------ |
| 869 |
| 855 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { | 870 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
| 856 if (g_test_gamepads == 0) { | 871 if (g_test_gamepads == 0) { |
| 857 RenderThreadImpl::current()->SampleGamepads(&gamepads); | 872 RenderThreadImpl::current()->SampleGamepads(&gamepads); |
| 858 } else { | 873 } else { |
| 859 gamepads = g_test_gamepads.Get(); | 874 gamepads = g_test_gamepads.Get(); |
| 860 } | 875 } |
| 861 } | 876 } |
| 862 | 877 |
| 863 blink::WebString RendererWebKitPlatformSupportImpl::userAgent( | 878 blink::WebString RendererWebKitPlatformSupportImpl::userAgent( |
| 864 const blink::WebURL& url) { | 879 const blink::WebURL& url) { |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 return; | 1088 return; |
| 1074 QuotaDispatcher::ThreadSpecificInstance( | 1089 QuotaDispatcher::ThreadSpecificInstance( |
| 1075 thread_safe_sender_.get(), | 1090 thread_safe_sender_.get(), |
| 1076 quota_message_filter_.get())->QueryStorageUsageAndQuota( | 1091 quota_message_filter_.get())->QueryStorageUsageAndQuota( |
| 1077 storage_partition, | 1092 storage_partition, |
| 1078 static_cast<quota::StorageType>(type), | 1093 static_cast<quota::StorageType>(type), |
| 1079 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); | 1094 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); |
| 1080 } | 1095 } |
| 1081 | 1096 |
| 1082 } // namespace content | 1097 } // namespace content |
| OLD | NEW |