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

Unified Diff: ash/desktop_background/desktop_background_controller.cc

Issue 10883062: Resize and save custom wallpaper to large and small size (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: ash/desktop_background/desktop_background_controller.cc
diff --git a/ash/desktop_background/desktop_background_controller.cc b/ash/desktop_background/desktop_background_controller.cc
index 83b486c4808ea4692a786d0f352ccc178be46ea8..a48f9dc1c5df47ca6d86c95d24470be9cf91022e 100644
--- a/ash/desktop_background/desktop_background_controller.cc
+++ b/ash/desktop_background/desktop_background_controller.cc
@@ -26,8 +26,6 @@
namespace ash {
namespace {
-const int kSmallWallpaperMaximalWidth = 1366;
-const int kSmallWallpaperMaximalHeight = 800;
const SkColor kTransparentColor = SkColorSetARGB(0x00, 0x00, 0x00, 0x00);
internal::RootWindowLayoutManager* GetRootWindowLayoutManager(
@@ -37,6 +35,11 @@ internal::RootWindowLayoutManager* GetRootWindowLayoutManager(
}
} // namespace
+const int kSmallWallpaperMaximalWidth = 1366;
Ivan Korotkov 2012/08/28 16:16:13 For consistency with other constants, maybe use Ma
bshe 2012/08/29 14:30:07 Done.
+const int kSmallWallpaperMaximalHeight = 800;
+const int kLargeWallpaperMaximalWidth = 2560;
+const int kLargeWallpaperMaximalHeight = 1700;
+
// Stores the current wallpaper data.
struct DesktopBackgroundController::WallpaperData {
WallpaperData(int index, WallpaperResolution resolution)

Powered by Google App Engine
This is Rietveld 408576698