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

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

Issue 1832963002: MD - add ripples to DL shelf items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates after bruthig chat 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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_FLOOD_FILL_INK_DROP_ANIMATION_H_ 5 #ifndef UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_ANIMATION_H_
6 #define UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_ANIMATION_H_ 6 #define UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_ANIMATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 class FloodFillInkDropAnimationTestApi; 33 class FloodFillInkDropAnimationTestApi;
34 } // namespace test 34 } // namespace test
35 35
36 // An ink drop animation that starts as a small circle and flood fills a 36 // An ink drop animation that starts as a small circle and flood fills a
37 // rectangle of the given size. The circle is clipped to the rectangles bounds. 37 // rectangle of the given size. The circle is clipped to the rectangles bounds.
38 // 38 //
39 // The valid InkDropState transitions are defined below: 39 // The valid InkDropState transitions are defined below:
40 // 40 //
41 // {All InkDropStates} => HIDDEN 41 // {All InkDropStates} => HIDDEN
42 // HIDDEN => ACTION_PENDING 42 // HIDDEN => ACTION_PENDING
43 // HIDDEN, ACTION_PENDING => QUICK_ACTION 43 // HIDDEN, ACTION_PENDING => ACTION_TRIGGERED
44 // ACTION_PENDING => SLOW_ACTION_PENDING 44 // ACTION_PENDING => ALTERNATE_ACTION_PENDING
45 // SLOW_ACTION_PENDING => SLOW_ACTION 45 // ALTERNATE_ACTION_PENDING => ALTERNATE_ACTION_TRIGGERED
46 // {All InkDropStates} => ACTIVATED 46 // {All InkDropStates} => ACTIVATED
47 // {All InkDropStates} => DEACTIVATED 47 // {All InkDropStates} => DEACTIVATED
48 // 48 //
49 class VIEWS_EXPORT FloodFillInkDropAnimation : public InkDropAnimation { 49 class VIEWS_EXPORT FloodFillInkDropAnimation : public InkDropAnimation {
50 public: 50 public:
51 FloodFillInkDropAnimation(const gfx::Size& size, 51 FloodFillInkDropAnimation(const gfx::Size& size,
52 const gfx::Point& center_point, 52 const gfx::Point& center_point,
53 SkColor color); 53 SkColor color);
54 ~FloodFillInkDropAnimation() override; 54 ~FloodFillInkDropAnimation() override;
55 55
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // The current ink drop state. 122 // The current ink drop state.
123 InkDropState ink_drop_state_; 123 InkDropState ink_drop_state_;
124 124
125 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropAnimation); 125 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropAnimation);
126 }; 126 };
127 127
128 } // namespace views 128 } // namespace views
129 129
130 #endif // UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_ANIMATION_H_ 130 #endif // UI_VIEWS_ANIMATION_FLOOD_FILL_INK_DROP_ANIMATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698