ink_drop_animation_ended_reason.cc 668 B

12345678910111213141516171819202122232425
  1. // Copyright 2016 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 "ui/views/animation/ink_drop_animation_ended_reason.h"
  5. #include <ostream>
  6. #include "base/notreached.h"
  7. namespace views {
  8. std::string ToString(InkDropAnimationEndedReason reason) {
  9. switch (reason) {
  10. case InkDropAnimationEndedReason::SUCCESS:
  11. return "SUCCESS";
  12. case InkDropAnimationEndedReason::PRE_EMPTED:
  13. return "PRE_EMPTED";
  14. }
  15. NOTREACHED()
  16. << "Should never be reached but is necessary for some compilers.";
  17. return std::string();
  18. }
  19. } // namespace views