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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
ash / public / cpp / ambient / ambient_prefs.cc [blame]
// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ash/public/cpp/ambient/ambient_prefs.h"
namespace ash {
namespace ambient {
namespace prefs {
// Unfortunately, this used to be referred to as "ambient animation theme" all
// throughout the code until it became clear that every theme in ambient
// mode would not be implemented as an animation. Since this name is persisted
// in pref service and it's not trivial to migrate it to a different name, its
// string literal has not been changed to keep backwards compatibility. However,
// all references to this concept in the code now use the more generic "ambient
// theme".
constexpr char kAmbientTheme[] = "ash.ambient.animation_theme";
constexpr char kAmbientUiSettings[] = "ash.ambient.ui_settings";
constexpr char kAmbientUiSettingsFieldTheme[] = "theme";
constexpr char kAmbientUiSettingsFieldVideo[] = "video";
constexpr char kAmbientBackdropClientId[] = "ash.ambient.backdrop.client.id";
constexpr char kAmbientModeEnabled[] = "settings.ambient_mode.enabled";
constexpr char kAmbientModePhotoSourcePref[] =
"settings.ambient_mode.photo_source_enum";
constexpr char kAmbientModeLockScreenInactivityTimeoutSeconds[] =
"ash.ambient.lock_screen_idle_timeout";
constexpr char kAmbientModeLockScreenBackgroundTimeoutSeconds[] =
"ash.ambient.lock_screen_background_timeout";
constexpr char kAmbientModeAnimationPlaybackSpeed[] =
"ash.ambient.animation_playback_speed";
constexpr char kAmbientModePhotoRefreshIntervalSeconds[] =
"ash.ambient.photo_refresh_interval";
constexpr char kAmbientModeManagedScreensaverEnabled[] =
"ash.ambient.managed_screensaver.enabled";
constexpr char kAmbientModeManagedScreensaverIdleTimeoutSeconds[] =
"ash.ambient.managed_screensaver.idle_timeout_seconds";
constexpr char kAmbientModeManagedScreensaverImageDisplayIntervalSeconds[] =
"ash.ambient.managed_screensaver.image_display_interval_seconds";
constexpr char kAmbientModeManagedScreensaverImages[] =
"ash.ambient.managed_screensaver.images";
constexpr char kAmbientModeRunningDurationMinutes[] =
"ash.ambient.screensaver_duration_minutes";
} // namespace prefs
} // namespace ambient
} // namespace ash