OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | |
sky
2017/07/13 23:14:05
no (c) (see style guide).
newcomer
2017/07/17 14:54:32
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_GFX_ANIMATION_ANIMATION_TEST_API_H_ | |
6 #define UI_GFX_ANIMATION_ANIMATION_TEST_API_H_ | |
7 | |
8 #include "base/macros.h" | |
9 #include "ui/gfx/animation/animation.h" | |
10 | |
11 namespace gfx { | |
12 | |
13 // Class to provide access to Animation internals for testing. | |
14 class ANIMATION_EXPORT AnimationTestApi { | |
15 public: | |
16 explicit AnimationTestApi(Animation* animation); | |
17 ~AnimationTestApi(); | |
18 | |
19 // Sets the start of the animation. | |
20 void SetStartTime(base::TimeTicks ticks); | |
21 | |
22 // Manually steps the animation forward | |
23 void Step(base::TimeTicks ticks); | |
24 | |
25 private: | |
26 Animation* animation_; | |
27 | |
28 DISALLOW_COPY_AND_ASSIGN(AnimationTestApi); | |
29 }; | |
30 | |
31 } // namespace gfx | |
32 | |
33 #endif // UI_GFX_ANIMATION_ANIMATION_TEST_API_H_ | |
OLD | NEW |