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 19 matching lines...) Expand all Loading... | |
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 class WebScreenOrientationListener; | 35 class WebScreenOrientationListener; |
36 } | 36 } |
37 | 37 |
38 namespace content { | 38 namespace content { |
39 class BatteryStatusDispatcher; | 39 class BatteryStatusDispatcher; |
40 class DeviceLightEventPump; | |
40 class DeviceMotionEventPump; | 41 class DeviceMotionEventPump; |
41 class DeviceOrientationEventPump; | 42 class DeviceOrientationEventPump; |
42 class QuotaMessageFilter; | 43 class QuotaMessageFilter; |
43 class RendererClipboardClient; | 44 class RendererClipboardClient; |
44 class RenderView; | 45 class RenderView; |
45 class ScreenOrientationDispatcher; | 46 class ScreenOrientationDispatcher; |
46 class ThreadSafeSender; | 47 class ThreadSafeSender; |
47 class WebClipboardImpl; | 48 class WebClipboardImpl; |
48 class WebDatabaseObserverImpl; | 49 class WebDatabaseObserverImpl; |
49 class WebFileSystemImpl; | 50 class WebFileSystemImpl; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
130 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 131 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
131 const blink::WebGraphicsContext3D::Attributes& attributes); | 132 const blink::WebGraphicsContext3D::Attributes& attributes); |
132 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( | 133 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( |
133 const blink::WebGraphicsContext3D::Attributes& attributes, | 134 const blink::WebGraphicsContext3D::Attributes& attributes, |
134 blink::WebGraphicsContext3D* share_context); | 135 blink::WebGraphicsContext3D* share_context); |
135 virtual blink::WebGraphicsContext3DProvider* | 136 virtual blink::WebGraphicsContext3DProvider* |
136 createSharedOffscreenGraphicsContext3DProvider(); | 137 createSharedOffscreenGraphicsContext3DProvider(); |
137 virtual blink::WebCompositorSupport* compositorSupport(); | 138 virtual blink::WebCompositorSupport* compositorSupport(); |
138 virtual blink::WebString convertIDNToUnicode( | 139 virtual blink::WebString convertIDNToUnicode( |
139 const blink::WebString& host, const blink::WebString& languages); | 140 const blink::WebString& host, const blink::WebString& languages); |
141 virtual void setDeviceLightListener( | |
142 blink::WebDeviceLightListener* listener) OVERRIDE; | |
jochen (gone - plz use gerrit)
2014/06/12 14:33:51
don't add OVERRIDE to blink api implementations
riju_
2014/06/13 17:06:26
Done.
| |
140 virtual void setDeviceMotionListener( | 143 virtual void setDeviceMotionListener( |
141 blink::WebDeviceMotionListener* listener); | 144 blink::WebDeviceMotionListener* listener); |
142 virtual void setDeviceOrientationListener( | 145 virtual void setDeviceOrientationListener( |
143 blink::WebDeviceOrientationListener* listener); | 146 blink::WebDeviceOrientationListener* listener); |
144 virtual void queryStorageUsageAndQuota( | 147 virtual void queryStorageUsageAndQuota( |
145 const blink::WebURL& storage_partition, | 148 const blink::WebURL& storage_partition, |
146 blink::WebStorageQuotaType, | 149 blink::WebStorageQuotaType, |
147 blink::WebStorageQuotaCallbacks); | 150 blink::WebStorageQuotaCallbacks); |
148 virtual void vibrate(unsigned int milliseconds); | 151 virtual void vibrate(unsigned int milliseconds); |
149 virtual void cancelVibration(); | 152 virtual void cancelVibration(); |
(...skipping 18 matching lines...) Expand all Loading... | |
168 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads); | 171 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads); |
169 | 172 |
170 // Notifies blink::WebGamepadListener about a new gamepad if a listener | 173 // Notifies blink::WebGamepadListener about a new gamepad if a listener |
171 // has been set via setGamepadListener. | 174 // has been set via setGamepadListener. |
172 static void MockGamepadConnected(int index, const blink::WebGamepad& pad); | 175 static void MockGamepadConnected(int index, const blink::WebGamepad& pad); |
173 | 176 |
174 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if | 177 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if |
175 // a listener has been set via setGamepadListener. | 178 // a listener has been set via setGamepadListener. |
176 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); | 179 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
177 | 180 |
181 // Set a double to return when setDeviceLightListener is invoked. | |
182 static void SetMockDeviceLightDataForTesting(double data); | |
178 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. | 183 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
179 static void SetMockDeviceMotionDataForTesting( | 184 static void SetMockDeviceMotionDataForTesting( |
180 const blink::WebDeviceMotionData& data); | 185 const blink::WebDeviceMotionData& data); |
181 // Set WebDeviceOrientationData to return when setDeviceOrientationListener | 186 // Set WebDeviceOrientationData to return when setDeviceOrientationListener |
182 // is invoked. | 187 // is invoked. |
183 static void SetMockDeviceOrientationDataForTesting( | 188 static void SetMockDeviceOrientationDataForTesting( |
184 const blink::WebDeviceOrientationData& data); | 189 const blink::WebDeviceOrientationData& data); |
185 // Forces the screen orientation for testing purposes. | 190 // Forces the screen orientation for testing purposes. |
186 static void SetMockScreenOrientationForTesting( | 191 static void SetMockScreenOrientationForTesting( |
187 RenderView* render_view, | 192 RenderView* render_view, |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
221 | 226 |
222 // If true, then a GetPlugins call is allowed to rescan the disk. | 227 // If true, then a GetPlugins call is allowed to rescan the disk. |
223 bool plugin_refresh_allowed_; | 228 bool plugin_refresh_allowed_; |
224 | 229 |
225 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; | 230 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; |
226 | 231 |
227 scoped_ptr<blink::WebBlobRegistry> blob_registry_; | 232 scoped_ptr<blink::WebBlobRegistry> blob_registry_; |
228 | 233 |
229 WebPublicSuffixListImpl public_suffix_list_; | 234 WebPublicSuffixListImpl public_suffix_list_; |
230 | 235 |
236 scoped_ptr<DeviceLightEventPump> device_light_event_pump_; | |
231 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; | 237 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
232 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; | 238 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; |
233 | 239 |
234 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; | 240 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; |
235 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; | 241 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
236 scoped_refptr<ThreadSafeSender> thread_safe_sender_; | 242 scoped_refptr<ThreadSafeSender> thread_safe_sender_; |
237 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 243 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
238 | 244 |
239 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 245 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
240 | 246 |
241 webkit::WebCompositorSupportImpl compositor_support_; | 247 webkit::WebCompositorSupportImpl compositor_support_; |
242 | 248 |
243 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | 249 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; |
244 | 250 |
245 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 251 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
246 | 252 |
247 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 253 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
248 | 254 |
249 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 255 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
250 }; | 256 }; |
251 | 257 |
252 } // namespace content | 258 } // namespace content |
253 | 259 |
254 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 260 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
OLD | NEW |