OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 21 matching lines...) Expand all Loading... |
32 OAUTH_TOKEN_STATUS_VALID = 2, | 32 OAUTH_TOKEN_STATUS_VALID = 2, |
33 } OAuthTokenStatus; | 33 } OAuthTokenStatus; |
34 | 34 |
35 // Returned as |image_index| when user-selected file or photo is used as | 35 // Returned as |image_index| when user-selected file or photo is used as |
36 // user image. | 36 // user image. |
37 static const int kExternalImageIndex = -1; | 37 static const int kExternalImageIndex = -1; |
38 // Returned as |image_index| when user profile image is used as user image. | 38 // Returned as |image_index| when user profile image is used as user image. |
39 static const int kProfileImageIndex = -2; | 39 static const int kProfileImageIndex = -2; |
40 static const int kInvalidImageIndex = -3; | 40 static const int kInvalidImageIndex = -3; |
41 | 41 |
| 42 enum WallpaperType { |
| 43 RANDOM = 0, |
| 44 CUSTOMIZED = 1, |
| 45 DEFAULT = 2, |
| 46 UNKNOWN = 3 |
| 47 }; |
| 48 |
42 // The email the user used to log in. | 49 // The email the user used to log in. |
43 const std::string& email() const { return email_; } | 50 const std::string& email() const { return email_; } |
44 | 51 |
45 // Returns the name to display for this user. | 52 // Returns the name to display for this user. |
46 std::string GetDisplayName() const; | 53 std::string GetDisplayName() const; |
47 // Returns the account name part of the email. | 54 // Returns the account name part of the email. |
48 std::string GetAccountName() const; | 55 std::string GetAccountName() const; |
49 | 56 |
50 // Tooltip contains user's display name and his email domain to distinguish | 57 // Tooltip contains user's display name and his email domain to distinguish |
51 // this user from the other one with the same display name. | 58 // this user from the other one with the same display name. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 | 121 |
115 DISALLOW_COPY_AND_ASSIGN(User); | 122 DISALLOW_COPY_AND_ASSIGN(User); |
116 }; | 123 }; |
117 | 124 |
118 // List of known users. | 125 // List of known users. |
119 typedef std::vector<User*> UserList; | 126 typedef std::vector<User*> UserList; |
120 | 127 |
121 } // namespace chromeos | 128 } // namespace chromeos |
122 | 129 |
123 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ | 130 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_H_ |
OLD | NEW |