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

Unified Diff: ash/system/user/user_card_view.h

Issue 210903003: Implemented system tray UI for new account management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge conflicts resolved. Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/user/user_accounts_delegate.cc ('k') | ash/system/user/user_card_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/user/user_card_view.h
diff --git a/ash/system/user/user_card_view.h b/ash/system/user/user_card_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..fc9883c87aa2a603d2f62f704a2f88eccead4fc9
--- /dev/null
+++ b/ash/system/user/user_card_view.h
@@ -0,0 +1,44 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_USER_USER_CARD_VIEW_H_
+#define ASH_SYSTEM_USER_USER_CARD_VIEW_H_
+
+#include "ash/system/user/login_status.h"
+#include "base/macros.h"
+#include "ui/views/view.h"
+
+namespace ash {
+namespace tray {
+
+// The view displaying information about the user, such as user's avatar, email
+// address, name, and more. View has no borders.
+class UserCardView : public views::View {
+ public:
+ // |max_width| takes effect only if |login_status| is LOGGED_IN_PUBLIC.
+ UserCardView(user::LoginStatus login_status,
+ int max_width,
+ int multiprofile_index);
+ virtual ~UserCardView();
+
+ private:
+ // Creates the content for the retail logged in mode.
+ void AddRetailModeUserContent();
+
+ // Creates the content for the public mode.
+ void AddPublicModeUserContent(int max_width);
+
+ void AddUserContent(user::LoginStatus login_status, int multiprofile_index);
+
+ // Create a user icon representation.
+ views::View* CreateIcon(user::LoginStatus login_status,
+ int multiprofile_index);
+
+ DISALLOW_COPY_AND_ASSIGN(UserCardView);
+};
+
+} // namespace tray
+} // namespace ash
+
+#endif // ASH_SYSTEM_USER_USER_CARD_VIEW_H_
« no previous file with comments | « ash/system/user/user_accounts_delegate.cc ('k') | ash/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698