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

Side by Side Diff: ash/system/power/power_supply_status.h

Issue 9837075: Move power_supply_status.* from src/ash to src/chromeos (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix dependency position Created 8 years, 9 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_
6 #define ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_
7
8 #include <string>
9
10 #include "ash/ash_export.h"
11 #include "base/basictypes.h"
12
13 namespace ash {
14
15 struct ASH_EXPORT PowerSupplyStatus {
16 bool line_power_on;
17
18 bool battery_is_present;
19 bool battery_is_full;
20
21 // Time in seconds until the battery is empty or full, 0 for unknown.
22 int64 battery_seconds_to_empty;
23 int64 battery_seconds_to_full;
24
25 double battery_percentage;
26
27 PowerSupplyStatus();
28 std::string ToString() const;
29 };
30
31 } // namespace ash
32
33 #endif // ASH_SYSTEM_POWER_POWER_SUPPLY_STATUS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698