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

Unified Diff: chrome/browser/chromeos/cros/power_library.h

Issue 8263003: cros: PowerLibrary virtual functions should be named using CamelCase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser_tests Created 9 years, 2 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/chromeos/cros/mock_power_library.h ('k') | chrome/browser/chromeos/cros/power_library.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/cros/power_library.h
diff --git a/chrome/browser/chromeos/cros/power_library.h b/chrome/browser/chromeos/cros/power_library.h
index 10f99f5b43bc1e2377fd1b7bf10cbbd405215cb7..f29699fe104974a0ff1c51342feb3393ef2d790f 100644
--- a/chrome/browser/chromeos/cros/power_library.h
+++ b/chrome/browser/chromeos/cros/power_library.h
@@ -38,22 +38,22 @@ class PowerLibrary {
virtual void RemoveObserver(Observer* observer) = 0;
// Whether or not the line power is connected.
- virtual bool line_power_on() const = 0;
+ virtual bool IsLinePowerOn() const = 0;
// Whether or not the battery is fully charged.
- virtual bool battery_fully_charged() const = 0;
+ virtual bool IsBatteryFullyCharged() const = 0;
// The percentage [0-100] of remaining battery.
- virtual double battery_percentage() const = 0;
+ virtual double GetBatteryPercentage() const = 0;
// Whether there is a battery present.
- virtual bool battery_is_present() const = 0;
+ virtual bool IsBatteryPresent() const = 0;
// The amount of time until battery is empty.
- virtual base::TimeDelta battery_time_to_empty() const = 0;
+ virtual base::TimeDelta GetBatteryTimeToEmpty() const = 0;
// The amount of time until battery is full.
- virtual base::TimeDelta battery_time_to_full() const = 0;
+ virtual base::TimeDelta GetBatteryTimeToFull() const = 0;
// Calculates idle time asynchronously. If it encounters some error,
// it returns -1.
« no previous file with comments | « chrome/browser/chromeos/cros/mock_power_library.h ('k') | chrome/browser/chromeos/cros/power_library.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698