OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_ | 5 #ifndef ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_ |
6 #define ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_ | 6 #define ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 // Define local struct when not building for Chrome OS. | 22 // Define local struct when not building for Chrome OS. |
23 struct ASH_EXPORT PowerSupplyStatus { | 23 struct ASH_EXPORT PowerSupplyStatus { |
24 bool line_power_on; | 24 bool line_power_on; |
25 | 25 |
26 bool battery_is_present; | 26 bool battery_is_present; |
27 bool battery_is_full; | 27 bool battery_is_full; |
28 | 28 |
29 // Time in seconds until the battery is empty or full, 0 for unknown. | 29 // Time in seconds until the battery is empty or full, 0 for unknown. |
30 int64 battery_seconds_to_empty; | 30 int64 battery_seconds_to_empty; |
31 int64 battery_seconds_to_full; | 31 int64 battery_seconds_to_full; |
| 32 int64 averaged_battery_time_to_empty; |
| 33 int64 averaged_battery_time_to_full; |
32 | 34 |
33 double battery_percentage; | 35 double battery_percentage; |
34 | 36 |
35 bool is_calculating_battery_time; | 37 bool is_calculating_battery_time; |
36 | 38 |
37 PowerSupplyStatus(); | 39 PowerSupplyStatus(); |
38 std::string ToString() const; | 40 std::string ToString() const; |
39 }; | 41 }; |
40 #endif // defined(OS_CHROMEOS) | 42 #endif // defined(OS_CHROMEOS) |
41 | 43 |
42 } // namespace ash | 44 } // namespace ash |
43 | 45 |
44 #endif // ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_ | 46 #endif // ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_ |
OLD | NEW |