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

Side by Side Diff: third_party/WebKit/Source/modules/battery/BatteryDispatcher.h

Issue 2818673003: [DeviceService] Expose battery monitoring solely via the Device Service (Closed)
Patch Set: Java file format change Created 3 years, 7 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 BatteryDispatcher_h 5 #ifndef BatteryDispatcher_h
6 #define BatteryDispatcher_h 6 #define BatteryDispatcher_h
7 7
8 #include "core/frame/PlatformEventDispatcher.h" 8 #include "core/frame/PlatformEventDispatcher.h"
9 #include "device/battery/battery_monitor.mojom-blink.h"
10 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
11 #include "modules/battery/BatteryManager.h" 10 #include "modules/battery/BatteryManager.h"
12 #include "modules/battery/battery_status.h" 11 #include "modules/battery/battery_status.h"
12 #include "services/device/public/interfaces/battery_monitor.mojom-blink.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class MODULES_EXPORT BatteryDispatcher final 16 class MODULES_EXPORT BatteryDispatcher final
17 : public GarbageCollectedFinalized<BatteryDispatcher>, 17 : public GarbageCollectedFinalized<BatteryDispatcher>,
18 public PlatformEventDispatcher { 18 public PlatformEventDispatcher {
19 USING_GARBAGE_COLLECTED_MIXIN(BatteryDispatcher); 19 USING_GARBAGE_COLLECTED_MIXIN(BatteryDispatcher);
20 WTF_MAKE_NONCOPYABLE(BatteryDispatcher); 20 WTF_MAKE_NONCOPYABLE(BatteryDispatcher);
21 21
22 public: 22 public:
(...skipping 15 matching lines...) Expand all
38 void StopListening() override; 38 void StopListening() override;
39 39
40 device::mojom::blink::BatteryMonitorPtr monitor_; 40 device::mojom::blink::BatteryMonitorPtr monitor_;
41 BatteryStatus battery_status_; 41 BatteryStatus battery_status_;
42 bool has_latest_data_; 42 bool has_latest_data_;
43 }; 43 };
44 44
45 } // namespace blink 45 } // namespace blink
46 46
47 #endif // BatteryDispatcher_h 47 #endif // BatteryDispatcher_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/battery/BUILD.gn ('k') | third_party/WebKit/Source/modules/battery/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698