| Index: chrome/browser/chromeos/login/user.h
|
| diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h
|
| index ac19bdcb10cbf08916af59b21ff30e44d17b4e7d..54d1b8dab47b8d85d01806e2fc409c1b832e01cc 100644
|
| --- a/chrome/browser/chromeos/login/user.h
|
| +++ b/chrome/browser/chromeos/login/user.h
|
| @@ -10,6 +10,7 @@
|
| #include <vector>
|
|
|
| #include "base/basictypes.h"
|
| +#include "chrome/browser/chromeos/login/user_image.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "ui/gfx/image/image_skia.h"
|
|
|
| @@ -63,8 +64,12 @@ class User {
|
| bool NeedsNameTooltip() const;
|
|
|
| // The image for this user.
|
| - const gfx::ImageSkia& image() const { return image_; }
|
| + const gfx::ImageSkia& image() const { return user_image_.image(); }
|
| +
|
| int image_index() const { return image_index_; }
|
| + bool has_animated_image() const { return user_image_.has_animated_image(); }
|
| +
|
| + bool GetAnimatedImage(UserImage::RawImage* raw_image) const;
|
|
|
| // The thumbnail of user custom wallpaper.
|
| const SkBitmap& wallpaper_thumbnail() const { return wallpaper_thumbnail_; }
|
| @@ -91,7 +96,8 @@ class User {
|
| ~User();
|
|
|
| // Setters are private so only UserManager can call them.
|
| - void SetImage(const gfx::ImageSkia& image, int image_index);
|
| +void SetImage(const UserImage& user_image, int image_index);
|
| +
|
| // Sets a stub image until the next |SetImage| call. |image_index| may be
|
| // one of |kExternalImageIndex| or |kProfileImageIndex|.
|
| void SetStubImage(int image_index);
|
| @@ -110,7 +116,7 @@ class User {
|
| std::string email_;
|
| // The displayed user email, defaults to |email_|.
|
| std::string display_email_;
|
| - gfx::ImageSkia image_;
|
| + UserImage user_image_;
|
| OAuthTokenStatus oauth_token_status_;
|
| SkBitmap wallpaper_thumbnail_;
|
|
|
|
|