| Index: content/renderer/renderer_webkitplatformsupport_impl.h
|
| diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h
|
| index 1cd15d8f157dcdfb90cb89c0903ece7842404a40..078589e2a2e4d44626304016c0151f7166324d4f 100644
|
| --- a/content/renderer/renderer_webkitplatformsupport_impl.h
|
| +++ b/content/renderer/renderer_webkitplatformsupport_impl.h
|
| @@ -36,6 +36,7 @@ class WebGraphicsContext3DProvider;
|
|
|
| namespace content {
|
| class BatteryStatusDispatcher;
|
| +class DeviceLightEventPump;
|
| class DeviceMotionEventPump;
|
| class DeviceOrientationEventPump;
|
| class QuotaMessageFilter;
|
| @@ -135,6 +136,7 @@ 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);
|
| virtual void setDeviceMotionListener(
|
| blink::WebDeviceMotionListener* listener);
|
| virtual void setDeviceOrientationListener(
|
| @@ -168,6 +170,8 @@ class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
|
| // a listener has been set via setGamepadListener.
|
| static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad);
|
|
|
| + // Set a double to return when setDeviceLightListener is invoked.
|
| + static void SetMockDeviceLightDataForTesting(double data);
|
| // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked.
|
| static void SetMockDeviceMotionDataForTesting(
|
| const blink::WebDeviceMotionData& data);
|
| @@ -220,6 +224,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_;
|
|
|
|
|