Index: content/renderer/renderer_webkitplatformsupport_impl.h |
diff --git a/content/renderer/renderer_webkitplatformsupport_impl.h b/content/renderer/renderer_webkitplatformsupport_impl.h |
index 7e36823ae38c14dcf03bf4871246a7612ec5df13..b00acf44a66e6fecb99f867a5527fb38507534cd 100644 |
--- a/content/renderer/renderer_webkitplatformsupport_impl.h |
+++ b/content/renderer/renderer_webkitplatformsupport_impl.h |
@@ -37,6 +37,7 @@ class WebScreenOrientationListener; |
namespace content { |
class BatteryStatusDispatcher; |
+class DeviceLightEventPump; |
class DeviceMotionEventPump; |
class DeviceOrientationEventPump; |
class QuotaMessageFilter; |
@@ -137,6 +138,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; |
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.
|
virtual void setDeviceMotionListener( |
blink::WebDeviceMotionListener* listener); |
virtual void setDeviceOrientationListener( |
@@ -175,6 +178,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); |
@@ -228,6 +233,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_; |