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

Side by Side Diff: chromeos/dbus/power_supply_status.h

Issue 10108028: Extract the averaged time values from incomming protobuf (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/power_manager_client.cc ('k') | chromeos/dbus/power_supply_status.cc » ('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 (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 CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_ 5 #ifndef CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_
6 #define CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_ 6 #define CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "chromeos/chromeos_export.h" 11 #include "chromeos/chromeos_export.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 struct CHROMEOS_EXPORT PowerSupplyStatus { 15 struct CHROMEOS_EXPORT PowerSupplyStatus {
16 bool line_power_on; 16 bool line_power_on;
17 17
18 bool battery_is_present; 18 bool battery_is_present;
19 bool battery_is_full; 19 bool battery_is_full;
20 20
21 // Time in seconds until the battery is empty or full, 0 for unknown. 21 // Time in seconds until the battery is empty or full, 0 for unknown.
22 int64 battery_seconds_to_empty; 22 int64 battery_seconds_to_empty;
23 int64 battery_seconds_to_full; 23 int64 battery_seconds_to_full;
24 int64 averaged_battery_time_to_empty;
25 int64 averaged_battery_time_to_full;
24 26
25 double battery_percentage; 27 double battery_percentage;
26 28
27 bool is_calculating_battery_time; 29 bool is_calculating_battery_time;
28 30
29 PowerSupplyStatus(); 31 PowerSupplyStatus();
30 std::string ToString() const; 32 std::string ToString() const;
31 }; 33 };
32 34
33 } // namespace chromeos 35 } // namespace chromeos
34 36
35 #endif // CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_ 37 #endif // CHROMEOS_DBUS_POWER_SUPPLY_STATUS_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/power_manager_client.cc ('k') | chromeos/dbus/power_supply_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698