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

Unified Diff: chromeos/power/power_data_collector.h

Issue 140663004: [chromeos] Add a battery discharge rate plot to about:power page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/chromeos/power_ui.cc ('k') | chromeos/power/power_data_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/power/power_data_collector.h
diff --git a/chromeos/power/power_data_collector.h b/chromeos/power/power_data_collector.h
index 49da54511b93a7610757fdcb88254b5ceb3ccd95..cf4af72300e149a267721b16a844b3938b007658 100644
--- a/chromeos/power/power_data_collector.h
+++ b/chromeos/power/power_data_collector.h
@@ -38,6 +38,10 @@ class CHROMEOS_EXPORT PowerDataCollector : public PowerManagerClient::Observer {
// The battery charge as a percentage of full charge in range [0.0, 100.00].
double battery_percent;
+
+ // The battery discharge rate in W. Positive if the battery is being
+ // discharged and negative if it's being charged.
+ double battery_discharge_rate;
};
const std::deque<PowerSupplySnapshot>& power_supply_data() const {
« no previous file with comments | « chrome/browser/ui/webui/chromeos/power_ui.cc ('k') | chromeos/power/power_data_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698