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 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 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 ScreenOrientationDispatcher; | 44 class ScreenOrientationDispatcher; |
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( | |
140 blink::WebDeviceLightListener* listener) OVERRIDE; | |
138 virtual void setDeviceMotionListener( | 141 virtual void setDeviceMotionListener( |
139 blink::WebDeviceMotionListener* listener); | 142 blink::WebDeviceMotionListener* listener); |
140 virtual void setDeviceOrientationListener( | 143 virtual void setDeviceOrientationListener( |
141 blink::WebDeviceOrientationListener* listener); | 144 blink::WebDeviceOrientationListener* listener); |
142 virtual void queryStorageUsageAndQuota( | 145 virtual void queryStorageUsageAndQuota( |
143 const blink::WebURL& storage_partition, | 146 const blink::WebURL& storage_partition, |
144 blink::WebStorageQuotaType, | 147 blink::WebStorageQuotaType, |
145 blink::WebStorageQuotaCallbacks); | 148 blink::WebStorageQuotaCallbacks); |
146 virtual void vibrate(unsigned int milliseconds); | 149 virtual void vibrate(unsigned int milliseconds); |
147 virtual void cancelVibration(); | 150 virtual void cancelVibration(); |
(...skipping 17 matching lines...) Expand all Loading... | |
165 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads); | 168 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads); |
166 | 169 |
167 // Notifies blink::WebGamepadListener about a new gamepad if a listener | 170 // Notifies blink::WebGamepadListener about a new gamepad if a listener |
168 // has been set via setGamepadListener. | 171 // has been set via setGamepadListener. |
169 static void MockGamepadConnected(int index, const blink::WebGamepad& pad); | 172 static void MockGamepadConnected(int index, const blink::WebGamepad& pad); |
170 | 173 |
171 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if | 174 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if |
172 // a listener has been set via setGamepadListener. | 175 // a listener has been set via setGamepadListener. |
173 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); | 176 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
174 | 177 |
178 // when setDeviceMotionListener is invoked, return a double value | |
timvolodine
2014/06/03 16:08:12
nit: start with capital letter, end with "."
riju_
2014/06/05 19:50:00
Done.
| |
179 static void SetMockDeviceLightDataForTesting( | |
timvolodine
2014/06/03 16:08:12
fits on one line
riju_
2014/06/05 19:50:00
Done.
| |
180 double& data); | |
175 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 181 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
176 static void SetMockDeviceMotionDataForTesting( | 182 static void SetMockDeviceMotionDataForTesting( |
177 const blink::WebDeviceMotionData& data); | 183 const blink::WebDeviceMotionData& data); |
178 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 184 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
179 // is invoked. | 185 // is invoked. |
180 static void SetMockDeviceOrientationDataForTesting( | 186 static void SetMockDeviceOrientationDataForTesting( |
181 const blink::WebDeviceOrientationData& data); | 187 const blink::WebDeviceOrientationData& data); |
182 // Forces the screen orientation for testing purposes. | 188 // Forces the screen orientation for testing purposes. |
183 static void SetMockScreenOrientationForTesting( | 189 static void SetMockScreenOrientationForTesting( |
184 blink::WebScreenOrientationType); | 190 blink::WebScreenOrientationType); |
(...skipping 27 matching lines...) Expand all Loading... | |
212 | 218 |
213 // If true, then a GetPlugins call is allowed to rescan the disk. | 219 // If true, then a GetPlugins call is allowed to rescan the disk. |
214 bool plugin_refresh_allowed_; | 220 bool plugin_refresh_allowed_; |
215 | 221 |
216 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; | 222 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; |
217 | 223 |
218 scoped_ptr<blink::WebBlobRegistry> blob_registry_; | 224 scoped_ptr<blink::WebBlobRegistry> blob_registry_; |
219 | 225 |
220 WebPublicSuffixListImpl public_suffix_list_; | 226 WebPublicSuffixListImpl public_suffix_list_; |
221 | 227 |
228 scoped_ptr<DeviceLightEventPump> device_light_event_pump_; | |
222 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; | 229 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
223 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; | 230 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; |
224 | 231 |
225 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; | 232 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
226 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 233 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
227 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 234 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
228 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 235 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
229 | 236 |
230 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 237 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
231 | 238 |
232 webkit::WebCompositorSupportImpl compositor_support_; | 239 webkit::WebCompositorSupportImpl compositor_support_; |
233 | 240 |
234 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | 241 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; |
235 | 242 |
236 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 243 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
237 | 244 |
238 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 245 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
239 | 246 |
240 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 247 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
241 }; | 248 }; |
242 | 249 |
243 } // namespace content | 250 } // namespace content |
244 | 251 |
245 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 252 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |