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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/public/cpp/ash_pref_names.cc
diff --git a/ash/public/cpp/ash_pref_names.cc b/ash/public/cpp/ash_pref_names.cc
index 1cb9e58506750f41cdf310fad44c71e331a92196..683f3780e2f15d66e386d82014a835c5602995ab 100644
--- a/ash/public/cpp/ash_pref_names.cc
+++ b/ash/public/cpp/ash_pref_names.cc
@@ -16,6 +16,24 @@ const char kNightLightEnabled[] = "ash.night_light.enabled";
// (most warm).
const char kNightLightTemperature[] = "ash.night_light.color_temperature";
+// An integer pref storing the type of automatic scheduling of turning on and
+// off the NightLight feature. Valid values are:
+// 0 -> NightLight is never turned on or off automatically.
+// 1 -> NightLight is turned on and off at the sunset and sunrise times
+// respectively.
+// 2 -> NightLight schedule times are explicitly set by the user.
+//
+// See ash::NightLightController::ScheduleType.
+const char kNightLightScheduleType[] = "ash.night_light.schedule_type";
+
+// Integer prefs storing the start and end times of the automatic schedule at
+// which NightLight turns on and off respectively when the schedule type is set
+// to a custom schedule. The times are represented as the number of minutes from
+// 00:00 (12:00 AM) regardless of the date or the timezone.
+// See ash::TimeOfDayTime.
+const char kNightLightCustomStartTime[] = "ash.night_light.custom_start_time";
+const char kNightLightCustomEndTime[] = "ash.night_light.custom_end_time";
+
} // namespace prefs
} // namespace ash
« 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