Chromium Code Reviews| Index: chrome/browser/chromeos/login/user.h |
| diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h |
| index 60138d4863ea4df6a582379d3315bb49f53e72fb..f8150f2ad89f58d2d0db691cf224aa138c544555 100644 |
| --- a/chrome/browser/chromeos/login/user.h |
| +++ b/chrome/browser/chromeos/login/user.h |
| @@ -32,6 +32,7 @@ class User { |
| OAUTH_TOKEN_STATUS_VALID = 2, |
| } OAuthTokenStatus; |
| + static const int kDefaultWallpaperIndex = 0; |
|
flackr
2012/03/05 16:16:03
Comment.
|
| // Returned as |image_index| when user-selected file or photo is used as |
| // user image. |
| static const int kExternalImageIndex = -1; |
| @@ -58,6 +59,8 @@ class User { |
| const SkBitmap& image() const { return image_; } |
| int image_index() const { return image_index_; } |
| + int wallpaper_index() const {return wallpaper_index_;} |
|
flackr
2012/03/05 16:16:03
Comment
bshe
2012/03/06 01:33:27
The function doesn't seem to work after user logou
|
| + |
| // True if user image is a stub (while real image is being loaded from file). |
| bool image_is_stub() const { return image_is_stub_; } |
| @@ -76,6 +79,8 @@ class User { |
| User(const std::string& email, bool is_guest); |
| ~User(); |
| + void SetWallpaper(int wallpaper_index); |
|
flackr
2012/03/05 16:16:03
Comment.
|
| + |
| // Setters are private so only UserManager can call them. |
| void SetImage(const SkBitmap& image, int image_index); |
| // Sets a stub image until the next |SetImage| call. |image_index| may be |
| @@ -100,6 +105,8 @@ class User { |
| // |kProfileImageIndex|. |
| int image_index_; |
| + int wallpaper_index_; |
|
flackr
2012/03/05 16:16:03
Comment.
|
| + |
| // True if current user image is a stub set by a |SetStubImage| call. |
| bool image_is_stub_; |