| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |