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_TRAY_POWER_H_ | 5 #ifndef ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
6 #define ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ | 6 #define ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/system/chromeos/power/power_status.h" | 10 #include "ash/system/chromeos/power/power_status.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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(user::LoginStatus status) override; | 80 views::View* CreateTrayView(user::LoginStatus status) override; |
81 views::View* CreateDefaultView(user::LoginStatus status) override; | 81 views::View* CreateDefaultView(user::LoginStatus status) override; |
82 void DestroyTrayView() override; | 82 void DestroyTrayView() override; |
83 void DestroyDefaultView() override; | 83 void DestroyDefaultView() override; |
84 void UpdateAfterLoginStatusChange(user::LoginStatus status) override; | 84 void UpdateAfterLoginStatusChange(user::LoginStatus status) override; |
85 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; | 85 void UpdateAfterShelfAlignmentChange(wm::ShelfAlignment alignment) override; |
86 | 86 |
87 // Overridden from PowerStatus::Observer. | 87 // Overridden from PowerStatus::Observer. |
88 void OnPowerStatusChanged() override; | 88 void OnPowerStatusChanged() override; |
89 | 89 |
90 // Shows a notification that a low-power USB charger has been connected. | 90 // Shows a notification that a low-power USB charger has been connected. |
91 // Returns true if a notification was shown or explicitly hidden. | 91 // Returns true if a notification was shown or explicitly hidden. |
92 bool MaybeShowUsbChargerNotification(); | 92 bool MaybeShowUsbChargerNotification(); |
93 | 93 |
94 // Shows a notification when dual-role devices are connected. | 94 // Shows a notification when dual-role devices are connected. |
95 void MaybeShowDualRoleNotification(); | 95 void MaybeShowDualRoleNotification(); |
(...skipping 19 matching lines...) Expand all 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_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ | 124 #endif // ASH_SYSTEM_CHROMEOS_POWER_TRAY_POWER_H_ |
OLD | NEW |