| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |