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_PROFILES_AVATAR_MENU_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
49 | 49 |
50 // The icon to be displayed next to the item. | 50 // The icon to be displayed next to the item. |
51 gfx::Image icon; | 51 gfx::Image icon; |
52 | 52 |
53 // Whether or not the current browser is using this profile. | 53 // Whether or not the current browser is using this profile. |
54 bool active; | 54 bool active; |
55 | 55 |
56 // The name of this profile. | 56 // The name of this profile. |
57 base::string16 name; | 57 base::string16 name; |
58 | 58 |
59 // A string representing the sync state of the profile. | 59 // A string representing the username of the profile, if signed in. |
noms (inactive)
2015/05/06 01:05:54
nit: can you add an extra "; empty otherwise"?
Roger Tawa OOO till Jul 10th
2015/05/11 16:09:57
Done.
| |
60 base::string16 sync_state; | 60 base::string16 username; |
61 | 61 |
62 // Whether or not the current profile is signed in. If true, |sync_state| is | 62 // Whether or not the current profile is signed in. If true, |sync_state| is |
63 // expected to be the email of the signed in user. | 63 // expected to be the email of the signed in user. |
64 bool signed_in; | 64 bool signed_in; |
65 | 65 |
66 // Whether or not the current profile requires sign-in before use. | 66 // Whether or not the current profile requires sign-in before use. |
67 bool signin_required; | 67 bool signin_required; |
68 | 68 |
69 // Whether or not the current profile is a legacy supervised user profile | 69 // Whether or not the current profile is a legacy supervised user profile |
70 // (see SupervisedUserService). | 70 // (see SupervisedUserService). |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 // Returns true if the edit profile link should be shown. | 150 // Returns true if the edit profile link should be shown. |
151 bool ShouldShowEditProfileLink() const; | 151 bool ShouldShowEditProfileLink() const; |
152 | 152 |
153 private: | 153 private: |
154 // ProfileInfoCacheObserver: | 154 // ProfileInfoCacheObserver: |
155 void OnProfileAdded(const base::FilePath& profile_path) override; | 155 void OnProfileAdded(const base::FilePath& profile_path) override; |
156 void OnProfileWasRemoved(const base::FilePath& profile_path, | 156 void OnProfileWasRemoved(const base::FilePath& profile_path, |
157 const base::string16& profile_name) override; | 157 const base::string16& profile_name) override; |
158 void OnProfileNameChanged(const base::FilePath& profile_path, | 158 void OnProfileNameChanged(const base::FilePath& profile_path, |
159 const base::string16& old_profile_name) override; | 159 const base::string16& old_profile_name) override; |
160 void OnProfileUserNameChanged(const base::FilePath& profile_path) override; | 160 void OnProfileAuthInfoChanged(const base::FilePath& profile_path) override; |
161 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 161 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
162 void OnProfileHighResAvatarLoaded( | 162 void OnProfileHighResAvatarLoaded( |
163 const base::FilePath& profile_path) override; | 163 const base::FilePath& profile_path) override; |
164 void OnProfileSigninRequiredChanged( | 164 void OnProfileSigninRequiredChanged( |
165 const base::FilePath& profile_path) override; | 165 const base::FilePath& profile_path) override; |
166 void OnProfileIsOmittedChanged(const base::FilePath& profile_path) override; | 166 void OnProfileIsOmittedChanged(const base::FilePath& profile_path) override; |
167 | 167 |
168 #if defined(ENABLE_SUPERVISED_USERS) | 168 #if defined(ENABLE_SUPERVISED_USERS) |
169 // SupervisedUserServiceObserver: | 169 // SupervisedUserServiceObserver: |
170 void OnCustodianInfoChanged() override; | 170 void OnCustodianInfoChanged() override; |
(...skipping 20 matching lines...) Expand all Loading... | |
191 // The observer of this model, which is notified of changes. Weak. | 191 // The observer of this model, which is notified of changes. Weak. |
192 AvatarMenuObserver* observer_; | 192 AvatarMenuObserver* observer_; |
193 | 193 |
194 // Browser in which this avatar menu resides. Weak. | 194 // Browser in which this avatar menu resides. Weak. |
195 Browser* browser_; | 195 Browser* browser_; |
196 | 196 |
197 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); | 197 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); |
198 }; | 198 }; |
199 | 199 |
200 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 200 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
OLD | NEW |