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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 void NotifyAnimationAborted(const AnimationEvent& event); | 118 void NotifyAnimationAborted(const AnimationEvent& event); |
119 void NotifyAnimationPropertyUpdate(const AnimationEvent& event); | 119 void NotifyAnimationPropertyUpdate(const AnimationEvent& event); |
120 void NotifyAnimationTakeover(const AnimationEvent& event); | 120 void NotifyAnimationTakeover(const AnimationEvent& event); |
121 | 121 |
122 bool has_element_in_active_list() const { | 122 bool has_element_in_active_list() const { |
123 return has_element_in_active_list_; | 123 return has_element_in_active_list_; |
124 } | 124 } |
125 bool has_element_in_pending_list() const { | 125 bool has_element_in_pending_list() const { |
126 return has_element_in_pending_list_; | 126 return has_element_in_pending_list_; |
127 } | 127 } |
| 128 bool has_element_in_any_list() const { |
| 129 return has_element_in_active_list_ || has_element_in_pending_list_; |
| 130 } |
128 | 131 |
129 void set_has_element_in_active_list(bool has_element_in_active_list) { | 132 void set_has_element_in_active_list(bool has_element_in_active_list) { |
130 has_element_in_active_list_ = has_element_in_active_list; | 133 has_element_in_active_list_ = has_element_in_active_list; |
131 } | 134 } |
132 void set_has_element_in_pending_list(bool has_element_in_pending_list) { | 135 void set_has_element_in_pending_list(bool has_element_in_pending_list) { |
133 has_element_in_pending_list_ = has_element_in_pending_list; | 136 has_element_in_pending_list_ = has_element_in_pending_list; |
134 } | 137 } |
135 | 138 |
136 bool HasFilterAnimationThatInflatesBounds() const; | 139 bool HasFilterAnimationThatInflatesBounds() const; |
137 bool HasTransformAnimationThatInflatesBounds() const; | 140 bool HasTransformAnimationThatInflatesBounds() const; |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 296 |
294 struct PropertyAnimationState opacity_animation_state_; | 297 struct PropertyAnimationState opacity_animation_state_; |
295 struct PropertyAnimationState transform_animation_state_; | 298 struct PropertyAnimationState transform_animation_state_; |
296 | 299 |
297 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 300 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
298 }; | 301 }; |
299 | 302 |
300 } // namespace cc | 303 } // namespace cc |
301 | 304 |
302 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 305 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
OLD | NEW |