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

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

Issue 2250783002: Allow InkDropRipple to co-exist with highlight (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove EmptyInkDropRipple Created 4 years, 3 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_ripple.cc ('k') | ui/views/animation/square_ink_drop_ripple.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 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_SQUARE_INK_DROP_RIPPLE_H_ 5 #ifndef UI_VIEWS_ANIMATION_SQUARE_INK_DROP_RIPPLE_H_
6 #define UI_VIEWS_ANIMATION_SQUARE_INK_DROP_RIPPLE_H_ 6 #define UI_VIEWS_ANIMATION_SQUARE_INK_DROP_RIPPLE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const gfx::Point& center_point, 60 const gfx::Point& center_point,
61 SkColor color, 61 SkColor color,
62 float visible_opacity); 62 float visible_opacity);
63 ~SquareInkDropRipple() override; 63 ~SquareInkDropRipple() override;
64 64
65 void set_activated_shape(ActivatedShape shape) { activated_shape_ = shape; } 65 void set_activated_shape(ActivatedShape shape) { activated_shape_ = shape; }
66 66
67 // InkDropRipple: 67 // InkDropRipple:
68 void SnapToActivated() override; 68 void SnapToActivated() override;
69 ui::Layer* GetRootLayer() override; 69 ui::Layer* GetRootLayer() override;
70 bool IsVisible() const override; 70 bool OverridesHighlight() const override;
71 71
72 private: 72 private:
73 friend class test::SquareInkDropRippleTestApi; 73 friend class test::SquareInkDropRippleTestApi;
74 74
75 // Enumeration of the different shapes that compose the ink drop. 75 // Enumeration of the different shapes that compose the ink drop.
76 enum PaintedShape { 76 enum PaintedShape {
77 TOP_LEFT_CIRCLE = 0, 77 TOP_LEFT_CIRCLE = 0,
78 TOP_RIGHT_CIRCLE, 78 TOP_RIGHT_CIRCLE,
79 BOTTOM_RIGHT_CIRCLE, 79 BOTTOM_RIGHT_CIRCLE,
80 BOTTOM_LEFT_CIRCLE, 80 BOTTOM_LEFT_CIRCLE,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 // ui::Layers for all of the painted shape layers that compose the ink drop. 192 // ui::Layers for all of the painted shape layers that compose the ink drop.
193 std::unique_ptr<ui::Layer> painted_layers_[PAINTED_SHAPE_COUNT]; 193 std::unique_ptr<ui::Layer> painted_layers_[PAINTED_SHAPE_COUNT];
194 194
195 DISALLOW_COPY_AND_ASSIGN(SquareInkDropRipple); 195 DISALLOW_COPY_AND_ASSIGN(SquareInkDropRipple);
196 }; 196 };
197 197
198 } // namespace views 198 } // namespace views
199 199
200 #endif // UI_VIEWS_ANIMATION_SQUARE_INK_DROP_RIPPLE_H_ 200 #endif // UI_VIEWS_ANIMATION_SQUARE_INK_DROP_RIPPLE_H_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_ripple.cc ('k') | ui/views/animation/square_ink_drop_ripple.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698