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

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

Issue 2976873003: Added a nested class to gfx::Animation (Closed)
Patch Set: addressed comments 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
« no previous file with comments | « ui/gfx/animation/animation.h ('k') | ui/gfx/animation/animation_test_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/gfx/animation/animation.h ('k') | ui/gfx/animation/animation_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698