OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 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. | |
4 | |
5 #include "ui/gfx/animation/animation_test_api.h" | |
6 | |
7 #include "base/macros.h" | |
sky
2017/07/12 19:16:19
This include should be in the header.
newcomer
2017/07/13 21:19:28
Done.
| |
8 #include "base/time/time.h" | |
9 #include "ui/gfx/animation/animation.h" | |
10 | |
11 namespace gfx { | |
12 using AnimationTestApi = Animation::AnimationTestApi; | |
13 | |
14 AnimationTestApi::AnimationTestApi(Animation* animation) | |
15 : animation_(animation) {} | |
16 | |
17 AnimationTestApi::~AnimationTestApi() {} | |
18 | |
19 void AnimationTestApi::SetStartTime(base::TimeTicks ticks) { | |
20 animation_->SetStartTime(ticks); | |
21 } | |
22 | |
23 void AnimationTestApi::Step(base::TimeTicks ticks) { | |
24 animation_->Step(ticks); | |
25 } | |
26 | |
27 } // namespace gfx | |
OLD | NEW |