| 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 c7b75c755dddab583d6878f2a0270b7c16eaca01..a4e7ac597ee2f3530107f6df5389db971cb881ac 100644
|
| --- a/chrome/browser/chromeos/login/wallpaper_manager.h
|
| +++ b/chrome/browser/chromeos/login/wallpaper_manager.h
|
| @@ -128,6 +128,13 @@ class WallpaperManager: public system::TimezoneSettings::Observer,
|
| void RemoveUserWallpaperInfo(const std::string& email);
|
|
|
| // Resizes |wallpaper| to a resolution which is nearest to |preferred_width|
|
| + // and |preferred_height| while maintaining aspect ratio.
|
| + std::string ResizeWallpaper(const UserImage& wallpaper,
|
| + ash::WallpaperLayout layout,
|
| + int preferred_width,
|
| + int preferred_height);
|
| +
|
| + // Resizes |wallpaper| to a resolution which is nearest to |preferred_width|
|
| // and |preferred_height| while maintaining aspect ratio. And saves the
|
| // resized wallpaper to |path|.
|
| void ResizeAndSaveWallpaper(const UserImage& wallpaper,
|
| @@ -205,6 +212,9 @@ class WallpaperManager: public system::TimezoneSettings::Observer,
|
| // Clears all obsolete wallpaper prefs from old version wallpaper pickers.
|
| void ClearObsoleteWallpaperPrefs();
|
|
|
| + // Deletes everything else except |path| in the same directory.
|
| + void DeleteAllExcept(const base::FilePath& path);
|
| +
|
| // Deletes a list of wallpaper files in |file_list|.
|
| void DeleteWallpaperInList(const std::vector<base::FilePath>& file_list);
|
|
|
|
|