| OLD | NEW |
| (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_ | |
| OLD | NEW |