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_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 Loading... |
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_ |
OLD | NEW |