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

Side by Side Diff: third_party/WebKit/Source/platform/battery/BatteryStatusDispatcher.h

Issue 1538803002: Migrates battery_status from content/renderer/ to WebKit/platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef BatteryStatusDispatcher_h
6 #define BatteryStatusDispatcher_h
7
8 #include "device/battery/battery_monitor.mojom.h"
9 #include "platform/PlatformExport.h"
10 #include "wtf/Noncopyable.h"
11
12 namespace blink {
13
14 class BatteryStatusListener;
15
16 class PLATFORM_EXPORT BatteryStatusDispatcher {
17 WTF_MAKE_NONCOPYABLE(BatteryStatusDispatcher);
18 public:
19 explicit BatteryStatusDispatcher(BatteryStatusListener*);
20 ~BatteryStatusDispatcher();
21
22 private:
23 void queryNextStatus();
24 void onDidChange(device::BatteryStatusPtr);
25
26 device::BatteryMonitorPtr m_monitor;
27 BatteryStatusListener* m_listener;
28
29 friend class BatteryStatusDispatcherTest;
30 };
31
32 } // namespace blink
33
34 #endif // BatteryStatusDispatcher_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698