OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/animation/ink_drop_state.h" | 5 #include "ui/views/animation/ink_drop_state.h" |
6 | 6 |
7 #include <iostream> | |
8 #include <string> | 7 #include <string> |
9 | 8 |
10 #include "base/logging.h" | 9 #include "base/logging.h" |
11 | 10 |
12 namespace views { | 11 namespace views { |
13 | 12 |
14 std::string ToString(InkDropState state) { | 13 std::string ToString(InkDropState state) { |
15 switch (state) { | 14 switch (state) { |
16 case InkDropState::HIDDEN: | 15 case InkDropState::HIDDEN: |
17 return std::string("HIDDEN"); | 16 return std::string("HIDDEN"); |
18 case InkDropState::ACTION_PENDING: | 17 case InkDropState::ACTION_PENDING: |
19 return std::string("ACTION_PENDING"); | 18 return std::string("ACTION_PENDING"); |
20 case InkDropState::QUICK_ACTION: | 19 case InkDropState::QUICK_ACTION: |
21 return std::string("QUICK_ACTION"); | 20 return std::string("QUICK_ACTION"); |
22 case InkDropState::SLOW_ACTION_PENDING: | 21 case InkDropState::SLOW_ACTION_PENDING: |
23 return std::string("SLOW_ACTION_PENDING"); | 22 return std::string("SLOW_ACTION_PENDING"); |
24 case InkDropState::SLOW_ACTION: | 23 case InkDropState::SLOW_ACTION: |
25 return std::string("SLOW_ACTION"); | 24 return std::string("SLOW_ACTION"); |
26 case InkDropState::ACTIVATED: | 25 case InkDropState::ACTIVATED: |
27 return std::string("ACTIVATED"); | 26 return std::string("ACTIVATED"); |
28 case InkDropState::DEACTIVATED: | 27 case InkDropState::DEACTIVATED: |
29 return std::string("DEACTIVATED"); | 28 return std::string("DEACTIVATED"); |
30 } | 29 } |
31 NOTREACHED() | 30 NOTREACHED() |
32 << "Should never be reached but is necessary for some compilers."; | 31 << "Should never be reached but is necessary for some compilers."; |
33 return std::string("UNKNOWN"); | 32 return std::string("UNKNOWN"); |
34 } | 33 } |
35 | 34 |
36 } // namespace views | 35 } // namespace views |
OLD | NEW |