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

Unified Diff: public/platform/Platform.h

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: DeviceLight API working fine (make the flag back to status=experimental) Created 6 years, 10 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
Index: public/platform/Platform.h
diff --git a/public/platform/Platform.h b/public/platform/Platform.h
index b3f219d621d47dc91e7e5b4e14971be466f5677c..0065a945fd0bf791da92ce7f51d1ef1e73958788 100644
--- a/public/platform/Platform.h
+++ b/public/platform/Platform.h
@@ -61,6 +61,7 @@ class WebCompositorSupport;
class WebCookieJar;
class WebCrypto;
class WebDatabaseObserver;
+class WebDeviceLightListener;
class WebDeviceMotionListener;
class WebDeviceOrientationListener;
class WebDiscardableMemory;
@@ -604,16 +605,20 @@ 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*) { }
+
abarth-chromium 2014/03/04 18:59:32 Two blank lines between sections.
riju_ 2014/03/05 15:47:27 Done.
// Screen Orientation -------------------------------------------------
virtual void setScreenOrientationListener(blink::WebScreenOrientationListener*) { }
@@ -621,6 +626,7 @@ public:
virtual void unlockOrientation() { }
+
abarth-chromium 2014/03/04 18:59:32 You've got an extra blank line here.
riju_ 2014/03/05 15:47:27 Done.
// Quota -----------------------------------------------------------
// Queries the storage partition's storage usage and quota information.

Powered by Google App Engine
This is Rietveld 408576698