| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #include "content/renderer/webclipboard_impl.h" | 54 #include "content/renderer/webclipboard_impl.h" |
| 55 #include "content/renderer/webgraphicscontext3d_provider_impl.h" | 55 #include "content/renderer/webgraphicscontext3d_provider_impl.h" |
| 56 #include "content/renderer/webpublicsuffixlist_impl.h" | 56 #include "content/renderer/webpublicsuffixlist_impl.h" |
| 57 #include "gpu/config/gpu_info.h" | 57 #include "gpu/config/gpu_info.h" |
| 58 #include "ipc/ipc_sync_message_filter.h" | 58 #include "ipc/ipc_sync_message_filter.h" |
| 59 #include "media/audio/audio_output_device.h" | 59 #include "media/audio/audio_output_device.h" |
| 60 #include "media/base/audio_hardware_config.h" | 60 #include "media/base/audio_hardware_config.h" |
| 61 #include "media/filters/stream_parser_factory.h" | 61 #include "media/filters/stream_parser_factory.h" |
| 62 #include "net/base/mime_util.h" | 62 #include "net/base/mime_util.h" |
| 63 #include "net/base/net_util.h" | 63 #include "net/base/net_util.h" |
| 64 #include "storage/common/quota/quota_types.h" |
| 64 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h" | 65 #include "third_party/WebKit/public/platform/WebBatteryStatusListener.h" |
| 65 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" | 66 #include "third_party/WebKit/public/platform/WebBlobRegistry.h" |
| 66 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" | 67 #include "third_party/WebKit/public/platform/WebDeviceLightListener.h" |
| 67 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" | 68 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" |
| 68 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" | 69 #include "third_party/WebKit/public/platform/WebDeviceOrientationListener.h" |
| 69 #include "third_party/WebKit/public/platform/WebFileInfo.h" | 70 #include "third_party/WebKit/public/platform/WebFileInfo.h" |
| 70 #include "third_party/WebKit/public/platform/WebGamepads.h" | 71 #include "third_party/WebKit/public/platform/WebGamepads.h" |
| 71 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" | 72 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
| 72 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" | 73 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" |
| 73 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" | 74 #include "third_party/WebKit/public/platform/WebPluginListBuilder.h" |
| 74 #include "third_party/WebKit/public/platform/WebURL.h" | 75 #include "third_party/WebKit/public/platform/WebURL.h" |
| 75 #include "third_party/WebKit/public/platform/WebVector.h" | 76 #include "third_party/WebKit/public/platform/WebVector.h" |
| 76 #include "ui/gfx/color_profile.h" | 77 #include "ui/gfx/color_profile.h" |
| 77 #include "url/gurl.h" | 78 #include "url/gurl.h" |
| 78 #include "webkit/common/gpu/context_provider_web_context.h" | 79 #include "webkit/common/gpu/context_provider_web_context.h" |
| 79 #include "webkit/common/quota/quota_types.h" | |
| 80 | 80 |
| 81 #if defined(OS_ANDROID) | 81 #if defined(OS_ANDROID) |
| 82 #include "content/renderer/android/synchronous_compositor_factory.h" | 82 #include "content/renderer/android/synchronous_compositor_factory.h" |
| 83 #include "content/renderer/media/android/audio_decoder_android.h" | 83 #include "content/renderer/media/android/audio_decoder_android.h" |
| 84 #endif | 84 #endif |
| 85 | 85 |
| 86 #if defined(OS_MACOSX) | 86 #if defined(OS_MACOSX) |
| 87 #include "base/mac/mac_util.h" | 87 #include "base/mac/mac_util.h" |
| 88 #include "content/common/mac/font_descriptor.h" | 88 #include "content/common/mac/font_descriptor.h" |
| 89 #include "content/common/mac/font_loader.h" | 89 #include "content/common/mac/font_loader.h" |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1189 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( | 1189 void RendererWebKitPlatformSupportImpl::MockBatteryStatusChangedForTesting( |
| 1190 const blink::WebBatteryStatus& status) { | 1190 const blink::WebBatteryStatus& status) { |
| 1191 PlatformEventObserverBase* observer = | 1191 PlatformEventObserverBase* observer = |
| 1192 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); | 1192 platform_event_observers_.Lookup(blink::WebPlatformEventBattery); |
| 1193 if (!observer) | 1193 if (!observer) |
| 1194 return; | 1194 return; |
| 1195 observer->SendFakeDataForTesting((void*)&status); | 1195 observer->SendFakeDataForTesting((void*)&status); |
| 1196 } | 1196 } |
| 1197 | 1197 |
| 1198 } // namespace content | 1198 } // namespace content |
| OLD | NEW |