diff options
Diffstat (limited to 'cc/test/animation_test_common.h')
-rw-r--r-- | cc/test/animation_test_common.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cc/test/animation_test_common.h b/cc/test/animation_test_common.h index a45e9f0..6ee0cdd 100644 --- a/cc/test/animation_test_common.h +++ b/cc/test/animation_test_common.h @@ -60,6 +60,23 @@ private: float m_to; }; +class FakeLayerAnimationControllerClient : public cc::LayerAnimationControllerClient { +public: + FakeLayerAnimationControllerClient(); + virtual ~FakeLayerAnimationControllerClient(); + + // LayerAnimationControllerClient implementation + virtual int id() const OVERRIDE; + virtual void setOpacityFromAnimation(float) OVERRIDE; + virtual float opacity() const OVERRIDE; + virtual void setTransformFromAnimation(const gfx::Transform&) OVERRIDE; + virtual const gfx::Transform& transform() const OVERRIDE; + +private: + float m_opacity; + gfx::Transform m_transform; +}; + int addOpacityTransitionToController(cc::LayerAnimationController&, double duration, float startOpacity, float endOpacity, bool useTimingFunction); int addAnimatedTransformToController(cc::LayerAnimationController&, double duration, int deltaX, int deltaY); |