schedule_enums.h 964 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_PUBLIC_CPP_SCHEDULE_ENUMS_H_
  5. #define ASH_PUBLIC_CPP_SCHEDULE_ENUMS_H_
  6. namespace ash {
  7. // These values are written to logs. New enum values can be added, but
  8. // existing enums must never be renumbered or deleted and reused.
  9. enum class ScheduleType {
  10. // Automatic toggling of ScheduledFeature is turned off.
  11. kNone = 0,
  12. // ScheduledFeature is turned automatically on at the user's local sunset
  13. // time, and off at the user's local sunrise time.
  14. kSunsetToSunrise = 1,
  15. // ScheduledFeature is toggled automatically based on the custom set start
  16. // and end times selected by the user from the system settings.
  17. kCustom = 2,
  18. // kMaxValue is required for UMA_HISTOGRAM_ENUMERATION.
  19. kMaxValue = kCustom,
  20. };
  21. } // namespace ash
  22. #endif // ASH_PUBLIC_CPP_SCHEDULE_ENUMS_H_