summaryrefslogtreecommitdiff
path: root/chromium/components/wallpaper/wallpaper_layout.h
blob: edcee323f5bcf0bf90cb32485e5fa62b9c2aad12 (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
// Copyright 2014 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 COMPONENTS_WALLPAPER_WALLPAPER_LAYOUT_H_
#define COMPONENTS_WALLPAPER_WALLPAPER_LAYOUT_H_

namespace wallpaper {

// This enum is used to back a histogram, and should therefore be treated as
// append-only.
enum WallpaperLayout {
  // Center the wallpaper on the desktop without scaling it. The wallpaper
  // may be cropped.
  WALLPAPER_LAYOUT_CENTER,
  // Scale the wallpaper (while preserving its aspect ratio) to cover the
  // desktop; the wallpaper may be cropped.
  WALLPAPER_LAYOUT_CENTER_CROPPED,
  // Scale the wallpaper (without preserving its aspect ratio) to match the
  // desktop's size.
  WALLPAPER_LAYOUT_STRETCH,
  // Tile the wallpaper over the background without scaling it.
  WALLPAPER_LAYOUT_TILE,
  NUM_WALLPAPER_LAYOUT,
};

}  // namespace wallpaper
#endif  // COMPONENTS_WALLPAPER_WALLPAPER_LAYOUT_H_