| 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_TRAY_SYSTEM_TRAY_H_ | 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
| 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/system/power/power_supply_status.h" | 9 #include "ash/system/power/power_supply_status.h" |
| 10 #include "ash/system/tray/tray_background_view.h" | 10 #include "ash/system/tray/tray_background_view.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // Shows the notification view for |item|. | 87 // Shows the notification view for |item|. |
| 88 void ShowNotificationView(SystemTrayItem* item); | 88 void ShowNotificationView(SystemTrayItem* item); |
| 89 | 89 |
| 90 // Hides the notification view for |item|. | 90 // Hides the notification view for |item|. |
| 91 void HideNotificationView(SystemTrayItem* item); | 91 void HideNotificationView(SystemTrayItem* item); |
| 92 | 92 |
| 93 // Updates the items when the login status of the system changes. | 93 // Updates the items when the login status of the system changes. |
| 94 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 94 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); |
| 95 | 95 |
| 96 // Updates the items after the OpenAsh() has initialized the shell. |
| 97 void UpdateAfterAshInit(); |
| 98 |
| 96 // Updates the items when the shelf alignment changes. | 99 // Updates the items when the shelf alignment changes. |
| 97 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); | 100 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); |
| 98 | 101 |
| 99 // Temporarily hides/unhides the notification bubble. | 102 // Temporarily hides/unhides the notification bubble. |
| 100 void SetHideNotifications(bool hidden); | 103 void SetHideNotifications(bool hidden); |
| 101 | 104 |
| 102 // Returns true if any bubble is visible. | 105 // Returns true if any bubble is visible. |
| 103 bool IsAnyBubbleVisible() const; | 106 bool IsAnyBubbleVisible() const; |
| 104 | 107 |
| 105 // Returns true if the launcher should show. | 108 // Returns true if the launcher should show. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 // Set to true when system notifications should be hidden (e.g. web | 252 // Set to true when system notifications should be hidden (e.g. web |
| 250 // notification bubble is visible). | 253 // notification bubble is visible). |
| 251 bool hide_notifications_; | 254 bool hide_notifications_; |
| 252 | 255 |
| 253 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 256 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
| 254 }; | 257 }; |
| 255 | 258 |
| 256 } // namespace ash | 259 } // namespace ash |
| 257 | 260 |
| 258 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 261 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
| OLD | NEW |