OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 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_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ | |
6 #define UI_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ | |
7 #pragma once | |
8 | |
9 #include "base/compiler_specific.h" | |
10 #include "ui/gfx/rect.h" | |
11 #include "ui/gfx/transform.h" | |
12 #include "ui/gfx/compositor/layer_animation_delegate.h" | |
13 | |
14 namespace ui { | |
15 | |
16 class TestLayerAnimationDelegate : public LayerAnimationDelegate { | |
17 public: | |
18 TestLayerAnimationDelegate(); | |
19 virtual ~TestLayerAnimationDelegate(); | |
20 | |
21 // Implementation of LayerAnimationDelegate | |
22 virtual void SetBoundsFromAnimation(const gfx::Rect& bounds) OVERRIDE; | |
23 virtual void SetTransformFromAnimation(const Transform& transform) OVERRIDE; | |
24 virtual void SetOpacityFromAnimation(float opacity) OVERRIDE; | |
25 virtual void ScheduleDrawForAnimation() OVERRIDE; | |
26 virtual const gfx::Rect& GetBoundsForAnimation() const OVERRIDE; | |
27 virtual const Transform& GetTransformForAnimation() const OVERRIDE; | |
28 virtual float GetOpacityForAnimation() const OVERRIDE; | |
29 | |
30 private: | |
31 gfx::Rect bounds_; | |
32 Transform transform_; | |
33 float opacity_; | |
34 | |
35 // Allow copy and assign. | |
36 }; | |
37 | |
38 } // namespace ui | |
39 | |
40 #endif // UI_GFX_COMPOSITOR_TEST_LAYER_ANIMATION_DELEGATE_H_ | |
OLD | NEW |