| 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 <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class BoxF; | 22 class BoxF; |
| 23 class SizeF; | 23 class SizeF; |
| 24 } | 24 } |
| 25 | 25 |
| 26 namespace cc { | 26 namespace cc { |
| 27 | 27 |
| 28 class AnimationHost; | 28 class AnimationHost; |
| 29 class AnimationPlayer; | 29 class AnimationPlayer; |
| 30 class FilterOperations; | 30 class FilterOperations; |
| 31 class TransformOperations; |
| 31 enum class ElementListType; | 32 enum class ElementListType; |
| 32 struct AnimationEvent; | 33 struct AnimationEvent; |
| 33 | 34 |
| 34 enum class UpdateTickingType { NORMAL, FORCE }; | 35 enum class UpdateTickingType { NORMAL, FORCE }; |
| 35 | 36 |
| 36 // An ElementAnimations owns a list of all AnimationPlayers, attached to | 37 // An ElementAnimations owns a list of all AnimationPlayers, attached to |
| 37 // the element. | 38 // the element. |
| 38 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship). | 39 // This is a CC counterpart for blink::ElementAnimations (in 1:1 relationship). |
| 39 // No pointer to/from respective blink::ElementAnimations object for now. | 40 // No pointer to/from respective blink::ElementAnimations object for now. |
| 40 class CC_ANIMATION_EXPORT ElementAnimations | 41 class CC_ANIMATION_EXPORT ElementAnimations |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 | 143 |
| 143 void SetNeedsPushProperties(); | 144 void SetNeedsPushProperties(); |
| 144 bool needs_push_properties() const { return needs_push_properties_; } | 145 bool needs_push_properties() const { return needs_push_properties_; } |
| 145 | 146 |
| 146 void UpdateClientAnimationState(); | 147 void UpdateClientAnimationState(); |
| 147 void SetNeedsUpdateImplClientState(); | 148 void SetNeedsUpdateImplClientState(); |
| 148 | 149 |
| 149 void NotifyClientOpacityAnimated(float opacity, | 150 void NotifyClientOpacityAnimated(float opacity, |
| 150 bool notify_active_elements, | 151 bool notify_active_elements, |
| 151 bool notify_pending_elements); | 152 bool notify_pending_elements); |
| 152 void NotifyClientTransformAnimated(const gfx::Transform& transform, | 153 void NotifyClientTransformOperationsAnimated( |
| 153 bool notify_active_elements, | 154 const TransformOperations& operations, |
| 154 bool notify_pending_elements); | 155 bool notify_active_elements, |
| 156 bool notify_pending_elements); |
| 155 void NotifyClientFilterAnimated(const FilterOperations& filter, | 157 void NotifyClientFilterAnimated(const FilterOperations& filter, |
| 156 bool notify_active_elements, | 158 bool notify_active_elements, |
| 157 bool notify_pending_elements); | 159 bool notify_pending_elements); |
| 158 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset, | 160 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset, |
| 159 bool notify_active_elements, | 161 bool notify_active_elements, |
| 160 bool notify_pending_elements); | 162 bool notify_pending_elements); |
| 161 void NotifyClientBoundsAnimated(const gfx::SizeF& size, | 163 void NotifyClientBoundsAnimated(const gfx::SizeF& size, |
| 162 bool notify_active_elements, | 164 bool notify_active_elements, |
| 163 bool notify_pending_elements); | 165 bool notify_pending_elements); |
| 164 | 166 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 PropertyAnimationState pending_state_; | 198 PropertyAnimationState pending_state_; |
| 197 | 199 |
| 198 mutable bool needs_update_impl_client_state_; | 200 mutable bool needs_update_impl_client_state_; |
| 199 | 201 |
| 200 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 202 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
| 201 }; | 203 }; |
| 202 | 204 |
| 203 } // namespace cc | 205 } // namespace cc |
| 204 | 206 |
| 205 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 207 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| OLD | NEW |