Index: chrome/browser/chromeos/login/wallpaper_manager.h |
diff --git a/chrome/browser/chromeos/login/wallpaper_manager.h b/chrome/browser/chromeos/login/wallpaper_manager.h |
index 0c7062f33b59724f5a66ae4c51024f6f75d81227..1d0d21de98a8c7c90b487586f765c6ed39d3d177 100644 |
--- a/chrome/browser/chromeos/login/wallpaper_manager.h |
+++ b/chrome/browser/chromeos/login/wallpaper_manager.h |
@@ -8,7 +8,11 @@ |
#include <string> |
+#include "ash/desktop_background/desktop_background_resources.h" |
+#include "base/memory/scoped_ptr.h" |
#include "base/timer.h" |
+#include "chrome/browser/chromeos/login/user_image.h" |
+#include "chrome/browser/chromeos/login/user_image_loader.h" |
#include "chrome/browser/chromeos/power/resume_observer.h" |
#include "chrome/browser/chromeos/system/timezone_settings.h" |
#include "unicode/timezone.h" |
@@ -35,6 +39,11 @@ class WallpaperManager: public system::TimezoneSettings::Observer, |
// Cancel any previous timer if any. |
void RestartTimer(); |
+ // Sets wallpaper to the image file |path| points to. |
+ void SetWallpaperFromFile(std::string email, |
+ const std::string& path, |
+ ash::WallpaperLayout layout); |
+ |
private: |
virtual ~WallpaperManager(); |
@@ -44,11 +53,18 @@ class WallpaperManager: public system::TimezoneSettings::Observer, |
// Overridden from chromeos::ResumeObserver |
virtual void SystemResumed() OVERRIDE; |
+ void OnCustomWallpaperLoaded(const std::string& email, |
+ ash::WallpaperLayout layout, |
+ const UserImage& user_image); |
+ |
// Change the wallpapers for users who choose DAILY wallpaper type. Updates |
// current wallpaper if it changed. This function should be called at exactly |
// at 0am if chromeos device is on. |
void BatchUpdateWallpaper(); |
+ // Loads user image from its file. |
+ scoped_refptr<UserImageLoader> image_loader_; |
+ |
// The last selected user on user pod row. |
std::string last_selected_user_; |