Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ | 5 #ifndef ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ |
| 6 #define ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ | 6 #define ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/system/power/power_supply_status.h" | 8 #include "ash/system/power/power_supply_status.h" |
| 9 #include "ui/views/view.h" | 9 #include "ui/views/view.h" |
| 10 | 10 |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 // if true; otherwise, layout the UI items on the left side. | 47 // if true; otherwise, layout the UI items on the left side. |
| 48 bool default_view_right_align_; | 48 bool default_view_right_align_; |
| 49 | 49 |
| 50 // labels used only for VIEW_NOTIFICATION. | 50 // labels used only for VIEW_NOTIFICATION. |
| 51 views::Label* status_label_; | 51 views::Label* status_label_; |
| 52 views::Label* time_label_; | 52 views::Label* time_label_; |
| 53 | 53 |
| 54 // labels used only for VIEW_DEFAULT. | 54 // labels used only for VIEW_DEFAULT. |
| 55 views::Label* time_status_label_; | 55 views::Label* time_status_label_; |
| 56 | 56 |
| 57 // battery status indicator icon | |
|
Daniel Erat
2012/09/11 22:17:09
nit: capitalize first letter and add period, e.g.
| |
| 57 views::ImageView* icon_; | 58 views::ImageView* icon_; |
| 59 // index of the current icon in the icon array image | |
|
Daniel Erat
2012/09/11 22:17:09
nit: add blank line above this one
also, change c
| |
| 60 int icon_image_index_; | |
| 61 | |
| 58 ViewType view_type_; | 62 ViewType view_type_; |
| 59 | 63 |
| 60 PowerSupplyStatus supply_status_; | 64 PowerSupplyStatus supply_status_; |
| 61 | 65 |
| 62 DISALLOW_COPY_AND_ASSIGN(PowerStatusView); | 66 DISALLOW_COPY_AND_ASSIGN(PowerStatusView); |
| 63 }; | 67 }; |
| 64 | 68 |
| 65 } // namespace internal | 69 } // namespace internal |
| 66 } // namespace ash | 70 } // namespace ash |
| 67 | 71 |
| 68 #endif // ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ | 72 #endif // ASH_SYSTEM_POWER_POWER_STATUS_VIEW_H_ |
| OLD | NEW |