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

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

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 #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
OLDNEW
« no previous file with comments | « ui/views/animation/test/ink_drop_animation_test_api.h ('k') | ui/views/widget/desktop_aura/desktop_screen_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698