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

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

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_card_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_USER_CARD_VIEW_H_ 5 #ifndef ASH_SYSTEM_USER_USER_CARD_VIEW_H_
6 #define ASH_SYSTEM_USER_USER_CARD_VIEW_H_ 6 #define ASH_SYSTEM_USER_USER_CARD_VIEW_H_
7 7
8 #include "ash/system/user/login_status.h" 8 #include "ash/system/user/login_status.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
11 11
12 namespace ash { 12 namespace ash {
13 namespace tray { 13 namespace tray {
14 14
15 // The view displaying information about the user, such as user's avatar, email 15 // The view displaying information about the user, such as user's avatar, email
16 // address, name, and more. View has no borders. 16 // address, name, and more. View has no borders.
17 class UserCardView : public views::View { 17 class UserCardView : public views::View {
18 public: 18 public:
19 // |max_width| takes effect only if |login_status| is LOGGED_IN_PUBLIC. 19 // |max_width| takes effect only if |login_status| is LOGGED_IN_PUBLIC.
20 UserCardView(user::LoginStatus login_status, 20 UserCardView(user::LoginStatus login_status,
21 int max_width, 21 int max_width,
22 int multiprofile_index); 22 int multiprofile_index);
23 ~UserCardView() override; 23 ~UserCardView() override;
24 24
25 private: 25 private:
26 // Creates the content for the retail logged in mode.
27 void AddRetailModeUserContent();
28
29 // Creates the content for the public mode. 26 // Creates the content for the public mode.
30 void AddPublicModeUserContent(int max_width); 27 void AddPublicModeUserContent(int max_width);
31 28
32 void AddUserContent(user::LoginStatus login_status, int multiprofile_index); 29 void AddUserContent(user::LoginStatus login_status, int multiprofile_index);
33 30
34 // Create a user icon representation. 31 // Create a user icon representation.
35 views::View* CreateIcon(user::LoginStatus login_status, 32 views::View* CreateIcon(user::LoginStatus login_status,
36 int multiprofile_index); 33 int multiprofile_index);
37 34
38 DISALLOW_COPY_AND_ASSIGN(UserCardView); 35 DISALLOW_COPY_AND_ASSIGN(UserCardView);
39 }; 36 };
40 37
41 } // namespace tray 38 } // namespace tray
42 } // namespace ash 39 } // namespace ash
43 40
44 #endif // ASH_SYSTEM_USER_USER_CARD_VIEW_H_ 41 #endif // ASH_SYSTEM_USER_USER_CARD_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ash/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698