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 #include "ui/compositor/transform_animation_curve_adapter.h" | 5 #include "ui/compositor/transform_animation_curve_adapter.h" |
6 | 6 |
7 namespace ui { | 7 namespace ui { |
8 | 8 |
9 TransformAnimationCurveAdapter::TransformAnimationCurveAdapter( | 9 TransformAnimationCurveAdapter::TransformAnimationCurveAdapter( |
10 gfx::Tween::Type tween_type, | 10 gfx::Tween::Type tween_type, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 bool TransformAnimationCurveAdapter::AffectsScale() const { | 64 bool TransformAnimationCurveAdapter::AffectsScale() const { |
65 return !initial_value_.IsIdentityOrTranslation() || | 65 return !initial_value_.IsIdentityOrTranslation() || |
66 !target_value_.IsIdentityOrTranslation(); | 66 !target_value_.IsIdentityOrTranslation(); |
67 } | 67 } |
68 | 68 |
69 bool TransformAnimationCurveAdapter::IsTranslation() const { | 69 bool TransformAnimationCurveAdapter::IsTranslation() const { |
70 return initial_value_.IsIdentityOrTranslation() && | 70 return initial_value_.IsIdentityOrTranslation() && |
71 target_value_.IsIdentityOrTranslation(); | 71 target_value_.IsIdentityOrTranslation(); |
72 } | 72 } |
73 | 73 |
74 bool TransformAnimationCurveAdapter::MaximumScale(float* max_scale) const { | 74 bool TransformAnimationCurveAdapter::MaximumTargetScale( |
| 75 float* max_scale) const { |
75 return false; | 76 return false; |
76 } | 77 } |
77 | 78 |
78 InverseTransformCurveAdapter::InverseTransformCurveAdapter( | 79 InverseTransformCurveAdapter::InverseTransformCurveAdapter( |
79 TransformAnimationCurveAdapter base_curve, | 80 TransformAnimationCurveAdapter base_curve, |
80 gfx::Transform initial_value, | 81 gfx::Transform initial_value, |
81 base::TimeDelta duration) | 82 base::TimeDelta duration) |
82 : base_curve_(base_curve), | 83 : base_curve_(base_curve), |
83 initial_value_(initial_value), | 84 initial_value_(initial_value), |
84 duration_(duration) { | 85 duration_(duration) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 bool InverseTransformCurveAdapter::AffectsScale() const { | 128 bool InverseTransformCurveAdapter::AffectsScale() const { |
128 return !initial_value_.IsIdentityOrTranslation() || | 129 return !initial_value_.IsIdentityOrTranslation() || |
129 base_curve_.AffectsScale(); | 130 base_curve_.AffectsScale(); |
130 } | 131 } |
131 | 132 |
132 bool InverseTransformCurveAdapter::IsTranslation() const { | 133 bool InverseTransformCurveAdapter::IsTranslation() const { |
133 return initial_value_.IsIdentityOrTranslation() && | 134 return initial_value_.IsIdentityOrTranslation() && |
134 base_curve_.IsTranslation(); | 135 base_curve_.IsTranslation(); |
135 } | 136 } |
136 | 137 |
137 bool InverseTransformCurveAdapter::MaximumScale(float* max_scale) const { | 138 bool InverseTransformCurveAdapter::MaximumTargetScale(float* max_scale) const { |
138 return false; | 139 return false; |
139 } | 140 } |
140 | 141 |
141 } // namespace ui | 142 } // namespace ui |
OLD | NEW |