Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / WebBatteryStatus.h
blobe6951fc30c857e34a322c568e9cfc2fd86f55228
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.
5 #ifndef WebBatteryStatus_h
6 #define WebBatteryStatus_h
8 #include <limits>
10 namespace blink {
12 class WebBatteryStatus {
13 public:
14 WebBatteryStatus()
15 : charging(true)
16 , chargingTime(0.0)
17 , dischargingTime(std::numeric_limits<double>::infinity())
18 , level(1.0)
22 bool charging;
23 double chargingTime;
24 double dischargingTime;
25 double level;
28 } // namespace blink
30 #endif // WebBatteryStatus_h