Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: ui/views/animation/ink_drop_state.h

Issue 1832963002: MD - add ripples to DL shelf items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix another TODO Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/views/animation/ink_drop_animation_unittest.cc ('k') | ui/views/animation/ink_drop_state.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_animation_unittest.cc ('k') | ui/views/animation/ink_drop_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698