| Index: ui/compositor/test/test_layer_animation_timer.h
|
| diff --git a/ui/compositor/test/test_layer_animation_timer.h b/ui/compositor/test/test_layer_animation_timer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b8c1a9dc72ca5215334a27d18442e08c0191d2a6
|
| --- /dev/null
|
| +++ b/ui/compositor/test/test_layer_animation_timer.h
|
| @@ -0,0 +1,33 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
|
| +#define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "ui/compositor/layer_animation_timer.h"
|
| +
|
| +namespace ui {
|
| +
|
| +class TestLayerAnimationTimer : public LayerAnimationTimer {
|
| + public:
|
| + TestLayerAnimationTimer();
|
| + virtual ~TestLayerAnimationTimer();
|
| +
|
| + // Implementation of LayerAnimationTimer.
|
| + virtual void Start(AnimationContainerElement*) OVERRIDE;
|
| + virtual void Stop(AnimationContainerElement*) OVERRIDE;
|
| + virtual base::TimeTicks last_tick_time() const OVERRIDE;
|
| + virtual bool is_running() const OVERRIDE;
|
| +
|
| + // This is meant to advance all started animations by the given delta.
|
| + void Advance(base::TimeDelta delta);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(TestLayerAnimationTimer);
|
| +};
|
| +
|
| +} // namespace ui
|
| +
|
| +#endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
|
|
|