Chromium Code Reviews| Index: ui/gfx/compositor/test_layer_animation_delegate.h |
| diff --git a/ui/gfx/compositor/test_layer_animation_delegate.h b/ui/gfx/compositor/test_layer_animation_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9226ba71c130cf9ad88078dd07151dac4b8bafa6 |
| --- /dev/null |
| +++ b/ui/gfx/compositor/test_layer_animation_delegate.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright (c) 2011 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_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| +#define UI_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ |
| +#pragma once |
| + |
| +#include "base/compiler_specific.h" |
| +#include "ui/gfx/rect.h" |
| +#include "ui/gfx/transform.h" |
| +#include "ui/gfx/compositor/layer_animation_delegate.h" |
| + |
| +namespace ui { |
| + |
| +class TestLayerAnimationDelegate : public LayerAnimationDelegate { |
| + public: |
| + TestLayerAnimationDelegate(); |
| + virtual ~TestLayerAnimationDelegate(); |
| + |
| + // Implementation of LayerAnimationDelegate |
| + virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) OVERRIDE; |
| + virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE; |
| + virtual void SetOpacityFromAnimation(float opacity) OVERRIDE; |
| + virtual void ScheduleDrawForAnimation() OVERRIDE; |
| + virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; |
| + virtual const Transform& GetTransformForAnimation() const OVERRIDE; |
| + virtual float GetOpacityForAnimation() const OVERRIDE; |
| + |
| + private: |
| + gfx::Rect bounds_; |
| + Transform transform_; |
| + float opacity_; |
| + |
| + // Allow copy and assign. |
| +}; |
| + |
| +} // namespace ui |
| + |
|
sky
2011/10/20 16:33:03
remove one of these lines.
|
| + |
| +#endif // UI_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ |