Chromium Code Reviews| Index: content/renderer/renderer_webkitplatformsupport_impl.h |
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h |
| index a91ffefbc9767d2f999f2906bd104a0a17007a07..1bd2c040a548f66d48712eca89b5c6ff4511d7ef 100644 |
| --- a/content/renderer/renderer_webkitplatformsupport_impl.h |
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.h |
| @@ -36,6 +36,7 @@ class WebScreenOrientationListener; |
| namespace content { |
| class BatteryStatusDispatcher; |
| +class DeviceLightEventPump; |
| class DeviceMotionEventPump; |
| class DeviceOrientationEventPump; |
| class QuotaMessageFilter; |
| @@ -135,6 +136,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| virtual blink::WebCompositorSupport* compositorSupport(); |
| virtual blink::WebString convertIDNToUnicode( |
| const blink::WebString& host, const blink::WebString& languages); |
| + virtual void setDeviceLightListener( |
| + blink::WebDeviceLightListener* listener) OVERRIDE; |
| virtual void setDeviceMotionListener( |
| blink::WebDeviceMotionListener* listener); |
| virtual void setDeviceOrientationListener( |
| @@ -172,6 +175,9 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| // a listener has been set via setGamepadListener. |
| static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); |
| + // 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.
|
| + static void SetMockDeviceLightDataForTesting( |
|
timvolodine
2014/06/03 16:08:12
fits on one line
riju_
2014/06/05 19:50:00
Done.
|
| + double& data); |
| // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. |
| static void SetMockDeviceMotionDataForTesting( |
| const blink::WebDeviceMotionData& data); |
| @@ -219,6 +225,7 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl |
| WebPublicSuffixListImpl public_suffix_list_; |
| + scoped_ptr<DeviceLightEventPump> device_light_event_pump_; |
| scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; |
| scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; |