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

Unified Diff: chrome/browser/chromeos/status/power_menu_button.cc

Issue 6904160: Implement new gray mock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review nits Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/power_menu_button.cc
diff --git a/chrome/browser/chromeos/status/power_menu_button.cc b/chrome/browser/chromeos/status/power_menu_button.cc
index a076c25d093c70d06b479b77bfb04a46ac1406ac..c3b42beb74c56990477b0382cff180bf7adee9f6 100644
--- a/chrome/browser/chromeos/status/power_menu_button.cc
+++ b/chrome/browser/chromeos/status/power_menu_button.cc
@@ -20,10 +20,10 @@ namespace chromeos {
// PowerMenuButton
// static
-const int PowerMenuButton::kNumPowerImages = 16;
+const int PowerMenuButton::kNumPowerImages = 19;
-PowerMenuButton::PowerMenuButton()
- : StatusAreaButton(this),
+PowerMenuButton::PowerMenuButton(StatusAreaHost* host)
+ : StatusAreaButton(host, this),
battery_is_present_(false),
line_power_on_(false),
battery_fully_charged_(false),
@@ -162,6 +162,9 @@ void PowerMenuButton::UpdateIconAndLabelInfo() {
IDR_STATUSBAR_BATTERY_CHARGING_14,
IDR_STATUSBAR_BATTERY_CHARGING_15,
IDR_STATUSBAR_BATTERY_CHARGING_16,
+ IDR_STATUSBAR_BATTERY_CHARGING_17,
+ IDR_STATUSBAR_BATTERY_CHARGING_18,
+ IDR_STATUSBAR_BATTERY_CHARGING_19,
};
static const int kDischargingImages[kNumPowerImages] = {
IDR_STATUSBAR_BATTERY_DISCHARGING_1,
@@ -180,6 +183,9 @@ void PowerMenuButton::UpdateIconAndLabelInfo() {
IDR_STATUSBAR_BATTERY_DISCHARGING_14,
IDR_STATUSBAR_BATTERY_DISCHARGING_15,
IDR_STATUSBAR_BATTERY_DISCHARGING_16,
+ IDR_STATUSBAR_BATTERY_DISCHARGING_17,
+ IDR_STATUSBAR_BATTERY_DISCHARGING_18,
+ IDR_STATUSBAR_BATTERY_DISCHARGING_19,
};
int index = static_cast<int>(battery_percentage_ / 100.0 *
« no previous file with comments | « chrome/browser/chromeos/status/power_menu_button.h ('k') | chrome/browser/chromeos/status/power_menu_button_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698