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

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

Issue 2807693002: Make LogoutButtonTray a regular View (Closed)
Patch Set: Rebased Created 3 years, 8 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/session/logout_button_tray.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/login_status.h" 9 #include "ash/login_status.h"
10 #include "ash/public/cpp/shelf_types.h" 10 #include "ash/public/cpp/shelf_types.h"
(...skipping 20 matching lines...) Expand all
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 UpdateAfterShelfAlignmentChange();
42 42
43 // Called by the client when the login status changes. Caches login_status 43 // Called by the client when the login status changes. Caches login_status
44 // and calls UpdateAfterLoginStatusChange for the system tray and the web 44 // and calls UpdateAfterLoginStatusChange for the system tray and the web
45 // notification tray. 45 // notification tray.
46 void UpdateAfterLoginStatusChange(LoginStatus login_status); 46 void UpdateAfterLoginStatusChange(LoginStatus login_status);
47 47
48 StatusAreaWidgetDelegate* status_area_widget_delegate() { 48 StatusAreaWidgetDelegate* status_area_widget_delegate() {
49 return status_area_widget_delegate_; 49 return status_area_widget_delegate_;
50 } 50 }
51 SystemTray* system_tray() { return system_tray_; } 51 SystemTray* system_tray() { return system_tray_; }
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 LoginStatus login_status_; 110 LoginStatus login_status_;
111 111
112 WmShelf* wm_shelf_; 112 WmShelf* wm_shelf_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget); 114 DISALLOW_COPY_AND_ASSIGN(StatusAreaWidget);
115 }; 115 };
116 116
117 } // namespace ash 117 } // namespace ash
118 118
119 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_ 119 #endif // ASH_SYSTEM_STATUS_AREA_WIDGET_H_
OLDNEW
« no previous file with comments | « ash/system/session/logout_button_tray.cc ('k') | ash/system/status_area_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698