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

Side by Side Diff: Source/modules/device_light/DeviceLightDispatcher.h

Issue 466813003: Cleanup namespace usage in Source/core/modules/[battery/* to indexeddb/*] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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 DeviceLightDispatcher_h 5 #ifndef DeviceLightDispatcher_h
6 #define DeviceLightDispatcher_h 6 #define DeviceLightDispatcher_h
7 7
8 #include "core/frame/PlatformEventDispatcher.h" 8 #include "core/frame/PlatformEventDispatcher.h"
9 #include "public/platform/WebDeviceLightListener.h" 9 #include "public/platform/WebDeviceLightListener.h"
10 #include "wtf/RefPtr.h" 10 #include "wtf/RefPtr.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class DeviceLightController; 14 class DeviceLightController;
15 15
16 // This class listens to device light data and notifies all registered controlle rs. 16 // This class listens to device light data and notifies all registered controlle rs.
17 class DeviceLightDispatcher FINAL : public PlatformEventDispatcher, public blink ::WebDeviceLightListener { 17 class DeviceLightDispatcher FINAL : public PlatformEventDispatcher, public WebDe viceLightListener {
18 public: 18 public:
19 static DeviceLightDispatcher& instance(); 19 static DeviceLightDispatcher& instance();
20 20
21 double latestDeviceLightData() const; 21 double latestDeviceLightData() const;
22 22
23 // Inherited from WebDeviceLightListener. 23 // Inherited from WebDeviceLightListener.
24 virtual void didChangeDeviceLight(double) OVERRIDE; 24 virtual void didChangeDeviceLight(double) OVERRIDE;
25 25
26 private: 26 private:
27 DeviceLightDispatcher(); 27 DeviceLightDispatcher();
28 virtual ~DeviceLightDispatcher(); 28 virtual ~DeviceLightDispatcher();
29 29
30 // Inherited from PlatformEventDispatcher. 30 // Inherited from PlatformEventDispatcher.
31 virtual void startListening() OVERRIDE; 31 virtual void startListening() OVERRIDE;
32 virtual void stopListening() OVERRIDE; 32 virtual void stopListening() OVERRIDE;
33 33
34 double m_lastDeviceLightData; 34 double m_lastDeviceLightData;
35 }; 35 };
36 36
37 } // namespace blink 37 } // namespace blink
38 38
39 #endif // DeviceLightDispatcher_h 39 #endif // DeviceLightDispatcher_h
OLDNEW
« no previous file with comments | « Source/modules/battery/BatteryDispatcher.h ('k') | Source/modules/device_orientation/DeviceMotionData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698