ambient_animation_theme.cc 726 B

1234567891011121314151617181920212223
  1. // Copyright 2021 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. #include "ash/constants/ambient_animation_theme.h"
  5. namespace ash {
  6. base::StringPiece ToString(AmbientAnimationTheme theme) {
  7. // See the "AmbientModeThemes" <variants> tag in histograms.xml. These names
  8. // are currently used for metrics purposes, so they cannot be arbitrarily
  9. // renamed.
  10. switch (theme) {
  11. case AmbientAnimationTheme::kSlideshow:
  12. return "SlideShow";
  13. case AmbientAnimationTheme::kFeelTheBreeze:
  14. return "FeelTheBreeze";
  15. case AmbientAnimationTheme::kFloatOnBy:
  16. return "FloatOnBy";
  17. }
  18. }
  19. } // namespace ash