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

Unified Diff: public/platform/WebDeviceLightListener.h

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Work in Adam's comments 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/WebDeviceLightListener.h
diff --git a/Source/core/speech/SpeechInputResultList.idl b/public/platform/WebDeviceLightListener.h
similarity index 77%
copy from Source/core/speech/SpeechInputResultList.idl
copy to public/platform/WebDeviceLightListener.h
index 878c5a6a049bde651d5e5069d20df3ad3f71763a..c275af1bbec9a9168578cabb02aafa031deab212 100644
--- a/Source/core/speech/SpeechInputResultList.idl
+++ b/public/platform/WebDeviceLightListener.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010 Google Inc. All rights reserved.
+ * Copyright (C) 2014 Intel Inc. All rights reserved.
Inactive 2014/03/07 19:29:52 Should probably use the new copyright header forma
riju_ 2014/03/10 16:17:26 Done.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -23,12 +23,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-[
- WillBeGarbageCollected,
- NoInterfaceObject,
- Conditional=INPUT_SPEECH
-] interface SpeechInputResultList {
- readonly attribute unsigned long length;
- getter SpeechInputResult item(unsigned long index);
+#ifndef WebDeviceLightListener_h
+#define WebDeviceLightListener_h
+
+namespace blink {
+
+class WebDeviceLightListener {
Inactive 2014/03/07 19:29:52 This class should probably have a virtual destruct
riju_ 2014/03/10 16:17:26 Done.
+public:
+ // This method is called every time new device light data is available.
+ virtual void didChangeDeviceLight(const double&) = 0;
Inactive 2014/03/07 19:29:52 const double& -> double?
};
+} // namespace blink
+
+#endif // WebDeviceLightListener_h

Powered by Google App Engine
This is Rietveld 408576698