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

Side by Side Diff: Source/modules/battery/BatteryStatus.h

Issue 334263022: Include wtf/RefCounted.h less often in modules/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | Source/modules/crypto/AesKeyAlgorithm.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 BatteryStatus_h 5 #ifndef BatteryStatus_h
6 #define BatteryStatus_h 6 #define BatteryStatus_h
7 7
8 #include "platform/heap/Handle.h" 8 #include "platform/heap/Handle.h"
9 #include "wtf/PassRefPtr.h" 9 #include "wtf/Forward.h"
10 #include "wtf/RefCounted.h" 10 #include "wtf/RefCounted.h"
11 11
12 namespace WebCore { 12 namespace WebCore {
13 13
14 class BatteryStatus FINAL : public RefCountedWillBeGarbageCollected<BatteryStatu s> { 14 class BatteryStatus FINAL : public RefCountedWillBeGarbageCollected<BatteryStatu s> {
15 public: 15 public:
16 static PassRefPtrWillBeRawPtr<BatteryStatus> create(); 16 static PassRefPtrWillBeRawPtr<BatteryStatus> create();
17 static PassRefPtrWillBeRawPtr<BatteryStatus> create(bool charging, double ch argingTime, double dischargingTime, double level); 17 static PassRefPtrWillBeRawPtr<BatteryStatus> create(bool charging, double ch argingTime, double dischargingTime, double level);
18 18
19 bool charging() const { return m_charging; } 19 bool charging() const { return m_charging; }
20 double chargingTime() const { return m_chargingTime; } 20 double chargingTime() const { return m_chargingTime; }
21 double dischargingTime() const { return m_dischargingTime; } 21 double dischargingTime() const { return m_dischargingTime; }
22 double level() const { return m_level; } 22 double level() const { return m_level; }
23 23
24 void trace(Visitor*) { } 24 void trace(Visitor*) { }
25 25
26 private: 26 private:
27 BatteryStatus(); 27 BatteryStatus();
28 BatteryStatus(bool charging, double chargingTime, double dischargingTime, do uble level); 28 BatteryStatus(bool charging, double chargingTime, double dischargingTime, do uble level);
29 29
30 bool m_charging; 30 bool m_charging;
31 double m_chargingTime; 31 double m_chargingTime;
32 double m_dischargingTime; 32 double m_dischargingTime;
33 double m_level; 33 double m_level;
34 }; 34 };
35 35
36 } // namespace WebCore 36 } // namespace WebCore
37 37
38 #endif // BatteryStatus_h 38 #endif // BatteryStatus_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/crypto/AesKeyAlgorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698