| 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 #ifndef UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ | 5 #ifndef UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ |
| 6 #define UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ | 6 #define UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ |
| 7 | 7 |
| 8 namespace views { | 8 namespace views { |
| 9 | 9 |
| 10 // The different states that the ink drop animation can be animated to. | 10 // The different states that the ink drop animation can be animated to. |
| 11 // |
| 12 // Note: The order of this matters for some constant look up arrays. (e.g. |
| 13 // kAnimationDurationsMs in ink_drop_animation.cc) |
| 11 enum class InkDropState { | 14 enum class InkDropState { |
| 12 // The ink drop is not visible. | 15 // The ink drop is not visible. |
| 13 HIDDEN, | 16 HIDDEN, |
| 14 // The view is being interacted with but the action to be triggered has not | 17 // The view is being interacted with but the action to be triggered has not |
| 15 // yet been determined. | 18 // yet been determined. |
| 16 ACTION_PENDING, | 19 ACTION_PENDING, |
| 17 // The quick action for the view has been triggered. e.g. A tap gesture to | 20 // The quick action for the view has been triggered. e.g. A tap gesture to |
| 18 // click a button. | 21 // click a button. |
| 19 QUICK_ACTION, | 22 QUICK_ACTION, |
| 20 // The slow action for the view has been triggered. e.g. A long press to bring | 23 // A view is being interacted with and the pending action will be a 'slow' |
| 21 // up a menu. | 24 // action. e.g. A long press that is still active before releasing. |
| 25 SLOW_ACTION_PENDING, |
| 26 // The slow action for the view has been triggered. e.g. A long press release |
| 27 // to bring up a menu. |
| 22 SLOW_ACTION, | 28 SLOW_ACTION, |
| 23 // An active state for a view that is no longer being interacted with. e.g. A | 29 // An active state for a view that is not currently being interacted with. |
| 24 // pressed button that is showing a menu. | 30 // e.g. A pressed button that is showing a menu. |
| 25 ACTIVATED | 31 ACTIVATED, |
| 32 // A previously active state has been toggled to inactive. e.g. A drop down |
| 33 // menu is closed. |
| 34 DEACTIVATED, |
| 35 // Number of ink drop states. NOT an actual ink drop state. |
| 36 COUNT, |
| 26 }; | 37 }; |
| 27 | 38 |
| 28 } // namespace views | 39 } // namespace views |
| 29 | 40 |
| 30 #endif // UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ | 41 #endif // UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ |
| OLD | NEW |