| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/views/animation/test/flood_fill_ink_drop_ripple_test_api.h" |
| 6 |
| 7 #include <vector> |
| 8 |
| 9 #include "base/time/time.h" |
| 10 #include "ui/compositor/layer.h" |
| 11 #include "ui/compositor/layer_animator.h" |
| 12 #include "ui/compositor/test/layer_animator_test_controller.h" |
| 13 #include "ui/views/animation/ink_drop_ripple.h" |
| 14 |
| 15 namespace views { |
| 16 namespace test { |
| 17 |
| 18 FloodFillInkDropRippleTestApi::FloodFillInkDropRippleTestApi( |
| 19 FloodFillInkDropRipple* ink_drop_ripple) |
| 20 : InkDropRippleTestApi(ink_drop_ripple) {} |
| 21 |
| 22 FloodFillInkDropRippleTestApi::~FloodFillInkDropRippleTestApi() {} |
| 23 |
| 24 gfx::Transform FloodFillInkDropRippleTestApi::CalculateTransform( |
| 25 float target_radius) const { |
| 26 return ink_drop_ripple()->CalculateTransform(target_radius); |
| 27 } |
| 28 |
| 29 float FloodFillInkDropRippleTestApi::GetCurrentOpacity() const { |
| 30 return ink_drop_ripple()->root_layer_.opacity(); |
| 31 } |
| 32 |
| 33 std::vector<ui::LayerAnimator*> |
| 34 FloodFillInkDropRippleTestApi::GetLayerAnimators() { |
| 35 std::vector<ui::LayerAnimator*> animators = |
| 36 InkDropRippleTestApi::GetLayerAnimators(); |
| 37 animators.push_back(ink_drop_ripple()->GetRootLayer()->GetAnimator()); |
| 38 animators.push_back(ink_drop_ripple()->painted_layer_.GetAnimator()); |
| 39 return animators; |
| 40 } |
| 41 |
| 42 } // namespace test |
| 43 } // namespace views |
| OLD | NEW |