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

Side by Side Diff: ash/desktop_background/desktop_background_resources.h

Issue 11415015: Remove use of index in wallpaper picker code and some refactor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix browser tests Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_
6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_
7
8 #include <string>
9
10 #include "ash/ash_export.h"
11 #include "third_party/skia/include/core/SkColor.h"
12
13 namespace ash {
14
15 enum WallpaperLayout {
16 CENTER,
17 CENTER_CROPPED,
18 STRETCH,
19 TILE,
20 };
21
22 enum WallpaperResolution {
23 LARGE,
24 SMALL
25 };
26
27 // Encapsulates wallpaper infomation needed by desktop background view.
28 struct ASH_EXPORT WallpaperViewInfo {
29 int id;
30 WallpaperLayout layout;
31 };
32
33 struct ASH_EXPORT WallpaperInfo {
34 WallpaperViewInfo large_wallpaper;
35 WallpaperViewInfo small_wallpaper;
36 };
37
38 const SkColor kLoginWallpaperColor = 0xFEFEFE;
39
40 ASH_EXPORT int GetDefaultWallpaperIndex();
41 ASH_EXPORT int GetGuestWallpaperIndex();
42 ASH_EXPORT int GetInvalidWallpaperIndex();
43 ASH_EXPORT WallpaperLayout GetLayoutEnum(const std::string& layout);
44 ASH_EXPORT int GetSolidColorIndex();
45 ASH_EXPORT int GetWallpaperCount();
46 ASH_EXPORT const WallpaperInfo& GetWallpaperInfo(int index);
47 ASH_EXPORT const WallpaperViewInfo& GetWallpaperViewInfo(int index,
48 WallpaperResolution resolution);
49
50 } // namespace ash
51
52 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_
OLDNEW
« no previous file with comments | « ash/desktop_background/desktop_background_controller.cc ('k') | ash/desktop_background/desktop_background_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698