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 #ifndef UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_ |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 namespace views { |
| 11 |
| 12 // Enumeration of the different reasons why an ink drop animation has finished. |
| 13 enum class InkDropAnimationEndedReason { |
| 14 // The animation was completed successfully. |
| 15 SUCCESS, |
| 16 // The animation was stopped prematurely before reaching its final state. |
| 17 PRE_EMPTED |
| 18 }; |
| 19 |
| 20 // Returns a human readable string for |reason|. Useful for logging. |
| 21 std::string ToString(InkDropAnimationEndedReason reason); |
| 22 |
| 23 } // namespace views |
| 24 |
| 25 #endif // UI_VIEWS_ANIMATION_INK_DROP_ANIMATION_ENDED_REASON_H_ |
OLD | NEW |