Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7)

Side by Side Diff: ash/public/cpp/ash_pref_names.cc

Issue 2887913004: [Night Light] CL4: Automatic schedule backend. (Closed)
Patch Set: Nits Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/public/cpp/ash_pref_names.h ('k') | ash/system/night_light/night_light_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "ash/public/cpp/ash_pref_names.h" 5 #include "ash/public/cpp/ash_pref_names.h"
6 6
7 namespace ash { 7 namespace ash {
8 8
9 namespace prefs { 9 namespace prefs {
10 10
11 // A boolean pref storing the enabled status of the NightLight feature. 11 // A boolean pref storing the enabled status of the NightLight feature.
12 const char kNightLightEnabled[] = "ash.night_light.enabled"; 12 const char kNightLightEnabled[] = "ash.night_light.enabled";
13 13
14 // A double pref storing the screen color temperature set by the NightLight 14 // A double pref storing the screen color temperature set by the NightLight
15 // feature. The expected values are in the range of 0.0 (least warm) and 1.0 15 // feature. The expected values are in the range of 0.0 (least warm) and 1.0
16 // (most warm). 16 // (most warm).
17 const char kNightLightTemperature[] = "ash.night_light.color_temperature"; 17 const char kNightLightTemperature[] = "ash.night_light.color_temperature";
18 18
19 // An integer pref storing the type of automatic scheduling of turning on and
20 // off the NightLight feature. Valid values are:
21 // 0 -> NightLight is never turned on or off automatically.
22 // 1 -> NightLight is turned on and off at the sunset and sunrise times
23 // respectively.
24 // 2 -> NightLight schedule times are explicitly set by the user.
25 //
26 // See ash::NightLightController::ScheduleType.
27 const char kNightLightScheduleType[] = "ash.night_light.schedule_type";
28
29 // Integer prefs storing the start and end times of the automatic schedule at
30 // which NightLight turns on and off respectively when the schedule type is set
31 // to a custom schedule. The times are represented as the number of minutes from
32 // 00:00 (12:00 AM) regardless of the date or the timezone.
33 // See ash::TimeOfDayTime.
34 const char kNightLightCustomStartTime[] = "ash.night_light.custom_start_time";
35 const char kNightLightCustomEndTime[] = "ash.night_light.custom_end_time";
36
19 } // namespace prefs 37 } // namespace prefs
20 38
21 } // namespace ash 39 } // namespace ash
OLDNEW
« no previous file with comments | « ash/public/cpp/ash_pref_names.h ('k') | ash/system/night_light/night_light_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698