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

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: Merge 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
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..24a926b6b8aa539e646f5d9da0f0502be8720cc6 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_thumbnail() const { return wallpaper_thumbnail_; }
+
// 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_thumbnail);
+
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_thumbnail_;
// Either index of a default image for the user, |kExternalImageIndex| or
// |kProfileImageIndex|.
« no previous file with comments | « chrome/browser/chromeos/login/mock_user_manager.h ('k') | chrome/browser/chromeos/login/user.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698