| Index: public/platform/Platform.h
|
| diff --git a/public/platform/Platform.h b/public/platform/Platform.h
|
| index 9f5f30227b9327383e6655966cd0141187ba4f5e..ec215d2c3596f5a02d894b82ed49acbc0c07c2b1 100644
|
| --- a/public/platform/Platform.h
|
| +++ b/public/platform/Platform.h
|
| @@ -62,6 +62,7 @@ class WebCompositorSupport;
|
| class WebCookieJar;
|
| class WebCrypto;
|
| class WebDatabaseObserver;
|
| +class WebDeviceLightListener;
|
| class WebDeviceMotionListener;
|
| class WebDeviceOrientationListener;
|
| class WebDiscardableMemory;
|
| @@ -597,16 +598,21 @@ public:
|
| virtual WebCrypto* crypto() { return 0; }
|
|
|
|
|
| - // Device Motion / Orientation ----------------------------------------
|
| + // Device Motion / Orientation / Light ----------------------------------------
|
|
|
| // Sets a Listener to listen for device motion data updates.
|
| // If null, the platform stops providing device motion data to the current listener.
|
| virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { }
|
|
|
| // Sets a Listener to listen for device orientation data updates.
|
| - // If null, the platform stops proving device orientation data to the current listener.
|
| + // If null, the platform stops providing device orientation data to the current listener.
|
| virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListener*) { }
|
|
|
| + // Sets a Listener to listen for device light data updates.
|
| + // If null, the platform stops providing device light data to the current listener.
|
| + virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { }
|
| +
|
| +
|
| // Screen Orientation -------------------------------------------------
|
|
|
| virtual void setScreenOrientationListener(blink::WebScreenOrientationListener*) { }
|
|
|