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

Unified Diff: ash/desktop_background/desktop_background_resources.h

Issue 10837089: Use low resolution wallpaper for small screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review 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_resources.h
diff --git a/ash/desktop_background/desktop_background_resources.h b/ash/desktop_background/desktop_background_resources.h
index 54cdf55eed7fcf991c3af575bfcb8c67352e4609..f9c99b5914f835ba2f7ecadb8bd5864e8102d5c1 100644
--- a/ash/desktop_background/desktop_background_resources.h
+++ b/ash/desktop_background/desktop_background_resources.h
@@ -19,10 +19,21 @@ enum WallpaperLayout {
TILE,
};
-struct ASH_EXPORT WallpaperInfo {
+enum WallpaperResolution {
+ LARGE,
+ SMALL
+};
+
+// Encapsulates wallpaper infomation needed by desktop background view.
+struct ASH_EXPORT WallpaperViewInfo {
int id;
- int thumb_id;
WallpaperLayout layout;
+};
+
+struct ASH_EXPORT WallpaperInfo {
+ WallpaperViewInfo large;
+ WallpaperViewInfo small;
+ int thumb_id;
// TODO(bshe): author member should be encoded to UTF16. We need to use i18n
// string for this member after M19.
const char* author;
@@ -39,6 +50,8 @@ ASH_EXPORT int GetNextWallpaperIndex(int index);
ASH_EXPORT int GetSolidColorIndex();
ASH_EXPORT int GetWallpaperCount();
ASH_EXPORT const WallpaperInfo& GetWallpaperInfo(int index);
+ASH_EXPORT const WallpaperViewInfo& GetWallpaperViewInfo(int index,
+ WallpaperResolution resolution);
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698