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

Side by Side Diff: public/platform/WebDeviceLightListener.h

Issue 417213002: Introduce PlatformEvent to handle Device events, Battery events and Gamepad events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: with backward compatibility Created 6 years, 4 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 unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698