| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ | 5 #ifndef UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ |
| 6 #define UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ | 6 #define UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 InkDropTransforms* transforms_out) const; | 35 InkDropTransforms* transforms_out) const; |
| 36 void CalculateRectTransforms(const gfx::Size& size, | 36 void CalculateRectTransforms(const gfx::Size& size, |
| 37 float corner_radius, | 37 float corner_radius, |
| 38 InkDropTransforms* transforms_out) const; | 38 InkDropTransforms* transforms_out) const; |
| 39 | 39 |
| 40 // InkDropAnimationTestApi: | 40 // InkDropAnimationTestApi: |
| 41 float GetCurrentOpacity() const override; | 41 float GetCurrentOpacity() const override; |
| 42 | 42 |
| 43 protected: | 43 protected: |
| 44 // InkDropAnimationTestApi: | 44 // InkDropAnimationTestApi: |
| 45 std::vector<ui::LayerAnimator*> GetLayerAnimators() const override; | 45 std::vector<ui::LayerAnimator*> GetLayerAnimators() override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 SquareInkDropAnimation* ink_drop_animation() { | 48 SquareInkDropAnimation* ink_drop_animation() { |
| 49 return static_cast<const SquareInkDropAnimationTestApi*>(this) | 49 return static_cast<const SquareInkDropAnimationTestApi*>(this) |
| 50 ->ink_drop_animation(); | 50 ->ink_drop_animation(); |
| 51 } | 51 } |
| 52 | 52 |
| 53 SquareInkDropAnimation* ink_drop_animation() const { | 53 SquareInkDropAnimation* ink_drop_animation() const { |
| 54 return static_cast<SquareInkDropAnimation*>( | 54 return static_cast<SquareInkDropAnimation*>( |
| 55 InkDropAnimationTestApi::ink_drop_animation()); | 55 InkDropAnimationTestApi::ink_drop_animation()); |
| 56 } | 56 } |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(SquareInkDropAnimationTestApi); | 58 DISALLOW_COPY_AND_ASSIGN(SquareInkDropAnimationTestApi); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace test | 61 } // namespace test |
| 62 } // namespace views | 62 } // namespace views |
| 63 | 63 |
| 64 #endif // UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ | 64 #endif // UI_VIEWS_ANIMATION_TEST_SQUARE_INK_DROP_ANIMATION_TEST_API_H_ |
| OLD | NEW |