Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(515)

Side by Side Diff: ui/views/animation/test/ink_drop_animation_test_api.h

Issue 1357423009: gfx: Make conversions from Size to SizeF be explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sizefconvert-gfx: . Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_ 5 #ifndef UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_ 6 #define UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
7 7
8 #include "ui/gfx/geometry/size_f.h" 8 #include "ui/gfx/geometry/size.h"
9 9
10 namespace views { 10 namespace views {
11 class InkDropAnimation; 11 class InkDropAnimation;
12 12
13 namespace test { 13 namespace test {
14 14
15 // Test API to provide internal access to an InkDropAnimation. 15 // Test API to provide internal access to an InkDropAnimation.
16 class InkDropAnimationTestApi { 16 class InkDropAnimationTestApi {
17 public: 17 public:
18 typedef InkDropAnimation::InkDropTransforms InkDropTransforms; 18 typedef InkDropAnimation::InkDropTransforms InkDropTransforms;
19 typedef InkDropAnimation::PaintedShape PaintedShape; 19 typedef InkDropAnimation::PaintedShape PaintedShape;
20 20
21 explicit InkDropAnimationTestApi(InkDropAnimation* ink_drop_animation); 21 explicit InkDropAnimationTestApi(InkDropAnimation* ink_drop_animation);
22 ~InkDropAnimationTestApi(); 22 ~InkDropAnimationTestApi();
23 23
24 // Wrapper functions the wrapped InkDropedAnimation: 24 // Wrapper functions the wrapped InkDropedAnimation:
25 void CalculateCircleTransforms(const gfx::SizeF size, 25 void CalculateCircleTransforms(const gfx::Size& size,
26 InkDropTransforms* transforms_out) const; 26 InkDropTransforms* transforms_out) const;
27 void CalculateRectTransforms(const gfx::SizeF size, 27 void CalculateRectTransforms(const gfx::Size& size,
28 float corner_radius, 28 float corner_radius,
29 InkDropTransforms* transforms_out) const; 29 InkDropTransforms* transforms_out) const;
30 30
31 private: 31 private:
32 // The InkDropAnimation to provide internal access to. 32 // The InkDropAnimation to provide internal access to.
33 InkDropAnimation* ink_drop_animation_; 33 InkDropAnimation* ink_drop_animation_;
34 34
35 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationTestApi); 35 DISALLOW_COPY_AND_ASSIGN(InkDropAnimationTestApi);
36 }; 36 };
37 37
38 } // namespace test 38 } // namespace test
39 } // namespace views 39 } // namespace views
40 40
41 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_ 41 #endif // UI_VIEWS_ANIMATION_TEST_INK_DROP_ANIMATION_TEST_API_H_
OLDNEW
« no previous file with comments | « ui/views/animation/ink_drop_animation_unittest.cc ('k') | ui/views/animation/test/ink_drop_animation_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698