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