| 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_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ |
| 6 #define ASH_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ | 6 #define ASH_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/chromeos/power/power_status.h" | 9 #include "ash/system/chromeos/power/power_status.h" |
| 10 #include "ui/views/view.h" | 10 #include "ui/views/view.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 class ImageView; | 13 class ImageView; |
| 14 class Label; | 14 class Label; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace ash { | 17 namespace ash { |
| 18 namespace internal { | |
| 19 | 18 |
| 20 class ASH_EXPORT PowerStatusView : public views::View, | 19 class ASH_EXPORT PowerStatusView : public views::View, |
| 21 public PowerStatus::Observer { | 20 public PowerStatus::Observer { |
| 22 public: | 21 public: |
| 23 enum ViewType { | 22 enum ViewType { |
| 24 VIEW_DEFAULT, | 23 VIEW_DEFAULT, |
| 25 VIEW_NOTIFICATION | 24 VIEW_NOTIFICATION |
| 26 }; | 25 }; |
| 27 | 26 |
| 28 PowerStatusView(ViewType view_type, bool default_view_right_align); | 27 PowerStatusView(ViewType view_type, bool default_view_right_align); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 views::Label* percentage_label_; | 60 views::Label* percentage_label_; |
| 62 | 61 |
| 63 // Battery status indicator icon. | 62 // Battery status indicator icon. |
| 64 views::ImageView* icon_; | 63 views::ImageView* icon_; |
| 65 | 64 |
| 66 ViewType view_type_; | 65 ViewType view_type_; |
| 67 | 66 |
| 68 DISALLOW_COPY_AND_ASSIGN(PowerStatusView); | 67 DISALLOW_COPY_AND_ASSIGN(PowerStatusView); |
| 69 }; | 68 }; |
| 70 | 69 |
| 71 } // namespace internal | |
| 72 } // namespace ash | 70 } // namespace ash |
| 73 | 71 |
| 74 #endif // ASH_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ | 72 #endif // ASH_SYSTEM_CHROMEOS_POWER_POWER_STATUS_VIEW_H_ |
| OLD | NEW |