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 <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 // Hides the detailed view for |item|. | 74 // Hides the detailed view for |item|. |
75 void HideDetailedView(SystemTrayItem* item); | 75 void HideDetailedView(SystemTrayItem* item); |
76 | 76 |
77 // Shows the notification view for |item|. | 77 // Shows the notification view for |item|. |
78 void ShowNotificationView(SystemTrayItem* item); | 78 void ShowNotificationView(SystemTrayItem* item); |
79 | 79 |
80 // Hides the notification view for |item|. | 80 // Hides the notification view for |item|. |
81 void HideNotificationView(SystemTrayItem* item); | 81 void HideNotificationView(SystemTrayItem* item); |
82 | 82 |
83 // Updates the items when the login status of the system changes. | 83 // Updates the items when the login status of the system changes. |
84 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 84 void UpdateAfterLoginStatusChange(LoginStatus login_status); |
85 | 85 |
86 // Updates the items when the shelf alignment changes. | 86 // Updates the items when the shelf alignment changes. |
87 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); | 87 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment); |
88 | 88 |
89 // Temporarily hides/unhides the notification bubble. | 89 // Temporarily hides/unhides the notification bubble. |
90 void SetHideNotifications(bool hidden); | 90 void SetHideNotifications(bool hidden); |
91 | 91 |
92 // Returns true if the shelf should be forced visible when auto-hidden. | 92 // Returns true if the shelf should be forced visible when auto-hidden. |
93 bool ShouldShowShelf() const; | 93 bool ShouldShowShelf() const; |
94 | 94 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // A reference to the Screen share and capture item. | 246 // A reference to the Screen share and capture item. |
247 ScreenTrayItem* screen_capture_tray_item_; // not owned | 247 ScreenTrayItem* screen_capture_tray_item_; // not owned |
248 ScreenTrayItem* screen_share_tray_item_; // not owned | 248 ScreenTrayItem* screen_share_tray_item_; // not owned |
249 | 249 |
250 DISALLOW_COPY_AND_ASSIGN(SystemTray); | 250 DISALLOW_COPY_AND_ASSIGN(SystemTray); |
251 }; | 251 }; |
252 | 252 |
253 } // namespace ash | 253 } // namespace ash |
254 | 254 |
255 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ | 255 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ |
OLD | NEW |