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

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

Issue 2887913004: [Night Light] CL4: Automatic schedule backend. (Closed)
Patch Set: Working Created 3 years, 7 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
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 is customly set by the user.
James Cook 2017/05/23 16:34:57 super-nit: "is custom set" or "are explicitly set"
afakhry 2017/05/24 04:21:09 Done.
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::NightLightTime.
James Cook 2017/05/23 16:34:57 Nice docs for the prefs, btw.
afakhry 2017/05/24 04:21:09 Thanks!
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

Powered by Google App Engine
This is Rietveld 408576698