OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_ANIMATION_ELEMENT_ANIMATIONS_H_ | 5 #ifndef CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 6 #define CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
7 | 7 |
8 #include <bitset> | 8 #include <bitset> |
9 #include <memory> | 9 #include <memory> |
10 #include <vector> | 10 #include <vector> |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 Animation* GetAnimation(TargetProperty::Type target_property) const; | 92 Animation* GetAnimation(TargetProperty::Type target_property) const; |
93 | 93 |
94 // Returns the active animation for the given unique animation id. | 94 // Returns the active animation for the given unique animation id. |
95 Animation* GetAnimationById(int animation_id) const; | 95 Animation* GetAnimationById(int animation_id) const; |
96 | 96 |
97 // Returns true if there are any animations that have neither finished nor | 97 // Returns true if there are any animations that have neither finished nor |
98 // aborted. | 98 // aborted. |
99 bool HasActiveAnimation() const; | 99 bool HasActiveAnimation() const; |
100 | 100 |
101 // Returns true if there are any animations at all to process. | 101 // Returns true if there are any animations at all to process. |
102 bool has_any_animation() const { return !animations_.empty(); } | 102 bool HasAnyAnimation() const; |
103 | 103 |
104 // Returns true if there is an animation that is either currently animating | 104 // Returns true if there is an animation that is either currently animating |
105 // the given property or scheduled to animate this property in the future, and | 105 // the given property or scheduled to animate this property in the future, and |
106 // that affects the given tree type. | 106 // that affects the given tree type. |
107 bool IsPotentiallyAnimatingProperty(TargetProperty::Type target_property, | 107 bool IsPotentiallyAnimatingProperty(TargetProperty::Type target_property, |
108 ElementListType list_type) const; | 108 ElementListType list_type) const; |
109 | 109 |
110 // Returns true if there is an animation that is currently animating the given | 110 // Returns true if there is an animation that is currently animating the given |
111 // property and that affects the given tree type. | 111 // property and that affects the given tree type. |
112 bool IsCurrentlyAnimatingProperty(TargetProperty::Type target_property, | 112 bool IsCurrentlyAnimatingProperty(TargetProperty::Type target_property, |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 struct PropertyAnimationState filter_animation_state_; | 298 struct PropertyAnimationState filter_animation_state_; |
299 struct PropertyAnimationState opacity_animation_state_; | 299 struct PropertyAnimationState opacity_animation_state_; |
300 struct PropertyAnimationState transform_animation_state_; | 300 struct PropertyAnimationState transform_animation_state_; |
301 | 301 |
302 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 302 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
303 }; | 303 }; |
304 | 304 |
305 } // namespace cc | 305 } // namespace cc |
306 | 306 |
307 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 307 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
OLD | NEW |