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_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ | 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ | 6 #define ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/common/system/chromeos/power/power_status.h" | 10 #include "ash/common/system/chromeos/power/power_status.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 message_center::MessageCenter* message_center); | 60 message_center::MessageCenter* message_center); |
61 ~TrayPower() override; | 61 ~TrayPower() override; |
62 | 62 |
63 void NotifyUsbNotificationClosedByUser(); | 63 void NotifyUsbNotificationClosedByUser(); |
64 | 64 |
65 private: | 65 private: |
66 friend class TrayPowerTest; | 66 friend class TrayPowerTest; |
67 | 67 |
68 // This enum is used for histogram. The existing values should not be removed, | 68 // This enum is used for histogram. The existing values should not be removed, |
69 // and the new values should be added just before CHARGER_TYPE_COUNT. | 69 // and the new values should be added just before CHARGER_TYPE_COUNT. |
70 enum ChargerType{ | 70 enum ChargerType { |
71 UNKNOWN_CHARGER, | 71 UNKNOWN_CHARGER, |
72 MAINS_CHARGER, | 72 MAINS_CHARGER, |
73 USB_CHARGER, | 73 USB_CHARGER, |
74 UNCONFIRMED_SPRING_CHARGER, | 74 UNCONFIRMED_SPRING_CHARGER, |
75 SAFE_SPRING_CHARGER, | 75 SAFE_SPRING_CHARGER, |
76 CHARGER_TYPE_COUNT, | 76 CHARGER_TYPE_COUNT, |
77 }; | 77 }; |
78 | 78 |
79 // Overridden from SystemTrayItem. | 79 // Overridden from SystemTrayItem. |
80 views::View* CreateTrayView(LoginStatus status) override; | 80 views::View* CreateTrayView(LoginStatus status) override; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // Has the user already dismissed a low-power notification? Should be set | 115 // Has the user already dismissed a low-power notification? Should be set |
116 // back to false when all power sources are disconnected. | 116 // back to false when all power sources are disconnected. |
117 bool usb_notification_dismissed_; | 117 bool usb_notification_dismissed_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(TrayPower); | 119 DISALLOW_COPY_AND_ASSIGN(TrayPower); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace ash | 122 } // namespace ash |
123 | 123 |
124 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ | 124 #endif // ASH_COMMON_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
OLD | NEW |