[Sync] Componentize UIModelWorker.
[chromium-blink-merge.git] / components / wallpaper / wallpaper_layout.h
blobedcee323f5bcf0bf90cb32485e5fa62b9c2aad12
1 // Copyright 2014 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.
5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_LAYOUT_H_
6 #define COMPONENTS_WALLPAPER_WALLPAPER_LAYOUT_H_
8 namespace wallpaper {
10 // This enum is used to back a histogram, and should therefore be treated as
11 // append-only.
12 enum WallpaperLayout {
13 // Center the wallpaper on the desktop without scaling it. The wallpaper
14 // may be cropped.
15 WALLPAPER_LAYOUT_CENTER,
16 // Scale the wallpaper (while preserving its aspect ratio) to cover the
17 // desktop; the wallpaper may be cropped.
18 WALLPAPER_LAYOUT_CENTER_CROPPED,
19 // Scale the wallpaper (without preserving its aspect ratio) to match the
20 // desktop's size.
21 WALLPAPER_LAYOUT_STRETCH,
22 // Tile the wallpaper over the background without scaling it.
23 WALLPAPER_LAYOUT_TILE,
24 NUM_WALLPAPER_LAYOUT,
27 } // namespace wallpaper
28 #endif // COMPONENTS_WALLPAPER_WALLPAPER_LAYOUT_H_