| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 TransformAnimationCurveAdapter(const TransformAnimationCurveAdapter& other); | 28 TransformAnimationCurveAdapter(const TransformAnimationCurveAdapter& other); |
| 29 | 29 |
| 30 ~TransformAnimationCurveAdapter() override; | 30 ~TransformAnimationCurveAdapter() override; |
| 31 | 31 |
| 32 // TransformAnimationCurve implementation. | 32 // TransformAnimationCurve implementation. |
| 33 base::TimeDelta Duration() const override; | 33 base::TimeDelta Duration() const override; |
| 34 std::unique_ptr<AnimationCurve> Clone() const override; | 34 std::unique_ptr<AnimationCurve> Clone() const override; |
| 35 gfx::Transform GetValue(base::TimeDelta t) const override; | 35 gfx::Transform GetValue(base::TimeDelta t) const override; |
| 36 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 36 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
| 37 gfx::BoxF* bounds) const override; | 37 gfx::BoxF* bounds) const override; |
| 38 bool AffectsScale() const override; | |
| 39 bool IsTranslation() const override; | 38 bool IsTranslation() const override; |
| 40 bool PreservesAxisAlignment() const override; | 39 bool PreservesAxisAlignment() const override; |
| 41 bool AnimationStartScale(bool forward_direction, | 40 bool AnimationStartScale(bool forward_direction, |
| 42 float* start_scale) const override; | 41 float* start_scale) const override; |
| 43 bool MaximumTargetScale(bool forward_direction, | 42 bool MaximumTargetScale(bool forward_direction, |
| 44 float* max_scale) const override; | 43 float* max_scale) const override; |
| 45 | 44 |
| 46 private: | 45 private: |
| 47 gfx::Tween::Type tween_type_; | 46 gfx::Tween::Type tween_type_; |
| 48 gfx::Transform initial_value_; | 47 gfx::Transform initial_value_; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 61 gfx::Transform initial_value, | 60 gfx::Transform initial_value, |
| 62 base::TimeDelta duration); | 61 base::TimeDelta duration); |
| 63 | 62 |
| 64 ~InverseTransformCurveAdapter() override; | 63 ~InverseTransformCurveAdapter() override; |
| 65 | 64 |
| 66 base::TimeDelta Duration() const override; | 65 base::TimeDelta Duration() const override; |
| 67 std::unique_ptr<AnimationCurve> Clone() const override; | 66 std::unique_ptr<AnimationCurve> Clone() const override; |
| 68 gfx::Transform GetValue(base::TimeDelta t) const override; | 67 gfx::Transform GetValue(base::TimeDelta t) const override; |
| 69 bool AnimatedBoundsForBox(const gfx::BoxF& box, | 68 bool AnimatedBoundsForBox(const gfx::BoxF& box, |
| 70 gfx::BoxF* bounds) const override; | 69 gfx::BoxF* bounds) const override; |
| 71 bool AffectsScale() const override; | |
| 72 bool IsTranslation() const override; | 70 bool IsTranslation() const override; |
| 73 bool PreservesAxisAlignment() const override; | 71 bool PreservesAxisAlignment() const override; |
| 74 bool AnimationStartScale(bool forward_direction, | 72 bool AnimationStartScale(bool forward_direction, |
| 75 float* start_scale) const override; | 73 float* start_scale) const override; |
| 76 bool MaximumTargetScale(bool forward_direction, | 74 bool MaximumTargetScale(bool forward_direction, |
| 77 float* max_scale) const override; | 75 float* max_scale) const override; |
| 78 | 76 |
| 79 private: | 77 private: |
| 80 TransformAnimationCurveAdapter base_curve_; | 78 TransformAnimationCurveAdapter base_curve_; |
| 81 gfx::Transform initial_value_; | 79 gfx::Transform initial_value_; |
| 82 gfx::Transform effective_initial_value_; | 80 gfx::Transform effective_initial_value_; |
| 83 base::TimeDelta duration_; | 81 base::TimeDelta duration_; |
| 84 | 82 |
| 85 DISALLOW_ASSIGN(InverseTransformCurveAdapter); | 83 DISALLOW_ASSIGN(InverseTransformCurveAdapter); |
| 86 }; | 84 }; |
| 87 | 85 |
| 88 } // namespace ui | 86 } // namespace ui |
| 89 | 87 |
| 90 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ | 88 #endif // UI_COMPOSITOR_TRANSFORM_ANIMATION_CURVE_ADAPTER_H_ |
| 91 | 89 |
| OLD | NEW |