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

Side by Side Diff: ui/gfx/animation/animation_test_api.h

Issue 2976873003: Added a nested class to gfx::Animation (Closed)
Patch Set: Created 3 years, 5 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
(Empty)
1 // Copyright (c) 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 #ifndef UI_GFX_ANIMATION_ANIMATION_TEST_API_H_
6 #define UI_GFX_ANIMATION_ANIMATION_TEST_API_H_
7
8 #include "ui/gfx/animation/animation.h"
9
10 namespace gfx {
11
12 // Class to provide access to Animation internals for testing.
13 class ANIMATION_EXPORT Animation::AnimationTestApi {
14 public:
15 explicit AnimationTestApi(Animation* animation);
16 ~AnimationTestApi();
17
18 // Sets the start of the animation.
19 void SetStartTime(base::TimeTicks ticks);
20
21 // Manually steps the animation forward
22 void Step(base::TimeTicks ticks);
23
24 private:
25 Animation* animation_;
26
27 DISALLOW_COPY_AND_ASSIGN(AnimationTestApi);
28 };
29
30 } // namespace gfx
31
32 #endif // UI_GFX_ANIMATION_ANIMATION_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698