Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / ui / views / animation / test / ink_drop_animation_test_api.cc
blobb890f46a2ff80c060afb95272fbf36a1a71c3a45
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
3 // found in the LICENSE file.
5 #include "ui/views/animation/ink_drop_animation.h"
6 #include "ui/views/animation/test/ink_drop_animation_test_api.h"
8 namespace views {
9 namespace test {
11 InkDropAnimationTestApi::InkDropAnimationTestApi(
12 InkDropAnimation* ink_drop_animation)
13 : ink_drop_animation_(ink_drop_animation) {}
15 InkDropAnimationTestApi::~InkDropAnimationTestApi() {}
17 void InkDropAnimationTestApi::CalculateCircleTransforms(
18 const gfx::SizeF size,
19 InkDropTransforms* transforms_out) const {
20 ink_drop_animation_->CalculateCircleTransforms(size, transforms_out);
22 void InkDropAnimationTestApi::CalculateRectTransforms(
23 const gfx::SizeF size,
24 float corner_radius,
25 InkDropTransforms* transforms_out) const {
26 ink_drop_animation_->CalculateRectTransforms(size, corner_radius,
27 transforms_out);
30 } // namespace test
31 } // namespace views