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

Unified Diff: chrome/browser/chromeos/login/user_manager_impl.h

Issue 10454044: Added support for animated/nonanimated user image. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Small fixes to comments. Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/user_manager_impl.h
diff --git a/chrome/browser/chromeos/login/user_manager_impl.h b/chrome/browser/chromeos/login/user_manager_impl.h
index a68b333570a87a5c2631c41d513d44017ef82603..21e033fcb7a5aa0690328e5503e69007ea0f69f5 100644
--- a/chrome/browser/chromeos/login/user_manager_impl.h
+++ b/chrome/browser/chromeos/login/user_manager_impl.h
@@ -32,6 +32,7 @@ class ProfileSyncService;
namespace chromeos {
class RemoveUserDelegate;
+class UserImage;
// Implementation of the UserManager.
class UserManagerImpl : public UserManager,
@@ -73,7 +74,7 @@ class UserManagerImpl : public UserManager,
virtual void SaveUserDefaultImageIndex(const std::string& username,
int image_index) OVERRIDE;
virtual void SaveUserImage(const std::string& username,
- const SkBitmap& image) OVERRIDE;
+ const UserImage& user_image) OVERRIDE;
virtual void SetLoggedInUserCustomWallpaperLayout(
ash::WallpaperLayout layout) OVERRIDE;
virtual void SaveUserImageFromFile(const std::string& username,
@@ -176,7 +177,7 @@ class UserManagerImpl : public UserManager,
// If |image| is empty, sets a stub image for the user.
void SetUserImage(const std::string& username,
int image_index,
- const SkBitmap& image);
+ const UserImage& user_image);
void GetUserWallpaperProperties(const std::string& username,
User::WallpaperType* type,
@@ -189,7 +190,7 @@ class UserManagerImpl : public UserManager,
// and sends LOGIN_USER_IMAGE_CHANGED notification.
void SaveUserImageInternal(const std::string& username,
int image_index,
- const SkBitmap& image);
+ const UserImage& user_image);
// Saves wallpaper to file, post task to generate thumbnail and updates local
// state preferences.
@@ -197,17 +198,17 @@ class UserManagerImpl : public UserManager,
ash::WallpaperLayout layout,
User::WallpaperType type,
WallpaperDelegate* delegate,
- const SkBitmap& image);
+ const UserImage& user_image);
// Sets desktop background to custom wallpaper and loads wallpaper thumbnail
// asynchronously.
void OnCustomWallpaperLoaded(const std::string& email,
ash::WallpaperLayout layout,
- const SkBitmap& wallpaper);
+ const UserImage& wallpaper);
// Caches the loaded wallpaper for the given user.
void OnCustomWallpaperThumbnailLoaded(const std::string& email,
- const SkBitmap& wallpaper);
+ const UserImage& user_image);
// Updates the custom wallpaper thumbnail in wallpaper picker UI.
void OnThumbnailUpdated(WallpaperDelegate* delegate);
@@ -222,7 +223,7 @@ class UserManagerImpl : public UserManager,
// notification. Runs on FILE thread. Posts task for saving image info to
// Local State on UI thread.
void SaveImageToFile(const std::string& username,
- const SkBitmap& image,
+ const UserImage& user_image,
const FilePath& image_path,
int image_index);
@@ -249,7 +250,7 @@ class UserManagerImpl : public UserManager,
User::WallpaperType type);
// Saves |image| to the specified |image_path|. Runs on FILE thread.
- bool SaveBitmapToFile(const SkBitmap& image,
+ bool SaveBitmapToFile(const UserImage& user_image,
const FilePath& image_path);
// Initializes |downloaded_profile_picture_| with the picture of the logged-in

Powered by Google App Engine
This is Rietveld 408576698