OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebDeviceLightListener_h | 5 #ifndef WebDeviceLightListener_h |
6 #define WebDeviceLightListener_h | 6 #define WebDeviceLightListener_h |
7 | 7 |
| 8 #include "WebPlatformEventListener.h" |
| 9 |
8 namespace blink { | 10 namespace blink { |
9 | 11 |
10 class WebDeviceLightListener { | 12 class WebDeviceLightListener : public WebPlatformEventListener { |
11 public: | 13 public: |
12 // This method is called every time new device light data is available. | 14 // This method is called every time new device light data is available. |
13 virtual void didChangeDeviceLight(double) = 0; | 15 virtual void didChangeDeviceLight(double) = 0; |
14 | 16 |
15 virtual ~WebDeviceLightListener() { } | 17 virtual ~WebDeviceLightListener() { } |
16 }; | 18 }; |
17 | 19 |
18 } // namespace blink | 20 } // namespace blink |
19 | 21 |
20 #endif // WebDeviceLightListener_h | 22 #endif // WebDeviceLightListener_h |
OLD | NEW |