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

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

Issue 2447523002: [ash-md] Added different highlighting modes to the InkDropImpl. (Closed)
Patch Set: Fixed InkDropHostView::GetInkDrop() to use CreateInkDrop(). Created 4 years, 1 month 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_unittest.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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 const gfx::Point& target_center_point, 69 const gfx::Point& target_center_point,
70 SkColor color, 70 SkColor color,
71 float visible_opacity); 71 float visible_opacity);
72 ~SquareInkDropRipple() override; 72 ~SquareInkDropRipple() override;
73 73
74 void set_activated_shape(ActivatedShape shape) { activated_shape_ = shape; } 74 void set_activated_shape(ActivatedShape shape) { activated_shape_ = shape; }
75 75
76 // InkDropRipple: 76 // InkDropRipple:
77 void SnapToActivated() override; 77 void SnapToActivated() override;
78 ui::Layer* GetRootLayer() override; 78 ui::Layer* GetRootLayer() override;
79 bool OverridesHighlight() const override;
80 79
81 private: 80 private:
82 friend class test::SquareInkDropRippleTestApi; 81 friend class test::SquareInkDropRippleTestApi;
83 82
84 // Enumeration of the different shapes that compose the ink drop. 83 // Enumeration of the different shapes that compose the ink drop.
85 enum PaintedShape { 84 enum PaintedShape {
86 TOP_LEFT_CIRCLE = 0, 85 TOP_LEFT_CIRCLE = 0,
87 TOP_RIGHT_CIRCLE, 86 TOP_RIGHT_CIRCLE,
88 BOTTOM_RIGHT_CIRCLE, 87 BOTTOM_RIGHT_CIRCLE,
89 BOTTOM_LEFT_CIRCLE, 88 BOTTOM_LEFT_CIRCLE,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 213
215 // ui::Layers for all of the painted shape layers that compose the ink drop. 214 // ui::Layers for all of the painted shape layers that compose the ink drop.
216 std::unique_ptr<ui::Layer> painted_layers_[PAINTED_SHAPE_COUNT]; 215 std::unique_ptr<ui::Layer> painted_layers_[PAINTED_SHAPE_COUNT];
217 216
218 DISALLOW_COPY_AND_ASSIGN(SquareInkDropRipple); 217 DISALLOW_COPY_AND_ASSIGN(SquareInkDropRipple);
219 }; 218 };
220 219
221 } // namespace views 220 } // namespace views
222 221
223 #endif // UI_VIEWS_ANIMATION_SQUARE_INK_DROP_RIPPLE_H_ 222 #endif // UI_VIEWS_ANIMATION_SQUARE_INK_DROP_RIPPLE_H_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_unittest.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