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

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

Issue 2041233005: Moves ash::user::LoginStatus to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test 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/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"
(...skipping 27 matching lines...) Expand all
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(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(LoginStatus login_status);
49 49
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 ShelfWidget* shelf_widget() { return shelf_widget_; }
61 61
62 user::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;
71 71
72 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a 72 // Notifies child trays, and the |status_area_widget_delegate_| to schedule a
(...skipping 16 matching lines...) Expand all
89 89
90 // Weak pointers to View classes that are parented to StatusAreaWidget: 90 // Weak pointers to View classes that are parented to StatusAreaWidget:
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 user::LoginStatus login_status_; 99 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_
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