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/logging.h" | 10 #include "base/logging.h" |
(...skipping 862 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
873 | 873 |
874 //------------------------------------------------------------------------------ | 874 //------------------------------------------------------------------------------ |
875 | 875 |
876 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { | 876 WebBlobRegistry* RendererWebKitPlatformSupportImpl::blobRegistry() { |
877 // blob_registry_ can be NULL when running some tests. | 877 // blob_registry_ can be NULL when running some tests. |
878 return blob_registry_.get(); | 878 return blob_registry_.get(); |
879 } | 879 } |
880 | 880 |
881 //------------------------------------------------------------------------------ | 881 //------------------------------------------------------------------------------ |
882 | 882 |
| 883 blink::WebCredentialManager* RendererWebKitPlatformSupportImpl::credentialManage
r() { |
| 884 return GetContentClient()->renderer()->GetCredentialManager(); |
| 885 } |
| 886 |
| 887 //------------------------------------------------------------------------------ |
| 888 |
883 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { | 889 void RendererWebKitPlatformSupportImpl::sampleGamepads(WebGamepads& gamepads) { |
884 PlatformEventObserverBase* observer = | 890 PlatformEventObserverBase* observer = |
885 platform_event_observers_.Lookup(blink::WebPlatformEventGamepad); | 891 platform_event_observers_.Lookup(blink::WebPlatformEventGamepad); |
886 if (!observer) | 892 if (!observer) |
887 return; | 893 return; |
888 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads); | 894 static_cast<RendererGamepadProvider*>(observer)->SampleGamepads(gamepads); |
889 } | 895 } |
890 | 896 |
891 //------------------------------------------------------------------------------ | 897 //------------------------------------------------------------------------------ |
892 | 898 |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1187 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( | 1193 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( |
1188 const blink::WebBatteryStatus& status) { | 1194 const blink::WebBatteryStatus& status) { |
1189 PlatformEventObserverBase* observer = | 1195 PlatformEventObserverBase* observer = |
1190 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); | 1196 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); |
1191 if (!observer) | 1197 if (!observer) |
1192 return; | 1198 return; |
1193 observer->SendFakeDataForTesting((void*)&status); | 1199 observer->SendFakeDataForTesting((void*)&status); |
1194 } | 1200 } |
1195 | 1201 |
1196 } // namespace content | 1202 } // namespace content |
OLD | NEW |