| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_TEST_ANIMATION_TEST_COMMON_H_ | 5 #ifndef CC_TEST_ANIMATION_TEST_COMMON_H_ |
| 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ | 6 #define CC_TEST_ANIMATION_TEST_COMMON_H_ |
| 7 | 7 |
| 8 #include "cc/animation/animation.h" | 8 #include "cc/animation/animation.h" |
| 9 #include "cc/animation/animation_curve.h" | 9 #include "cc/animation/animation_curve.h" |
| 10 #include "cc/animation/animation_timeline.h" | 10 #include "cc/animation/animation_timeline.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 int AddAnimatedTransformToElementAnimations(ElementAnimations* target, | 93 int AddAnimatedTransformToElementAnimations(ElementAnimations* target, |
| 94 double duration, | 94 double duration, |
| 95 int delta_x, | 95 int delta_x, |
| 96 int delta_y); | 96 int delta_y); |
| 97 | 97 |
| 98 int AddAnimatedFilterToElementAnimations(ElementAnimations* target, | 98 int AddAnimatedFilterToElementAnimations(ElementAnimations* target, |
| 99 double duration, | 99 double duration, |
| 100 float start_brightness, | 100 float start_brightness, |
| 101 float end_brightness); | 101 float end_brightness); |
| 102 | 102 |
| 103 void AddAnimationToElementAnimations(ElementAnimations* target, |
| 104 std::unique_ptr<Animation> animation); |
| 105 |
| 106 void RemoveAnimationFromElementAnimations(ElementAnimations* target, |
| 107 int animation_id); |
| 108 |
| 109 void PauseAnimationInElementAnimations(ElementAnimations* target, |
| 110 int animation_id, |
| 111 base::TimeDelta time); |
| 112 |
| 113 void AbortAnimationsInElementAnimations(ElementAnimations* target, |
| 114 TargetProperty::Type target_property, |
| 115 bool needs_completion); |
| 116 |
| 103 int AddAnimatedTransformToPlayer(AnimationPlayer* player, | 117 int AddAnimatedTransformToPlayer(AnimationPlayer* player, |
| 104 double duration, | 118 double duration, |
| 105 int delta_x, | 119 int delta_x, |
| 106 int delta_y); | 120 int delta_y); |
| 107 | 121 |
| 108 int AddAnimatedTransformToPlayer(AnimationPlayer* player, | 122 int AddAnimatedTransformToPlayer(AnimationPlayer* player, |
| 109 double duration, | 123 double duration, |
| 110 TransformOperations start_operations, | 124 TransformOperations start_operations, |
| 111 TransformOperations operations); | 125 TransformOperations operations); |
| 112 | 126 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 bool use_timing_function); | 189 bool use_timing_function); |
| 176 | 190 |
| 177 void AbortAnimationsOnElementWithPlayer( | 191 void AbortAnimationsOnElementWithPlayer( |
| 178 ElementId element_id, | 192 ElementId element_id, |
| 179 scoped_refptr<AnimationTimeline> timeline, | 193 scoped_refptr<AnimationTimeline> timeline, |
| 180 TargetProperty::Type target_property); | 194 TargetProperty::Type target_property); |
| 181 | 195 |
| 182 } // namespace cc | 196 } // namespace cc |
| 183 | 197 |
| 184 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ | 198 #endif // CC_TEST_ANIMATION_TEST_COMMON_H_ |
| OLD | NEW |