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

Side by Side Diff: content/public/browser/power_supply_status.h

Issue 10024013: chromeos: Add support for the battery status API on chromeos. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
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 CONTENT_PUBLIC_BROWSER_POWER_SUPPLY_STATUS_H_
6 #define CONTENT_PUBLIC_BROWSER_POWER_SUPPLY_STATUS_H_
7
8 #include "base/basictypes.h"
9 #include "content/common/content_export.h"
10
11 namespace content {
12
13 struct CONTENT_EXPORT PowerSupplyStatus {
14 bool line_power_on;
15
16 bool battery_is_present;
17 bool battery_is_full;
18
19 // Time in seconds until the battery is empty or full, 0 for unknown.
20 int64 battery_seconds_to_empty;
21 int64 battery_seconds_to_full;
22
23 double battery_percentage;
24
25 bool is_calculating_battery_time;
26 };
27
28 } // namespace content
29
30 #endif // CONTENT_PUBLIC_BROWSER_POWER_SUPPLY_STATUS_H_
OLDNEW
« no previous file with comments | « content/public/browser/battery_status_provider.h ('k') | content/renderer/battery_status_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698