summaryrefslogtreecommitdiffstats
path: root/ash/desktop_background/desktop_background_resources.h
blob: 0fde38e06afb01b89d62e2bd9cf5c357f7680f7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_
#define ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_

#include "ash/ash_export.h"

class SkBitmap;

namespace ash {

enum ImageLayout {
  CENTER,
  CENTER_CROPPED,
  STRETCH,
  TILE,
};

struct ASH_EXPORT WallpaperInfo {
  int id;
  int thumb_id;
  ImageLayout layout;
  // TODO(bshe): author member should be encoded to UTF16. We need to use i18n
  // string for this member after M19.
  const char* author;
  const char* website;
};

ASH_EXPORT int GetDefaultWallpaperIndex();
ASH_EXPORT int GetGuestWallpaperIndex();
ASH_EXPORT int GetWallpaperCount();
ASH_EXPORT const SkBitmap& GetWallpaper(int index);
ASH_EXPORT const SkBitmap& GetWallpaperThumbnail(int index);
ASH_EXPORT const WallpaperInfo& GetWallpaperInfo(int index);

}  // namespace ash

#endif  // ASH_DESKTOP_BACKGROUND_DESKTOP_BACKGROUND_RESOURCES_H_