| // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_ |
| #define CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_ |
| |
| #include <string> |
| |
| #include "base/basictypes.h" |
| #include "chromeos/chromeos_export.h" |
| |
| namespace chromeos { |
| |
| struct CHROMEOS_EXPORT PowerSupplyStatus { |
| bool line_power_on; |
| |
| bool battery_is_present; |
| bool battery_is_full; |
| |
| // Time in seconds until the battery is empty or full, 0 for unknown. |
| int64 battery_seconds_to_empty; |
| int64 battery_seconds_to_full; |
| int64 averaged_battery_time_to_empty; |
| int64 averaged_battery_time_to_full; |
| |
| double battery_percentage; |
| |
| bool is_calculating_battery_time; |
| |
| PowerSupplyStatus(); |
| std::string ToString() const; |
| }; |
| |
| } // namespace chromeos |
| |
| #endif // CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_ |