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/compositor/compositor_export.h" | 10 #include "ui/compositor/compositor_export.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 // TransformAnimationCurve implementation. | 27 // TransformAnimationCurve implementation. |
28 base::TimeDelta Duration() const override; | 28 base::TimeDelta Duration() const override; |
29 scoped_ptr<AnimationCurve> Clone() const override; | 29 scoped_ptr<AnimationCurve> Clone() const override; |
30 gfx::Transform GetValue(base::TimeDelta t) const override; | 30 gfx::Transform GetValue(base::TimeDelta t) const override; |
31 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 31 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
32 gfx::BoxF* bounds) const override; | 32 gfx::BoxF* bounds) const override; |
33 bool AffectsScale() const override; | 33 bool AffectsScale() const override; |
34 bool IsTranslation() const override; | 34 bool IsTranslation() const override; |
35 bool PreservesAxisAlignment() const override; | 35 bool PreservesAxisAlignment() const override; |
| 36 bool AnimationStartScale(bool forward_direction, |
| 37 float* start_scale) const override; |
36 bool MaximumTargetScale(bool forward_direction, | 38 bool MaximumTargetScale(bool forward_direction, |
37 float* max_scale) const override; | 39 float* max_scale) const override; |
38 | 40 |
39 private: | 41 private: |
40 gfx::Tween::Type tween_type_; | 42 gfx::Tween::Type tween_type_; |
41 gfx::Transform initial_value_; | 43 gfx::Transform initial_value_; |
42 gfx::Transform target_value_; | 44 gfx::Transform target_value_; |
43 gfx::DecomposedTransform decomposed_initial_value_; | 45 gfx::DecomposedTransform decomposed_initial_value_; |
44 gfx::DecomposedTransform decomposed_target_value_; | 46 gfx::DecomposedTransform decomposed_target_value_; |
45 base::TimeDelta duration_; | 47 base::TimeDelta duration_; |
(...skipping 11 matching lines...) Expand all Loading... |
57 ~InverseTransformCurveAdapter() override; | 59 ~InverseTransformCurveAdapter() override; |
58 | 60 |
59 base::TimeDelta Duration() const override; | 61 base::TimeDelta Duration() const override; |
60 scoped_ptr<AnimationCurve> Clone() const override; | 62 scoped_ptr<AnimationCurve> Clone() const override; |
61 gfx::Transform GetValue(base::TimeDelta t) const override; | 63 gfx::Transform GetValue(base::TimeDelta t) const override; |
62 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 64 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
63 gfx::BoxF* bounds) const override; | 65 gfx::BoxF* bounds) const override; |
64 bool AffectsScale() const override; | 66 bool AffectsScale() const override; |
65 bool IsTranslation() const override; | 67 bool IsTranslation() const override; |
66 bool PreservesAxisAlignment() const override; | 68 bool PreservesAxisAlignment() const override; |
| 69 bool AnimationStartScale(bool forward_direction, |
| 70 float* start_scale) const override; |
67 bool MaximumTargetScale(bool forward_direction, | 71 bool MaximumTargetScale(bool forward_direction, |
68 float* max_scale) const override; | 72 float* max_scale) const override; |
69 | 73 |
70 private: | 74 private: |
71 TransformAnimationCurveAdapter base_curve_; | 75 TransformAnimationCurveAdapter base_curve_; |
72 gfx::Transform initial_value_; | 76 gfx::Transform initial_value_; |
73 gfx::Transform effective_initial_value_; | 77 gfx::Transform effective_initial_value_; |
74 base::TimeDelta duration_; | 78 base::TimeDelta duration_; |
75 | 79 |
76 DISALLOW_ASSIGN(InverseTransformCurveAdapter); | 80 DISALLOW_ASSIGN(InverseTransformCurveAdapter); |
77 }; | 81 }; |
78 | 82 |
79 } // namespace ui | 83 } // namespace ui |
80 | 84 |
81 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ | 85 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ |
82 | 86 |
OLD | NEW |