| 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_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ | 5 #ifndef UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ |
| 6 #define UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ | 6 #define UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_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 16 matching lines...) Expand all Loading... |
| 27 ~FloodFillInkDropAnimationTestApi() override; | 27 ~FloodFillInkDropAnimationTestApi() override; |
| 28 | 28 |
| 29 // Wrapper functions to the wrapped InkDropAnimation: | 29 // Wrapper functions to the wrapped InkDropAnimation: |
| 30 gfx::Transform CalculateTransform(float target_radius) const; | 30 gfx::Transform CalculateTransform(float target_radius) const; |
| 31 | 31 |
| 32 // InkDropAnimationTestApi: | 32 // InkDropAnimationTestApi: |
| 33 float GetCurrentOpacity() const override; | 33 float GetCurrentOpacity() const override; |
| 34 | 34 |
| 35 protected: | 35 protected: |
| 36 // InkDropAnimationTestApi: | 36 // InkDropAnimationTestApi: |
| 37 std::vector<ui::LayerAnimator*> GetLayerAnimators() const override; | 37 std::vector<ui::LayerAnimator*> GetLayerAnimators() override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 FloodFillInkDropAnimation* ink_drop_animation() { | 40 FloodFillInkDropAnimation* ink_drop_animation() { |
| 41 return static_cast<const FloodFillInkDropAnimationTestApi*>(this) | 41 return static_cast<const FloodFillInkDropAnimationTestApi*>(this) |
| 42 ->ink_drop_animation(); | 42 ->ink_drop_animation(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 FloodFillInkDropAnimation* ink_drop_animation() const { | 45 FloodFillInkDropAnimation* ink_drop_animation() const { |
| 46 return static_cast<FloodFillInkDropAnimation*>( | 46 return static_cast<FloodFillInkDropAnimation*>( |
| 47 InkDropAnimationTestApi::ink_drop_animation()); | 47 InkDropAnimationTestApi::ink_drop_animation()); |
| 48 } | 48 } |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropAnimationTestApi); | 50 DISALLOW_COPY_AND_ASSIGN(FloodFillInkDropAnimationTestApi); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace test | 53 } // namespace test |
| 54 } // namespace views | 54 } // namespace views |
| 55 | 55 |
| 56 #endif // UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ | 56 #endif // UI_VIEWS_ANIMATION_TEST_FLOOD_FILL_INK_DROP_ANIMATION_TEST_API_H_ |
| OLD | NEW |