| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/status/power_menu_button.h" | 5 #include "chrome/browser/chromeos/status/power_menu_button.h" |
| 6 | 6 |
| 7 #include "app/gfx/canvas.h" | |
| 8 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 9 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 10 #include "base/time.h" | 9 #include "base/time.h" |
| 11 #include "chrome/browser/chromeos/cros/cros_library.h" | 10 #include "chrome/browser/chromeos/cros/cros_library.h" |
| 11 #include "gfx/canvas.h" |
| 12 #include "grit/generated_resources.h" | 12 #include "grit/generated_resources.h" |
| 13 #include "grit/theme_resources.h" | 13 #include "grit/theme_resources.h" |
| 14 | 14 |
| 15 namespace chromeos { | 15 namespace chromeos { |
| 16 | 16 |
| 17 //////////////////////////////////////////////////////////////////////////////// | 17 //////////////////////////////////////////////////////////////////////////////// |
| 18 // PowerMenuButton | 18 // PowerMenuButton |
| 19 | 19 |
| 20 // static | 20 // static |
| 21 const int PowerMenuButton::kNumPowerImages = 12; | 21 const int PowerMenuButton::kNumPowerImages = 12; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 id = IDR_STATUSBAR_BATTERY_CHARGING_1 + index; | 146 id = IDR_STATUSBAR_BATTERY_CHARGING_1 + index; |
| 147 else | 147 else |
| 148 id = IDR_STATUSBAR_BATTERY_DISCHARGING_1 + index; | 148 id = IDR_STATUSBAR_BATTERY_DISCHARGING_1 + index; |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 SetIcon(*ResourceBundle::GetSharedInstance().GetBitmapNamed(id)); | 151 SetIcon(*ResourceBundle::GetSharedInstance().GetBitmapNamed(id)); |
| 152 SchedulePaint(); | 152 SchedulePaint(); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace chromeos | 155 } // namespace chromeos |
| OLD | NEW |