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 "content/child/blink_platform_impl.h" | 10 #include "content/child/blink_platform_impl.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 class WebBatteryStatus; | 31 class WebBatteryStatus; |
32 class WebDeviceMotionData; | 32 class WebDeviceMotionData; |
33 class WebDeviceOrientationData; | 33 class WebDeviceOrientationData; |
34 class WebGraphicsContext3DProvider; | 34 class WebGraphicsContext3DProvider; |
35 } | 35 } |
36 | 36 |
37 namespace content { | 37 namespace content { |
38 class BatteryStatusDispatcher; | 38 class BatteryStatusDispatcher; |
| 39 class DeviceLightEventPump; |
39 class DeviceMotionEventPump; | 40 class DeviceMotionEventPump; |
40 class DeviceOrientationEventPump; | 41 class DeviceOrientationEventPump; |
41 class QuotaMessageFilter; | 42 class QuotaMessageFilter; |
42 class RendererClipboardClient; | 43 class RendererClipboardClient; |
43 class RenderView; | 44 class RenderView; |
44 class ThreadSafeSender; | 45 class ThreadSafeSender; |
45 class WebClipboardImpl; | 46 class WebClipboardImpl; |
46 class WebDatabaseObserverImpl; | 47 class WebDatabaseObserverImpl; |
47 class WebFileSystemImpl; | 48 class WebFileSystemImpl; |
48 | 49 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 129 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
129 const blink::WebGraphicsContext3D::Attributes& attributes); | 130 const blink::WebGraphicsContext3D::Attributes& attributes); |
130 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 131 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
131 const blink::WebGraphicsContext3D::Attributes& attributes, | 132 const blink::WebGraphicsContext3D::Attributes& attributes, |
132 blink::WebGraphicsContext3D* share_context); | 133 blink::WebGraphicsContext3D* share_context); |
133 virtual blink::WebGraphicsContext3DProvider* | 134 virtual blink::WebGraphicsContext3DProvider* |
134 createSharedOffscreenGraphicsContext3DProvider(); | 135 createSharedOffscreenGraphicsContext3DProvider(); |
135 virtual blink::WebCompositorSupport* compositorSupport(); | 136 virtual blink::WebCompositorSupport* compositorSupport(); |
136 virtual blink::WebString convertIDNToUnicode( | 137 virtual blink::WebString convertIDNToUnicode( |
137 const blink::WebString& host, const blink::WebString& languages); | 138 const blink::WebString& host, const blink::WebString& languages); |
| 139 virtual void setDeviceLightListener(blink::WebDeviceLightListener* listener); |
138 virtual void setDeviceMotionListener( | 140 virtual void setDeviceMotionListener( |
139 blink::WebDeviceMotionListener* listener); | 141 blink::WebDeviceMotionListener* listener); |
140 virtual void setDeviceOrientationListener( | 142 virtual void setDeviceOrientationListener( |
141 blink::WebDeviceOrientationListener* listener); | 143 blink::WebDeviceOrientationListener* listener); |
142 virtual void queryStorageUsageAndQuota( | 144 virtual void queryStorageUsageAndQuota( |
143 const blink::WebURL& storage_partition, | 145 const blink::WebURL& storage_partition, |
144 blink::WebStorageQuotaType, | 146 blink::WebStorageQuotaType, |
145 blink::WebStorageQuotaCallbacks); | 147 blink::WebStorageQuotaCallbacks); |
146 virtual void vibrate(unsigned int milliseconds); | 148 virtual void vibrate(unsigned int milliseconds); |
147 virtual void cancelVibration(); | 149 virtual void cancelVibration(); |
(...skipping 13 matching lines...) Expand all Loading... |
161 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads); | 163 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads); |
162 | 164 |
163 // Notifies blink::WebGamepadListener about a new gamepad if a listener | 165 // Notifies blink::WebGamepadListener about a new gamepad if a listener |
164 // has been set via setGamepadListener. | 166 // has been set via setGamepadListener. |
165 static void MockGamepadConnected(int index, const blink::WebGamepad& pad); | 167 static void MockGamepadConnected(int index, const blink::WebGamepad& pad); |
166 | 168 |
167 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if | 169 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if |
168 // a listener has been set via setGamepadListener. | 170 // a listener has been set via setGamepadListener. |
169 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); | 171 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
170 | 172 |
| 173 // Set a double to return when setDeviceLightListener is invoked. |
| 174 static void SetMockDeviceLightDataForTesting(double data); |
171 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 175 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
172 static void SetMockDeviceMotionDataForTesting( | 176 static void SetMockDeviceMotionDataForTesting( |
173 const blink::WebDeviceMotionData& data); | 177 const blink::WebDeviceMotionData& data); |
174 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 178 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
175 // is invoked. | 179 // is invoked. |
176 static void SetMockDeviceOrientationDataForTesting( | 180 static void SetMockDeviceOrientationDataForTesting( |
177 const blink::WebDeviceOrientationData& data); | 181 const blink::WebDeviceOrientationData& data); |
178 // Forces the screen orientation for testing purposes. | 182 // Forces the screen orientation for testing purposes. |
179 static void SetMockScreenOrientationForTesting( | 183 static void SetMockScreenOrientationForTesting( |
180 RenderView* render_view, | 184 RenderView* render_view, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 217 |
214 // If true, then a GetPlugins call is allowed to rescan the disk. | 218 // If true, then a GetPlugins call is allowed to rescan the disk. |
215 bool plugin_refresh_allowed_; | 219 bool plugin_refresh_allowed_; |
216 | 220 |
217 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; | 221 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; |
218 | 222 |
219 scoped_ptr<blink::WebBlobRegistry> blob_registry_; | 223 scoped_ptr<blink::WebBlobRegistry> blob_registry_; |
220 | 224 |
221 WebPublicSuffixListImpl public_suffix_list_; | 225 WebPublicSuffixListImpl public_suffix_list_; |
222 | 226 |
| 227 scoped_ptr<DeviceLightEventPump> device_light_event_pump_; |
223 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; | 228 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
224 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; | 229 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; |
225 | 230 |
226 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; | 231 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
227 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 232 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
228 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 233 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
229 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 234 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
230 | 235 |
231 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 236 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
232 | 237 |
233 webkit::WebCompositorSupportImpl compositor_support_; | 238 webkit::WebCompositorSupportImpl compositor_support_; |
234 | 239 |
235 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 240 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
236 | 241 |
237 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 242 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
238 | 243 |
239 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 244 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
240 }; | 245 }; |
241 | 246 |
242 } // namespace content | 247 } // namespace content |
243 | 248 |
244 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 249 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |