Chromium Code Reviews| 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 |