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 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
8 #include "ui/gfx/geometry/size_f.h"
11 class InkDropAnimation
;
15 // Test API to provide internal access to an InkDropAnimation.
16 class InkDropAnimationTestApi
{
18 typedef InkDropAnimation::InkDropTransforms InkDropTransforms
;
19 typedef InkDropAnimation::PaintedShape PaintedShape
;
21 explicit InkDropAnimationTestApi(InkDropAnimation
* ink_drop_animation
);
22 ~InkDropAnimationTestApi();
24 // Wrapper functions the wrapped InkDropedAnimation:
25 void CalculateCircleTransforms(const gfx::SizeF size
,
26 InkDropTransforms
* transforms_out
) const;
27 void CalculateRectTransforms(const gfx::SizeF size
,
29 InkDropTransforms
* transforms_out
) const;
32 // The InkDropAnimation to provide internal access to.
33 InkDropAnimation
* ink_drop_animation_
;
35 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationTestApi
);
41 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_