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

Side by Side Diff: chrome/browser/chromeos/login/user_manager.h

Issue 10448105: Revert "Added support for animated/nonanimated user image. There are no" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months 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 | Annotate | Revision Log
OLDNEW
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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "ash/desktop_background/desktop_background_resources.h" 11 #include "ash/desktop_background/desktop_background_resources.h"
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "chrome/browser/chromeos/login/user.h" 13 #include "chrome/browser/chromeos/login/user.h"
14 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle r2.h" 14 #include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handle r2.h"
15 15
16 class SkBitmap; 16 class SkBitmap;
17 class FilePath; 17 class FilePath;
18 class PrefService; 18 class PrefService;
19 19
20 namespace chromeos { 20 namespace chromeos {
21 21
22 class RemoveUserDelegate; 22 class RemoveUserDelegate;
23 class UserImage;
24 23
25 // Base class for UserManagerImpl - provides a mechanism for discovering users 24 // Base class for UserManagerImpl - provides a mechanism for discovering users
26 // who have logged into this Chrome OS device before and updating that list. 25 // who have logged into this Chrome OS device before and updating that list.
27 class UserManager { 26 class UserManager {
28 public: 27 public:
29 // Interface that observers of UserManager must implement in order 28 // Interface that observers of UserManager must implement in order
30 // to receive notification when local state preferences is changed 29 // to receive notification when local state preferences is changed
31 class Observer { 30 class Observer {
32 public: 31 public:
33 // Called when the local state preferences is changed 32 // Called when the local state preferences is changed
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 int index) = 0; 167 int index) = 0;
169 168
170 // Sets user image to the default image with index |image_index|, sends 169 // Sets user image to the default image with index |image_index|, sends
171 // LOGIN_USER_IMAGE_CHANGED notification and updates Local State. 170 // LOGIN_USER_IMAGE_CHANGED notification and updates Local State.
172 virtual void SaveUserDefaultImageIndex(const std::string& username, 171 virtual void SaveUserDefaultImageIndex(const std::string& username,
173 int image_index) = 0; 172 int image_index) = 0;
174 173
175 // Saves image to file, sends LOGIN_USER_IMAGE_CHANGED notification and 174 // Saves image to file, sends LOGIN_USER_IMAGE_CHANGED notification and
176 // updates Local State. 175 // updates Local State.
177 virtual void SaveUserImage(const std::string& username, 176 virtual void SaveUserImage(const std::string& username,
178 const UserImage& user_image) = 0; 177 const SkBitmap& image) = 0;
179 178
180 // Updates custom wallpaper to selected layout and saves layout to Local 179 // Updates custom wallpaper to selected layout and saves layout to Local
181 // State. 180 // State.
182 virtual void SetLoggedInUserCustomWallpaperLayout( 181 virtual void SetLoggedInUserCustomWallpaperLayout(
183 ash::WallpaperLayout layout) = 0; 182 ash::WallpaperLayout layout) = 0;
184 183
185 // Tries to load user image from disk; if successful, sets it for the user, 184 // Tries to load user image from disk; if successful, sets it for the user,
186 // sends LOGIN_USER_IMAGE_CHANGED notification and updates Local State. 185 // sends LOGIN_USER_IMAGE_CHANGED notification and updates Local State.
187 virtual void SaveUserImageFromFile(const std::string& username, 186 virtual void SaveUserImageFromFile(const std::string& username,
188 const FilePath& path) = 0; 187 const FilePath& path) = 0;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 virtual void NotifyLocalStateChanged() = 0; 239 virtual void NotifyLocalStateChanged() = 0;
241 240
242 // Returns the result of the last successful profile image download, if any. 241 // Returns the result of the last successful profile image download, if any.
243 // Otherwise, returns an empty bitmap. 242 // Otherwise, returns an empty bitmap.
244 virtual const SkBitmap& DownloadedProfileImage() const = 0; 243 virtual const SkBitmap& DownloadedProfileImage() const = 0;
245 }; 244 };
246 245
247 } // namespace chromeos 246 } // namespace chromeos
248 247
249 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_ 248 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/user_image_screen.cc ('k') | chrome/browser/chromeos/login/user_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698