OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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_state.h" |
| 6 |
| 7 #include <iostream> |
| 8 |
| 9 #include "base/logging.h" |
| 10 |
| 11 namespace views { |
| 12 |
| 13 std::ostream& operator<<(std::ostream& out, InkDropState state) { |
| 14 switch (state) { |
| 15 case InkDropState::HIDDEN: |
| 16 return out << "HIDDEN"; |
| 17 case InkDropState::ACTION_PENDING: |
| 18 return out << "ACTION_PENDING"; |
| 19 case InkDropState::QUICK_ACTION: |
| 20 return out << "QUICK_ACTION"; |
| 21 case InkDropState::SLOW_ACTION_PENDING: |
| 22 return out << "SLOW_ACTION_PENDING"; |
| 23 case InkDropState::SLOW_ACTION: |
| 24 return out << "SLOW_ACTION"; |
| 25 case InkDropState::ACTIVATED: |
| 26 return out << "ACTIVATED"; |
| 27 case InkDropState::DEACTIVATED: |
| 28 return out << "DEACTIVATED"; |
| 29 } |
| 30 NOTREACHED() |
| 31 << "Should never be reached but is necessary for some compilers."; |
| 32 return out << "UNKNOWN"; |
| 33 } |
| 34 |
| 35 } // namespace views |
OLD | NEW |