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

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

Issue 10375010: Implement user selected wallpaper feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: James' review 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.h
diff --git a/chrome/browser/chromeos/login/user.h b/chrome/browser/chromeos/login/user.h
index 5115d8d2dae0effa961b22000118fc1d46974cad..348d5589cc79eea3887bc33c64c282c78726bec2 100644
--- a/chrome/browser/chromeos/login/user.h
+++ b/chrome/browser/chromeos/login/user.h
@@ -65,6 +65,9 @@ class User {
const SkBitmap& image() const { return image_; }
int image_index() const { return image_index_; }
+ // The thumbnail of user custom wallpaper.
+ const SkBitmap& wallpaper_thumb() const { return wallpaper_thumb_; }
+
// True if user image is a stub (while real image is being loaded from file).
bool image_is_stub() const { return image_is_stub_; }
@@ -92,6 +95,9 @@ class User {
// one of |kExternalImageIndex| or |kProfileImageIndex|.
void SetStubImage(int image_index);
+ // Set thumbnail of user custom wallpaper.
+ void SetWallpaperThumbnail(const SkBitmap& wallpaper_thumb);
+
void set_oauth_token_status(OAuthTokenStatus status) {
oauth_token_status_ = status;
}
@@ -105,6 +111,7 @@ class User {
std::string display_email_;
SkBitmap image_;
OAuthTokenStatus oauth_token_status_;
+ SkBitmap wallpaper_thumb_;
// Either index of a default image for the user, |kExternalImageIndex| or
// |kProfileImageIndex|.

Powered by Google App Engine
This is Rietveld 408576698