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

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

Issue 2498293003: CrOS md user row adjustments (Closed)
Patch Set: is_active_user() Created 4 years, 1 month 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/common/system/user/tray_user_unittest.cc ('k') | ash/common/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_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_ 5 #ifndef ASH_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_
6 #define ASH_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_ 6 #define ASH_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/views/view.h" 9 #include "ui/views/view.h"
10 10
(...skipping 11 matching lines...) Expand all
22 UserCardView(LoginStatus login_status, int max_width, int user_index); 22 UserCardView(LoginStatus login_status, int max_width, int user_index);
23 ~UserCardView() override; 23 ~UserCardView() override;
24 24
25 // views::View overrides. 25 // views::View overrides.
26 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 26 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
27 27
28 private: 28 private:
29 // Creates the content for the public mode. 29 // Creates the content for the public mode.
30 void AddPublicModeUserContent(int max_width); 30 void AddPublicModeUserContent(int max_width);
31 31
32 void AddUserContent(LoginStatus login_status, int user_index); 32 void AddUserContent(LoginStatus login_status);
33 void AddUserContentMd(LoginStatus login_status);
34
35 bool is_active_user() const { return !user_index_; }
36
37 int user_index_;
33 38
34 DISALLOW_COPY_AND_ASSIGN(UserCardView); 39 DISALLOW_COPY_AND_ASSIGN(UserCardView);
35 }; 40 };
36 41
37 } // namespace tray 42 } // namespace tray
38 } // namespace ash 43 } // namespace ash
39 44
40 #endif // ASH_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_ 45 #endif // ASH_COMMON_SYSTEM_USER_USER_CARD_VIEW_H_
OLDNEW
« no previous file with comments | « ash/common/system/user/tray_user_unittest.cc ('k') | ash/common/system/user/user_card_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698