Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: public/platform/Platform.h

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: nits Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/platform/WebDeviceLightListener.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index ab1c577a75539d67a9d5f60e17288b0570ce7775..f2e79d66c03d00877a3b1b66682f1ed50092274a 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -64,6 +64,7 @@ class WebConvertableToTraceFormat;
class WebCookieJar;
class WebCrypto;
class WebDatabaseObserver;
+class WebDeviceLightListener;
class WebDeviceMotionListener;
class WebDeviceOrientationListener;
class WebDiscardableMemory;
@@ -614,16 +615,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*) { }
« no previous file with comments | « Source/web/FrameLoaderClientImpl.cpp ('k') | public/platform/WebDeviceLightListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698