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_state_delegate.h" | 9 #include "ash/session_state_delegate.h" |
10 #include "ash/system/tray/system_tray_item.h" | 10 #include "ash/system/tray/system_tray_item.h" |
11 #include "ash/system/user/user_observer.h" | 11 #include "ash/system/user/user_observer.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 class Rect; | 15 class Rect; |
16 class Size; | 16 class Size; |
17 } | 17 } |
18 | 18 |
19 namespace views { | 19 namespace views { |
20 class ImageView; | 20 class ImageView; |
21 class Label; | 21 class Label; |
22 } | 22 } |
23 | 23 |
24 namespace ash { | 24 namespace ash { |
25 namespace internal { | |
26 | |
27 namespace tray { | 25 namespace tray { |
28 class UserView; | 26 class UserView; |
29 class RoundedImageView; | 27 class RoundedImageView; |
30 } | 28 } |
31 | 29 |
32 class ASH_EXPORT TrayUser : public SystemTrayItem, | 30 class ASH_EXPORT TrayUser : public SystemTrayItem, |
33 public UserObserver { | 31 public UserObserver { |
34 public: | 32 public: |
35 // The given |multiprofile_index| is the user number in a multi profile | 33 // The given |multiprofile_index| is the user number in a multi profile |
36 // scenario. Index #0 is the running user, the other indices are other logged | 34 // scenario. Index #0 is the running user, the other indices are other logged |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 tray::UserView* user_; | 88 tray::UserView* user_; |
91 | 89 |
92 // View that contains label and/or avatar. | 90 // View that contains label and/or avatar. |
93 views::View* layout_view_; | 91 views::View* layout_view_; |
94 tray::RoundedImageView* avatar_; | 92 tray::RoundedImageView* avatar_; |
95 views::Label* label_; | 93 views::Label* label_; |
96 | 94 |
97 DISALLOW_COPY_AND_ASSIGN(TrayUser); | 95 DISALLOW_COPY_AND_ASSIGN(TrayUser); |
98 }; | 96 }; |
99 | 97 |
100 } // namespace internal | |
101 } // namespace ash | 98 } // namespace ash |
102 | 99 |
103 #endif // ASH_SYSTEM_USER_TRAY_USER_H_ | 100 #endif // ASH_SYSTEM_USER_TRAY_USER_H_ |
OLD | NEW |