| 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 |
| 25 namespace tray { | 26 namespace tray { |
| 27 class RoundedImageView; |
| 26 class UserView; | 28 class UserView; |
| 27 class RoundedImageView; | |
| 28 } | 29 } |
| 29 | 30 |
| 30 class ASH_EXPORT TrayUser : public SystemTrayItem, | 31 class ASH_EXPORT TrayUser : public SystemTrayItem, |
| 31 public UserObserver { | 32 public UserObserver { |
| 32 public: | 33 public: |
| 33 // The given |multiprofile_index| is the user number in a multi profile | 34 // The given |multiprofile_index| is the user number in a multi profile |
| 34 // scenario. Index #0 is the running user, the other indices are other logged | 35 // scenario. Index #0 is the running user, the other indices are other logged |
| 35 // in users (if there are any). Depending on the multi user mode, there will | 36 // in users (if there are any). Depending on the multi user mode, there will |
| 36 // be either one (index #0) or all users be visible in the system tray. | 37 // be either one (index #0) or all users be visible in the system tray. |
| 37 TrayUser(SystemTray* system_tray, MultiProfileIndex index); | 38 TrayUser(SystemTray* system_tray, MultiProfileIndex index); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 views::View* layout_view_; | 92 views::View* layout_view_; |
| 92 tray::RoundedImageView* avatar_; | 93 tray::RoundedImageView* avatar_; |
| 93 views::Label* label_; | 94 views::Label* label_; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(TrayUser); | 96 DISALLOW_COPY_AND_ASSIGN(TrayUser); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace ash | 99 } // namespace ash |
| 99 | 100 |
| 100 #endif // ASH_SYSTEM_USER_TRAY_USER_H_ | 101 #endif // ASH_SYSTEM_USER_TRAY_USER_H_ |
| OLD | NEW |