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 #include "ui/views/animation/ink_drop_animation.h" | 5 #include "ui/views/animation/ink_drop_animation.h" |
6 #include "ui/views/animation/test/ink_drop_animation_test_api.h" | 6 #include "ui/views/animation/test/ink_drop_animation_test_api.h" |
7 | 7 |
8 namespace views { | 8 namespace views { |
9 namespace test { | 9 namespace test { |
10 | 10 |
11 InkDropAnimationTestApi::InkDropAnimationTestApi( | 11 InkDropAnimationTestApi::InkDropAnimationTestApi( |
12 InkDropAnimation* ink_drop_animation) | 12 InkDropAnimation* ink_drop_animation) |
13 : ink_drop_animation_(ink_drop_animation) {} | 13 : ink_drop_animation_(ink_drop_animation) {} |
14 | 14 |
15 InkDropAnimationTestApi::~InkDropAnimationTestApi() {} | 15 InkDropAnimationTestApi::~InkDropAnimationTestApi() {} |
16 | 16 |
17 void InkDropAnimationTestApi::CalculateCircleTransforms( | 17 void InkDropAnimationTestApi::CalculateCircleTransforms( |
18 const gfx::SizeF size, | 18 const gfx::Size& size, |
19 InkDropTransforms* transforms_out) const { | 19 InkDropTransforms* transforms_out) const { |
20 ink_drop_animation_->CalculateCircleTransforms(size, transforms_out); | 20 ink_drop_animation_->CalculateCircleTransforms(size, transforms_out); |
21 } | 21 } |
22 void InkDropAnimationTestApi::CalculateRectTransforms( | 22 void InkDropAnimationTestApi::CalculateRectTransforms( |
23 const gfx::SizeF size, | 23 const gfx::Size& size, |
24 float corner_radius, | 24 float corner_radius, |
25 InkDropTransforms* transforms_out) const { | 25 InkDropTransforms* transforms_out) const { |
26 ink_drop_animation_->CalculateRectTransforms(size, corner_radius, | 26 ink_drop_animation_->CalculateRectTransforms(size, corner_radius, |
27 transforms_out); | 27 transforms_out); |
28 } | 28 } |
29 | 29 |
30 } // namespace test | 30 } // namespace test |
31 } // namespace views | 31 } // namespace views |
OLD | NEW |