OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ | 5 #ifndef UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ |
6 #define UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ | 6 #define UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ |
7 | 7 |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "cc/animation/animation_curve.h" | 9 #include "cc/animation/animation_curve.h" |
10 #include "ui/base/animation/tween.h" | 10 #include "ui/base/animation/tween.h" |
(...skipping 18 matching lines...) Expand all Loading... | |
29 | 29 |
30 private: | 30 private: |
31 Tween::Type tween_type_; | 31 Tween::Type tween_type_; |
32 gfx::Transform initial_value_; | 32 gfx::Transform initial_value_; |
33 gfx::Transform target_value_; | 33 gfx::Transform target_value_; |
34 gfx::DecomposedTransform decomposed_initial_value_; | 34 gfx::DecomposedTransform decomposed_initial_value_; |
35 gfx::DecomposedTransform decomposed_target_value_; | 35 gfx::DecomposedTransform decomposed_target_value_; |
36 base::TimeDelta duration_; | 36 base::TimeDelta duration_; |
37 }; | 37 }; |
38 | 38 |
39 class InverseTransformCurveAdapter :public cc::TransformAnimationCurve { | |
Ian Vollick
2013/08/27 19:54:18
nit: space after the colon.
avallee
2013/08/27 20:19:42
Done.
| |
40 public: | |
41 InverseTransformCurveAdapter(TransformAnimationCurveAdapter base_curve, | |
42 gfx::Transform initial_value, | |
43 base::TimeDelta duration); | |
44 | |
45 virtual ~InverseTransformCurveAdapter(); | |
46 | |
47 virtual double Duration() const OVERRIDE; | |
48 virtual scoped_ptr<AnimationCurve> Clone() const OVERRIDE; | |
49 virtual gfx::Transform GetValue(double t) const OVERRIDE; | |
50 | |
51 private: | |
52 TransformAnimationCurveAdapter base_curve_; | |
53 gfx::Transform initial_value_; | |
54 gfx::Transform effective_initial_value_; | |
55 base::TimeDelta duration_; | |
Ian Vollick
2013/08/27 19:54:18
nit: I know this is missing elsewhere in this file
avallee
2013/08/27 20:19:42
Done.
| |
56 }; | |
57 | |
39 } // namespace ui | 58 } // namespace ui |
40 | 59 |
41 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ | 60 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ |
42 | 61 |
OLD | NEW |