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 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace webkit_glue { | 22 namespace webkit_glue { |
23 class WebClipboardImpl; | 23 class WebClipboardImpl; |
24 } | 24 } |
25 | 25 |
26 namespace WebKit { | 26 namespace WebKit { |
27 class WebGraphicsContext3DProvider; | 27 class WebGraphicsContext3DProvider; |
28 } | 28 } |
29 | 29 |
30 namespace content { | 30 namespace content { |
| 31 class DeviceMotionEventPump; |
31 class GamepadSharedMemoryReader; | 32 class GamepadSharedMemoryReader; |
32 class RendererClipboardClient; | 33 class RendererClipboardClient; |
33 class ThreadSafeSender; | 34 class ThreadSafeSender; |
34 class WebFileSystemImpl; | 35 class WebFileSystemImpl; |
35 class WebSharedWorkerRepositoryImpl; | 36 class WebSharedWorkerRepositoryImpl; |
36 | 37 |
37 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl | 38 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
38 : public WebKitPlatformSupportImpl { | 39 : public WebKitPlatformSupportImpl { |
39 public: | 40 public: |
40 RendererWebKitPlatformSupportImpl(); | 41 RendererWebKitPlatformSupportImpl(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 WebKit::WebMediaStreamCenterClient* client); | 119 WebKit::WebMediaStreamCenterClient* client); |
119 virtual bool processMemorySizesInBytes( | 120 virtual bool processMemorySizesInBytes( |
120 size_t* private_bytes, size_t* shared_bytes); | 121 size_t* private_bytes, size_t* shared_bytes); |
121 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 122 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
122 const WebKit::WebGraphicsContext3D::Attributes& attributes); | 123 const WebKit::WebGraphicsContext3D::Attributes& attributes); |
123 virtual WebKit::WebGraphicsContext3DProvider* | 124 virtual WebKit::WebGraphicsContext3DProvider* |
124 createSharedOffscreenGraphicsContext3DProvider(); | 125 createSharedOffscreenGraphicsContext3DProvider(); |
125 virtual WebKit::WebCompositorSupport* compositorSupport(); | 126 virtual WebKit::WebCompositorSupport* compositorSupport(); |
126 virtual WebKit::WebString convertIDNToUnicode( | 127 virtual WebKit::WebString convertIDNToUnicode( |
127 const WebKit::WebString& host, const WebKit::WebString& languages); | 128 const WebKit::WebString& host, const WebKit::WebString& languages); |
| 129 virtual void setDeviceMotionListener( |
| 130 WebKit::WebDeviceMotionListener* listener) OVERRIDE; |
128 | 131 |
129 // Disables the WebSandboxSupport implementation for testing. | 132 // Disables the WebSandboxSupport implementation for testing. |
130 // Tests that do not set up a full sandbox environment should call | 133 // Tests that do not set up a full sandbox environment should call |
131 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 134 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
132 // of this class, to ensure that we don't attempt to use sandbox-related | 135 // of this class, to ensure that we don't attempt to use sandbox-related |
133 // file descriptors or other resources. | 136 // file descriptors or other resources. |
134 // | 137 // |
135 // Returns the previous |enable| value. | 138 // Returns the previous |enable| value. |
136 static bool SetSandboxEnabledForTesting(bool enable); | 139 static bool SetSandboxEnabledForTesting(bool enable); |
137 | 140 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; | 173 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; |
171 | 174 |
172 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; | 175 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; |
173 | 176 |
174 scoped_ptr<WebFileSystemImpl> web_file_system_; | 177 scoped_ptr<WebFileSystemImpl> web_file_system_; |
175 | 178 |
176 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; | 179 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; |
177 | 180 |
178 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 181 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
179 | 182 |
| 183 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
| 184 |
180 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 185 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
181 | 186 |
182 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; | 187 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; |
183 | 188 |
184 webkit::WebCompositorSupportImpl compositor_support_; | 189 webkit::WebCompositorSupportImpl compositor_support_; |
185 }; | 190 }; |
186 | 191 |
187 } // namespace content | 192 } // namespace content |
188 | 193 |
189 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 194 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |