OLD | NEW |
(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_ |
OLD | NEW |