| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_ | 5 #ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_ |
| 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_ | 6 #define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "third_party/skia/include/core/SkColor.h" |
| 9 | 10 |
| 10 namespace ash { | 11 namespace ash { |
| 11 | 12 |
| 12 enum WallpaperLayout { | 13 enum WallpaperLayout { |
| 13 CENTER, | 14 CENTER, |
| 14 CENTER_CROPPED, | 15 CENTER_CROPPED, |
| 15 STRETCH, | 16 STRETCH, |
| 16 TILE, | 17 TILE, |
| 17 }; | 18 }; |
| 18 | 19 |
| 19 struct ASH_EXPORT WallpaperInfo { | 20 struct ASH_EXPORT WallpaperInfo { |
| 20 int id; | 21 int id; |
| 21 int thumb_id; | 22 int thumb_id; |
| 22 WallpaperLayout layout; | 23 WallpaperLayout layout; |
| 23 // TODO(bshe): author member should be encoded to UTF16. We need to use i18n | 24 // TODO(bshe): author member should be encoded to UTF16. We need to use i18n |
| 24 // string for this member after M19. | 25 // string for this member after M19. |
| 25 const char* author; | 26 const char* author; |
| 26 const char* website; | 27 const char* website; |
| 27 }; | 28 }; |
| 28 | 29 |
| 30 const SkColor kLoginWallpaperColor = 0xFEFEFE; |
| 31 |
| 32 ASH_EXPORT int GetSolidColorIndex(); |
| 29 ASH_EXPORT int GetInvalidWallpaperIndex(); | 33 ASH_EXPORT int GetInvalidWallpaperIndex(); |
| 30 ASH_EXPORT int GetDefaultWallpaperIndex(); | 34 ASH_EXPORT int GetDefaultWallpaperIndex(); |
| 31 ASH_EXPORT int GetGuestWallpaperIndex(); | 35 ASH_EXPORT int GetGuestWallpaperIndex(); |
| 32 ASH_EXPORT int GetRandomWallpaperIndex(); | 36 ASH_EXPORT int GetRandomWallpaperIndex(); |
| 33 ASH_EXPORT int GetWallpaperCount(); | 37 ASH_EXPORT int GetWallpaperCount(); |
| 34 ASH_EXPORT const WallpaperInfo& GetWallpaperInfo(int index); | 38 ASH_EXPORT const WallpaperInfo& GetWallpaperInfo(int index); |
| 35 | 39 |
| 36 } // namespace ash | 40 } // namespace ash |
| 37 | 41 |
| 38 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_ | 42 #endif // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_ |
| OLD | NEW |