| 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 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| 11 | 11 |
| 12 namespace views { | 12 namespace views { |
| 13 | 13 |
| 14 // The different states that the ink drop animation can be animated to. | 14 // The different states that the ink drop animation can be animated to. |
| 15 enum class InkDropState { | 15 enum class InkDropState { |
| 16 // The ink drop is not visible. | 16 // The ink drop is not visible. |
| 17 HIDDEN, | 17 HIDDEN, |
| 18 // The view is being interacted with but the action to be triggered has not | 18 // The view is being interacted with but the action to be triggered has not |
| 19 // yet been determined. | 19 // yet been determined, e.g. a mouse button down. |
| 20 ACTION_PENDING, | 20 ACTION_PENDING, |
| 21 // The quick action for the view has been triggered. e.g. a tap gesture to | 21 // The quick action for the view has been triggered, e.g. a tap gesture or a |
| 22 // click a button. | 22 // mouse click on a button. |
| 23 QUICK_ACTION, | 23 ACTION_TRIGGERED, |
| 24 // A view is being interacted with and the pending action will be a 'slow' | 24 // A view is being interacted with and the pending action will be a secondary |
| 25 // action. e.g. a long press that is still active before releasing. | 25 // action, e.g. a long press. |
| 26 SLOW_ACTION_PENDING, | 26 ALTERNATE_ACTION_PENDING, |
| 27 // The slow action for the view has been triggered. e.g. a long press release | 27 // The alternate action for the view has been triggered, e.g. a long press |
| 28 // to bring up a menu. | 28 // release to bring up a menu. |
| 29 SLOW_ACTION, | 29 ALTERNATE_ACTION_TRIGGERED, |
| 30 // An active state for a view that is not currently being interacted with. | 30 // An active state for a view that is not currently being interacted with. |
| 31 // e.g. a pressed button that is showing a menu. | 31 // e.g. a pressed button that is showing a menu. |
| 32 ACTIVATED, | 32 ACTIVATED, |
| 33 // A previously active state has been toggled to inactive. e.g. a drop down | 33 // A previously active state has been toggled to inactive, e.g. a drop down |
| 34 // menu is closed. | 34 // menu is closed. |
| 35 DEACTIVATED, | 35 DEACTIVATED, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // Returns a human readable string for |state|. Useful for logging. | 38 // Returns a human readable string for |state|. Useful for logging. |
| 39 std::string ToString(InkDropState state); | 39 std::string ToString(InkDropState state); |
| 40 | 40 |
| 41 } // namespace views | 41 } // namespace views |
| 42 | 42 |
| 43 #endif // UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ | 43 #endif // UI_VIEWS_ANIMATION_INK_DROP_STATE_H_ |
| OLD | NEW |