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

Unified Diff: public/platform/WebDeviceLightListener.h

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase after r172920 Created 6 years, 8 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/WebDeviceLightListener.h
diff --git a/public/platform/WebDeviceLightListener.h b/public/platform/WebDeviceLightListener.h
new file mode 100644
index 0000000000000000000000000000000000000000..36173c0949f0ecb59d9e9f4778d0b040a1f02eaf
--- /dev/null
+++ b/public/platform/WebDeviceLightListener.h
@@ -0,0 +1,20 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WebDeviceLightListener_h
+#define WebDeviceLightListener_h
+
+namespace blink {
+
+class WebDeviceLightListener {
+public:
+ // This method is called every time new device light data is available.
+ virtual void didChangeDeviceLight(const double) = 0;
Inactive 2014/05/06 12:58:08 nit: why the const argument?
riju_ 2014/05/09 12:00:21 Done.
+
+ virtual ~WebDeviceLightListener() { }
+};
+
+} // namespace blink
+
+#endif // WebDeviceLightListener_h
« Source/modules/device_light/DeviceLightEvent.idl ('K') | « public/platform/Platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698