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_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "ash/desktop_background/desktop_background_resources.h" | 10 #include "ash/desktop_background/desktop_background_resources.h" |
11 #include "base/memory/singleton.h" | 11 #include "base/memory/singleton.h" |
12 #include "chrome/browser/chromeos/login/user.h" | 12 #include "chrome/browser/chromeos/login/user.h" |
13 #include "chrome/browser/ui/webui/options/chromeos/set_wallpaper_options_handler
.h" | |
14 | 13 |
15 class PrefService; | 14 class PrefService; |
16 | 15 |
17 namespace chromeos { | 16 namespace chromeos { |
18 | 17 |
19 class RemoveUserDelegate; | 18 class RemoveUserDelegate; |
20 class UserImageManager; | 19 class UserImageManager; |
21 | 20 |
22 // Base class for UserManagerImpl - provides a mechanism for discovering users | 21 // Base class for UserManagerImpl - provides a mechanism for discovering users |
23 // who have logged into this Chrome OS device before and updating that list. | 22 // who have logged into this Chrome OS device before and updating that list. |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // Ignored If there is no such user. | 135 // Ignored If there is no such user. |
137 virtual void SaveUserDisplayEmail(const std::string& username, | 136 virtual void SaveUserDisplayEmail(const std::string& username, |
138 const std::string& display_email) = 0; | 137 const std::string& display_email) = 0; |
139 | 138 |
140 // Returns the display email for user |username| if it is known (was | 139 // Returns the display email for user |username| if it is known (was |
141 // previously set by a |SaveUserDisplayEmail| call). | 140 // previously set by a |SaveUserDisplayEmail| call). |
142 // Otherwise, returns |username| itself. | 141 // Otherwise, returns |username| itself. |
143 virtual std::string GetUserDisplayEmail( | 142 virtual std::string GetUserDisplayEmail( |
144 const std::string& username) const = 0; | 143 const std::string& username) const = 0; |
145 | 144 |
146 // Saves |type| and |index| chose by logged in user to Local State. | |
147 virtual void SaveLoggedInUserWallpaperProperties(User::WallpaperType type, | |
148 int index) = 0; | |
149 | |
150 // Updates custom wallpaper to selected layout and saves layout to Local | |
151 // State. | |
152 virtual void SetLoggedInUserCustomWallpaperLayout( | |
153 ash::WallpaperLayout layout) = 0; | |
154 | |
155 // Returns true if current user is an owner. | 145 // Returns true if current user is an owner. |
156 virtual bool IsCurrentUserOwner() const = 0; | 146 virtual bool IsCurrentUserOwner() const = 0; |
157 | 147 |
158 // Returns true if current user is not existing one (hasn't signed in before). | 148 // Returns true if current user is not existing one (hasn't signed in before). |
159 virtual bool IsCurrentUserNew() const = 0; | 149 virtual bool IsCurrentUserNew() const = 0; |
160 | 150 |
161 // Returns true if the current user is ephemeral. | 151 // Returns true if the current user is ephemeral. |
162 virtual bool IsCurrentUserEphemeral() const = 0; | 152 virtual bool IsCurrentUserEphemeral() const = 0; |
163 | 153 |
164 // Returns true if user is signed in. | 154 // Returns true if user is signed in. |
(...skipping 22 matching lines...) Expand all Loading... |
187 | 177 |
188 virtual void AddObserver(Observer* obs) = 0; | 178 virtual void AddObserver(Observer* obs) = 0; |
189 virtual void RemoveObserver(Observer* obs) = 0; | 179 virtual void RemoveObserver(Observer* obs) = 0; |
190 | 180 |
191 virtual void NotifyLocalStateChanged() = 0; | 181 virtual void NotifyLocalStateChanged() = 0; |
192 }; | 182 }; |
193 | 183 |
194 } // namespace chromeos | 184 } // namespace chromeos |
195 | 185 |
196 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ | 186 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ |
OLD | NEW |