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 WebBatteryStatus_h
6#define WebBatteryStatus_h
7
8#include <limits>
9
10namespace blink {
11
12class WebBatteryStatus {
13public:
14    WebBatteryStatus()
15        : charging(true)
16        , chargingTime(0.0)
17        , dischargingTime(std::numeric_limits<double>::infinity())
18        , level(1.0)
19    {
20    }
21
22    bool charging;
23    double chargingTime;
24    double dischargingTime;
25    double level;
26};
27
28} // namespace blink
29
30#endif // WebBatteryStatus_h
31