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

Side by Side Diff: ash/system/user/tray_user.h

Issue 1023183002: TrayUser::GetTrayIndex method removed as not necessary. Swich->Switch renamed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | ash/system/user/tray_user.cc » ('j') | ash/system/user/tray_user.cc » ('J')
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_USER_TRAY_USER_H_ 5 #ifndef ASH_SYSTEM_USER_TRAY_USER_H_
6 #define ASH_SYSTEM_USER_TRAY_USER_H_ 6 #define ASH_SYSTEM_USER_TRAY_USER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/session/session_state_delegate.h" 9 #include "ash/session/session_state_delegate.h"
10 #include "ash/system/tray/system_tray_item.h" 10 #include "ash/system/tray/system_tray_item.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 void DestroyDetailedView() override; 69 void DestroyDetailedView() override;
70 void UpdateAfterLoginStatusChange(user::LoginStatus status) override; 70 void UpdateAfterLoginStatusChange(user::LoginStatus status) override;
71 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override; 71 void UpdateAfterShelfAlignmentChange(ShelfAlignment alignment) override;
72 72
73 // Overridden from UserObserver. 73 // Overridden from UserObserver.
74 void OnUserUpdate() override; 74 void OnUserUpdate() override;
75 void OnUserAddedToSession() override; 75 void OnUserAddedToSession() override;
76 76
77 void UpdateAvatarImage(user::LoginStatus status); 77 void UpdateAvatarImage(user::LoginStatus status);
78 78
79 // Get the user index which should be used for the tray icon of this item.
80 MultiProfileIndex GetTrayIndex();
81
82 // Updates the layout of this item. 79 // Updates the layout of this item.
83 void UpdateLayoutOfItem(); 80 void UpdateLayoutOfItem();
84 81
85 // The user index to use. 82 // The user index to use.
86 MultiProfileIndex multiprofile_index_; 83 MultiProfileIndex multiprofile_index_;
87 84
88 tray::UserView* user_; 85 tray::UserView* user_;
89 86
90 // View that contains label and/or avatar. 87 // View that contains label and/or avatar.
91 views::View* layout_view_; 88 views::View* layout_view_;
92 tray::RoundedImageView* avatar_; 89 tray::RoundedImageView* avatar_;
93 views::Label* label_; 90 views::Label* label_;
94 91
95 DISALLOW_COPY_AND_ASSIGN(TrayUser); 92 DISALLOW_COPY_AND_ASSIGN(TrayUser);
96 }; 93 };
97 94
98 } // namespace ash 95 } // namespace ash
99 96
100 #endif // ASH_SYSTEM_USER_TRAY_USER_H_ 97 #endif // ASH_SYSTEM_USER_TRAY_USER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/user/tray_user.cc » ('j') | ash/system/user/tray_user.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698