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

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

Issue 12334030: New custom wallpaper picker UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add bug reference Created 7 years, 9 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/wallpaper_manager.h
diff --git a/chrome/browser/chromeos/login/wallpaper_manager.h b/chrome/browser/chromeos/login/wallpaper_manager.h
index c7b75c755dddab583d6878f2a0270b7c16eaca01..882bcc479db16f7bc0130fc4670a926c6e52a01d 100644
--- a/chrome/browser/chromeos/login/wallpaper_manager.h
+++ b/chrome/browser/chromeos/login/wallpaper_manager.h
@@ -128,6 +128,14 @@ 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.
+ bool ResizeWallpaper(const UserImage& wallpaper,
+ ash::WallpaperLayout layout,
+ int preferred_width,
+ int preferred_height,
+ scoped_refptr<base::RefCountedBytes>* output);
+
+ // 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 +213,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);
« no previous file with comments | « chrome/browser/chromeos/extensions/wallpaper_private_api.cc ('k') | chrome/browser/chromeos/login/wallpaper_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698