| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |