ProfilePolicyConnectorFactory: Refactoring from Profile to BrowserContext.
[chromium-blink-merge.git] / ash / system / user / user_card_view.h
blobeec67cf4f0ad30bc5061a4817c53ea7886b41471
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.
5 #ifndef ASH_SYSTEM_USER_USER_CARD_VIEW_H_
6 #define ASH_SYSTEM_USER_USER_CARD_VIEW_H_
8 #include "ash/system/user/login_status.h"
9 #include "base/macros.h"
10 #include "ui/views/view.h"
12 namespace ash {
13 namespace tray {
15 // The view displaying information about the user, such as user's avatar, email
16 // address, name, and more. View has no borders.
17 class UserCardView : public views::View {
18 public:
19 // |max_width| takes effect only if |login_status| is LOGGED_IN_PUBLIC.
20 UserCardView(user::LoginStatus login_status,
21 int max_width,
22 int multiprofile_index);
23 ~UserCardView() override;
25 private:
26 // Creates the content for the public mode.
27 void AddPublicModeUserContent(int max_width);
29 void AddUserContent(user::LoginStatus login_status, int multiprofile_index);
31 // Create a user icon representation.
32 views::View* CreateIcon(user::LoginStatus login_status,
33 int multiprofile_index);
35 DISALLOW_COPY_AND_ASSIGN(UserCardView);
38 } // namespace tray
39 } // namespace ash
41 #endif // ASH_SYSTEM_USER_USER_CARD_VIEW_H_