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/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
13 #include "base/shared_memory.h" | 13 #include "base/shared_memory.h" |
14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
15 #include "content/common/database_util.h" | 15 #include "content/common/database_util.h" |
16 #include "content/common/file_utilities_messages.h" | 16 #include "content/common/file_utilities_messages.h" |
17 #include "content/common/fileapi/webblobregistry_impl.h" | 17 #include "content/common/fileapi/webblobregistry_impl.h" |
18 #include "content/common/fileapi/webfilesystem_impl.h" | 18 #include "content/common/fileapi/webfilesystem_impl.h" |
19 #include "content/common/gpu/client/context_provider_command_buffer.h" | 19 #include "content/common/gpu/client/context_provider_command_buffer.h" |
20 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" | 20 #include "content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h" |
21 #include "content/common/indexed_db/proxy_webidbfactory_impl.h" | 21 #include "content/common/indexed_db/proxy_webidbfactory_impl.h" |
22 #include "content/common/mime_registry_messages.h" | 22 #include "content/common/mime_registry_messages.h" |
23 #include "content/common/npobject_util.h" | 23 #include "content/common/npobject_util.h" |
24 #include "content/common/thread_safe_sender.h" | 24 #include "content/common/thread_safe_sender.h" |
25 #include "content/common/view_messages.h" | 25 #include "content/common/view_messages.h" |
26 #include "content/common/webmessageportchannel_impl.h" | 26 #include "content/common/webmessageportchannel_impl.h" |
27 #include "content/public/common/content_switches.h" | 27 #include "content/public/common/content_switches.h" |
28 #include "content/public/common/gpu_info.h" | 28 #include "content/public/common/gpu_info.h" |
29 #include "content/public/renderer/content_renderer_client.h" | 29 #include "content/public/renderer/content_renderer_client.h" |
30 #include "content/renderer/device_motion_event_pump.h" | |
30 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" | 31 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" |
31 #include "content/renderer/gamepad_shared_memory_reader.h" | 32 #include "content/renderer/gamepad_shared_memory_reader.h" |
32 #include "content/renderer/hyphenator/hyphenator.h" | 33 #include "content/renderer/hyphenator/hyphenator.h" |
33 #include "content/renderer/media/media_stream_dependency_factory.h" | 34 #include "content/renderer/media/media_stream_dependency_factory.h" |
34 #include "content/renderer/media/renderer_webaudiodevice_impl.h" | 35 #include "content/renderer/media/renderer_webaudiodevice_impl.h" |
35 #include "content/renderer/render_thread_impl.h" | 36 #include "content/renderer/render_thread_impl.h" |
36 #include "content/renderer/renderer_clipboard_client.h" | 37 #include "content/renderer/renderer_clipboard_client.h" |
37 #include "content/renderer/websharedworkerrepository_impl.h" | 38 #include "content/renderer/websharedworkerrepository_impl.h" |
38 #include "googleurl/src/gurl.h" | 39 #include "googleurl/src/gurl.h" |
39 #include "ipc/ipc_sync_message_filter.h" | 40 #include "ipc/ipc_sync_message_filter.h" |
40 #include "media/audio/audio_output_device.h" | 41 #include "media/audio/audio_output_device.h" |
41 #include "media/base/audio_hardware_config.h" | 42 #include "media/base/audio_hardware_config.h" |
42 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" | 43 #include "third_party/WebKit/Source/Platform/chromium/public/WebBlobRegistry.h" |
44 #include "third_party/WebKit/Source/Platform/chromium/public/WebDeviceMotionHand ler.h" | |
43 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileInfo.h" | 45 #include "third_party/WebKit/Source/Platform/chromium/public/WebFileInfo.h" |
44 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" | 46 #include "third_party/WebKit/Source/Platform/chromium/public/WebGamepads.h" |
45 #include "third_party/WebKit/Source/Platform/chromium/public/WebHyphenator.h" | 47 #include "third_party/WebKit/Source/Platform/chromium/public/WebHyphenator.h" |
46 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamCente r.h" | 48 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamCente r.h" |
47 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamCente rClient.h" | 49 #include "third_party/WebKit/Source/Platform/chromium/public/WebMediaStreamCente rClient.h" |
48 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 50 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" |
49 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" | 51 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" |
50 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 52 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
51 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" | 53 #include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h" |
52 #include "webkit/base/file_path_string_conversions.h" | 54 #include "webkit/base/file_path_string_conversions.h" |
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
888 } | 890 } |
889 | 891 |
890 //------------------------------------------------------------------------------ | 892 //------------------------------------------------------------------------------ |
891 | 893 |
892 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { | 894 GrContext* RendererWebKitPlatformSupportImpl::sharedOffscreenGrContext() { |
893 if (!shared_offscreen_context_) | 895 if (!shared_offscreen_context_) |
894 return NULL; | 896 return NULL; |
895 return shared_offscreen_context_->GrContext(); | 897 return shared_offscreen_context_->GrContext(); |
896 } | 898 } |
897 | 899 |
900 //------------------------------------------------------------------------------ | |
901 | |
902 WebKit::WebDeviceMotionHandler* | |
903 RendererWebKitPlatformSupportImpl::deviceMotionHandler() { | |
904 if (!device_motion_event_pump_.get()) | |
jamesr
2013/05/16 19:53:06
just
if (!device_motion_event_pump_)
...
timvolodine
2013/05/20 18:18:48
Done.
| |
905 device_motion_event_pump_.reset(new DeviceMotionEventPump); | |
906 return device_motion_event_pump_.get(); | |
907 } | |
898 | 908 |
899 } // namespace content | 909 } // namespace content |
910 | |
OLD | NEW |