Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 5 #include "ui/views/animation/ink_drop_animation_ended_reason.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 namespace views { | |
| 10 | |
| 11 std::string ToString(InkDropAnimationEndedReason reason) { | |
| 12 switch (reason) { | |
| 13 case InkDropAnimationEndedReason::SUCCESS: | |
| 14 return "SUCCESS"; | |
| 15 case InkDropAnimationEndedReason::PRE_EMPTED: | |
| 16 return "PRE_EMPTED"; | |
| 17 } | |
| 18 NOTREACHED() | |
| 19 << "Should never be reached but is necessary for some compilers."; | |
| 20 return ""; | |
|
sky
2016/04/21 20:19:06
nit: "" -> std::string()
bruthig
2016/04/21 21:13:22
Done.
| |
| 21 } | |
| 22 | |
| 23 } // namespace views | |
| OLD | NEW |