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

Unified 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 side-by-side diff with in-line comments
Download patch
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..3dd22d95d63b20c1adbc861f6b53b0e8a7bb807d 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 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.
+//
+// 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::NightLightTime.
James Cook 2017/05/23 16:34:57 Nice docs for the prefs, btw.
afakhry 2017/05/24 04:21:09 Thanks!
+const char kNightLightCustomStartTime[] = "ash.night_light.custom_start_time";
+const char kNightLightCustomEndTime[] = "ash.night_light.custom_end_time";
+
} // namespace prefs
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698