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

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

Issue 2125373002: mash: Migrate ash/system/user to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync and rebase. Created 4 years, 5 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
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_SYSTEM_USER_USER_CARD_VIEW_H_
6 #define ASH_SYSTEM_USER_USER_CARD_VIEW_H_
7
8 #include "base/macros.h"
9 #include "ui/views/view.h"
10
11 namespace ash {
12
13 enum class LoginStatus;
14
15 namespace tray {
16
17 // The view displaying information about the user, such as user's avatar, email
18 // address, name, and more. View has no borders.
19 class UserCardView : public views::View {
20 public:
21 // |max_width| takes effect only if |login_status| is LOGGED_IN_PUBLIC.
22 UserCardView(LoginStatus login_status, int max_width, int user_index);
23 ~UserCardView() override;
24
25 // views::View overrides.
26 void GetAccessibleState(ui::AXViewState* state) override;
27
28 private:
29 // Creates the content for the public mode.
30 void AddPublicModeUserContent(int max_width);
31
32 void AddUserContent(LoginStatus login_status, int user_index);
33
34 // Create a user icon representation.
35 views::View* CreateIcon(LoginStatus login_status, int user_index);
36
37 DISALLOW_COPY_AND_ASSIGN(UserCardView);
38 };
39
40 } // namespace tray
41 } // namespace ash
42
43 #endif // ASH_SYSTEM_USER_USER_CARD_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698