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

Side by Side Diff: ui/compositor/test/test_layer_animation_timer.h

Issue 11316135: NOT READY FOR REVIEW - Add support for custom animation timers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/compositor/test/test_layer_animation_timer.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) 2012 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_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
6 #define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
7
8 #include "base/compiler_specific.h"
9 #include "ui/compositor/layer_animation_timer.h"
10
11 namespace ui {
12
13 class TestLayerAnimationTimer : public LayerAnimationTimer {
14 public:
15 TestLayerAnimationTimer();
16 virtual ~TestLayerAnimationTimer();
17
18 // Implementation of LayerAnimationTimer.
19 virtual void Start(AnimationContainerElement*) OVERRIDE;
20 virtual void Stop(AnimationContainerElement*) OVERRIDE;
21 virtual base::TimeTicks last_tick_time() const OVERRIDE;
22 virtual bool is_running() const OVERRIDE;
23
24 // This is meant to advance all started animations by the given delta.
25 void Advance(base::TimeDelta delta);
26
27 private:
28 DISALLOW_COPY_AND_ASSIGN(TestLayerAnimationTimer);
29 };
30
31 } // namespace ui
32
33 #endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
OLDNEW
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/compositor/test/test_layer_animation_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698