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