Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Side by Side Diff: ash/system/status_area_widget.h

Issue 2072023003: mash: Break ash system tray dependencies on ash::ShelfWidget (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/system/overview/overview_button_tray_unittest.cc ('k') | ash/system/status_area_widget.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/common/login_status.h"
9 #include "ash/common/shelf/shelf_types.h" 10 #include "ash/common/shelf/shelf_types.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;
17 class ShellDelegate; 16 class ShellDelegate;
18 class StatusAreaWidgetDelegate; 17 class StatusAreaWidgetDelegate;
19 class SystemTray; 18 class SystemTray;
20 class WebNotificationTray; 19 class WebNotificationTray;
20 class WmShelf;
21 class WmWindow; 21 class WmWindow;
22 #if defined(OS_CHROMEOS) 22 #if defined(OS_CHROMEOS)
23 class LogoutButtonTray; 23 class LogoutButtonTray;
24 class VirtualKeyboardTray; 24 class VirtualKeyboardTray;
25 #endif 25 #endif
26 26
27 class ASH_EXPORT StatusAreaWidget : public views::Widget { 27 class ASH_EXPORT StatusAreaWidget : public views::Widget {
28 public: 28 public:
29 StatusAreaWidget(WmWindow* status_container, ShelfWidget* shelf_widget); 29 StatusAreaWidget(WmWindow* status_container, WmShelf* wm_shelf);
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.
(...skipping 10 matching lines...) Expand all
50 StatusAreaWidgetDelegate* status_area_widget_delegate() { 50 StatusAreaWidgetDelegate* status_area_widget_delegate() {
51 return status_area_widget_delegate_; 51 return status_area_widget_delegate_;
52 } 52 }
53 SystemTray* system_tray() { return system_tray_; } 53 SystemTray* system_tray() { return system_tray_; }
54 WebNotificationTray* web_notification_tray() { 54 WebNotificationTray* web_notification_tray() {
55 return web_notification_tray_; 55 return web_notification_tray_;
56 } 56 }
57 OverviewButtonTray* overview_button_tray() { 57 OverviewButtonTray* overview_button_tray() {
58 return overview_button_tray_; 58 return overview_button_tray_;
59 } 59 }
60 ShelfWidget* shelf_widget() { return shelf_widget_; } 60 WmShelf* wm_shelf() { return wm_shelf_; }
61 61
62 LoginStatus login_status() const { return login_status_; } 62 LoginStatus login_status() const { return login_status_; }
63 63
64 // Returns true if the shelf should be visible. This is used when the 64 // Returns true if the shelf should be visible. This is used when the
65 // shelf is configured to auto-hide and test if the shelf should force 65 // shelf is configured to auto-hide and test if the shelf should force
66 // the shelf to remain visible. 66 // the shelf to remain visible.
67 bool ShouldShowShelf() const; 67 bool ShouldShowShelf() const;
68 68
69 // True if any message bubble is shown. 69 // True if any message bubble is shown.
70 bool IsMessageBubbleShown() const; 70 bool IsMessageBubbleShown() const;
(...skipping 20 matching lines...) Expand all
91 StatusAreaWidgetDelegate* status_area_widget_delegate_; 91 StatusAreaWidgetDelegate* status_area_widget_delegate_;
92 OverviewButtonTray* overview_button_tray_; 92 OverviewButtonTray* overview_button_tray_;
93 SystemTray* system_tray_; 93 SystemTray* system_tray_;
94 WebNotificationTray* web_notification_tray_; 94 WebNotificationTray* web_notification_tray_;
95 #if defined(OS_CHROMEOS) 95 #if defined(OS_CHROMEOS)
96 LogoutButtonTray* logout_button_tray_; 96 LogoutButtonTray* logout_button_tray_;
97 VirtualKeyboardTray* virtual_keyboard_tray_; 97 VirtualKeyboardTray* virtual_keyboard_tray_;
98 #endif 98 #endif
99 LoginStatus login_status_; 99 LoginStatus login_status_;
100 100
101 ShelfWidget* shelf_widget_; 101 WmShelf* wm_shelf_;
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_
OLDNEW
« no previous file with comments | « ash/system/overview/overview_button_tray_unittest.cc ('k') | ash/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698