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_STATUS_AREA_WIDGET_H_ | 5 #ifndef ASH_SYSTEM_STATUS_AREA_WIDGET_H_ |
6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_ | 6 #define ASH_SYSTEM_STATUS_AREA_WIDGET_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/shelf/shelf_types.h" | 9 #include "ash/shelf/shelf_types.h" |
10 #include "ash/system/user/login_status.h" | 10 #include "ash/system/user/login_status.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 ~StatusAreaWidget() override; | 31 ~StatusAreaWidget() override; |
32 | 32 |
33 // Creates the SystemTray, WebNotificationTray and LogoutButtonTray. | 33 // Creates the SystemTray, WebNotificationTray and LogoutButtonTray. |
34 void CreateTrayViews(); | 34 void CreateTrayViews(); |
35 | 35 |
36 // Destroys the system tray and web notification tray. Called before | 36 // Destroys the system tray and web notification tray. Called before |
37 // tearing down the windows to avoid shutdown ordering issues. | 37 // tearing down the windows to avoid shutdown ordering issues. |
38 void Shutdown(); | 38 void Shutdown(); |
39 | 39 |
40 // Update the alignment of the widget and tray views. | 40 // Update the alignment of the widget and tray views. |
41 void SetShelfAlignment(ShelfAlignment alignment); | 41 void SetShelfAlignment(wm::ShelfAlignment alignment); |
42 | 42 |
43 // Set the visibility of system notifications. | 43 // Set the visibility of system notifications. |
44 void SetHideSystemNotifications(bool hide); | 44 void SetHideSystemNotifications(bool hide); |
45 | 45 |
46 // Called by the client when the login status changes. Caches login_status | 46 // Called by the client when the login status changes. Caches login_status |
47 // and calls UpdateAfterLoginStatusChange for the system tray and the web | 47 // and calls UpdateAfterLoginStatusChange for the system tray and the web |
48 // notification tray. | 48 // notification tray. |
49 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); | 49 void UpdateAfterLoginStatusChange(user::LoginStatus login_status); |
50 | 50 |
51 StatusAreaWidgetDelegate* status_area_widget_delegate() { | 51 StatusAreaWidgetDelegate* status_area_widget_delegate() { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 user::LoginStatus login_status_; | 98 user::LoginStatus login_status_; |
99 | 99 |
100 ShelfWidget* shelf_widget_; | 100 ShelfWidget* shelf_widget_; |
101 | 101 |
102 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); | 102 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); |
103 }; | 103 }; |
104 | 104 |
105 } // namespace ash | 105 } // namespace ash |
106 | 106 |
107 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ | 107 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ |
OLD | NEW |