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