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

Unified Diff: chrome/browser/chromeos/login/user_manager.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_manager.h
diff --git a/chrome/browser/chromeos/login/user_manager.h b/chrome/browser/chromeos/login/user_manager.h
index 7e9f6d14191b5d700201d6873edb05ff990a41e4..c5f46cc4bac8cc9920ee52f8702996f26cadc874 100644
--- a/chrome/browser/chromeos/login/user_manager.h
+++ b/chrome/browser/chromeos/login/user_manager.h
@@ -11,6 +11,7 @@
#include "ash/desktop_background/desktop_background_resources.h"
#include "base/memory/singleton.h"
#include "chrome/browser/chromeos/login/user.h"
+#include "chrome/browser/ui/webui/options2/chromeos/set_wallpaper_options_handler2.h"
class SkBitmap;
class FilePath;
@@ -175,11 +176,23 @@ class UserManager {
virtual void SaveUserImage(const std::string& username,
const SkBitmap& image) = 0;
+ // Update custom wallpaper to selected layout and saves layout to Local
flackr 2012/05/09 21:26:16 s/Update/Updates
bshe 2012/05/10 16:10:26 Done.
+ // State.
+ virtual void SetLoggedInUserCustomWallpaperLayout(
+ ash::WallpaperLayout layout) = 0;
+
// Tries to load user image from disk; if successful, sets it for the user,
// sends LOGIN_USER_IMAGE_CHANGED notification and updates Local State.
virtual void SaveUserImageFromFile(const std::string& username,
const FilePath& path) = 0;
+ // Tries to load user image from disk; if successful, sets it for the user,
+ // and updates Local State.
+ virtual void SaveUserWallpaperFromFile(const std::string& username,
+ const FilePath& path,
+ ash::WallpaperLayout layout,
+ WallpaperDelegate* delegate) = 0;
+
// Sets profile image as user image for |username|, sends
// LOGIN_USER_IMAGE_CHANGED notification and updates Local State. If the user
// is not logged-in or the last |DownloadProfileImage| call has failed, a

Powered by Google App Engine
This is Rietveld 408576698