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" |
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; |
20 class WebNotificationTray; | 20 class WebNotificationTray; |
| 21 class WmWindow; |
21 #if defined(OS_CHROMEOS) | 22 #if defined(OS_CHROMEOS) |
22 class LogoutButtonTray; | 23 class LogoutButtonTray; |
23 class VirtualKeyboardTray; | 24 class VirtualKeyboardTray; |
24 #endif | 25 #endif |
25 namespace wm { | |
26 class WmWindow; | |
27 } | |
28 | 26 |
29 class ASH_EXPORT StatusAreaWidget : public views::Widget { | 27 class ASH_EXPORT StatusAreaWidget : public views::Widget { |
30 public: | 28 public: |
31 StatusAreaWidget(wm::WmWindow* status_container, ShelfWidget* shelf_widget); | 29 StatusAreaWidget(WmWindow* status_container, ShelfWidget* shelf_widget); |
32 ~StatusAreaWidget() override; | 30 ~StatusAreaWidget() override; |
33 | 31 |
34 // Creates the SystemTray, WebNotificationTray and LogoutButtonTray. | 32 // Creates the SystemTray, WebNotificationTray and LogoutButtonTray. |
35 void CreateTrayViews(); | 33 void CreateTrayViews(); |
36 | 34 |
37 // Destroys the system tray and web notification tray. Called before | 35 // Destroys the system tray and web notification tray. Called before |
38 // tearing down the windows to avoid shutdown ordering issues. | 36 // tearing down the windows to avoid shutdown ordering issues. |
39 void Shutdown(); | 37 void Shutdown(); |
40 | 38 |
41 // Update the alignment of the widget and tray views. | 39 // Update the alignment of the widget and tray views. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 user::LoginStatus login_status_; | 99 user::LoginStatus login_status_; |
102 | 100 |
103 ShelfWidget* shelf_widget_; | 101 ShelfWidget* shelf_widget_; |
104 | 102 |
105 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); | 103 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); |
106 }; | 104 }; |
107 | 105 |
108 } // namespace ash | 106 } // namespace ash |
109 | 107 |
110 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ | 108 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ |
OLD | NEW |