| 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 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
| 14 #include "cc/animation/animation_export.h" | 14 #include "cc/animation/animation_export.h" |
| 15 #include "cc/trees/element_id.h" | 15 #include "cc/trees/element_id.h" |
| 16 #include "cc/trees/property_animation_state.h" | 16 #include "cc/trees/property_animation_state.h" |
| 17 #include "cc/trees/target_property.h" | 17 #include "cc/trees/target_property.h" |
| 18 #include "ui/gfx/geometry/scroll_offset.h" | 18 #include "ui/gfx/geometry/scroll_offset.h" |
| 19 #include "ui/gfx/transform.h" | 19 #include "ui/gfx/transform.h" |
| 20 | 20 |
| 21 namespace gfx { | 21 namespace gfx { |
| 22 class BoxF; | 22 class BoxF; |
| 23 class SizeF; |
| 23 } | 24 } |
| 24 | 25 |
| 25 namespace cc { | 26 namespace cc { |
| 26 | 27 |
| 27 class AnimationHost; | 28 class AnimationHost; |
| 28 class AnimationPlayer; | 29 class AnimationPlayer; |
| 29 class FilterOperations; | 30 class FilterOperations; |
| 30 enum class ElementListType; | 31 enum class ElementListType; |
| 31 struct AnimationEvent; | 32 struct AnimationEvent; |
| 32 | 33 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 bool notify_pending_elements); | 151 bool notify_pending_elements); |
| 151 void NotifyClientTransformAnimated(const gfx::Transform& transform, | 152 void NotifyClientTransformAnimated(const gfx::Transform& transform, |
| 152 bool notify_active_elements, | 153 bool notify_active_elements, |
| 153 bool notify_pending_elements); | 154 bool notify_pending_elements); |
| 154 void NotifyClientFilterAnimated(const FilterOperations& filter, | 155 void NotifyClientFilterAnimated(const FilterOperations& filter, |
| 155 bool notify_active_elements, | 156 bool notify_active_elements, |
| 156 bool notify_pending_elements); | 157 bool notify_pending_elements); |
| 157 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset, | 158 void NotifyClientScrollOffsetAnimated(const gfx::ScrollOffset& scroll_offset, |
| 158 bool notify_active_elements, | 159 bool notify_active_elements, |
| 159 bool notify_pending_elements); | 160 bool notify_pending_elements); |
| 161 void NotifyClientBoundsAnimated(const gfx::SizeF& size, |
| 162 bool notify_active_elements, |
| 163 bool notify_pending_elements); |
| 164 |
| 160 gfx::ScrollOffset ScrollOffsetForAnimation() const; | 165 gfx::ScrollOffset ScrollOffsetForAnimation() const; |
| 161 | 166 |
| 162 private: | 167 private: |
| 163 friend class base::RefCounted<ElementAnimations>; | 168 friend class base::RefCounted<ElementAnimations>; |
| 164 | 169 |
| 165 ElementAnimations(); | 170 ElementAnimations(); |
| 166 ~ElementAnimations(); | 171 ~ElementAnimations(); |
| 167 | 172 |
| 168 void OnFilterAnimated(ElementListType list_type, | 173 void OnFilterAnimated(ElementListType list_type, |
| 169 const FilterOperations& filters); | 174 const FilterOperations& filters); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 191 PropertyAnimationState pending_state_; | 196 PropertyAnimationState pending_state_; |
| 192 | 197 |
| 193 mutable bool needs_update_impl_client_state_; | 198 mutable bool needs_update_impl_client_state_; |
| 194 | 199 |
| 195 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 200 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
| 196 }; | 201 }; |
| 197 | 202 |
| 198 } // namespace cc | 203 } // namespace cc |
| 199 | 204 |
| 200 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 205 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
| OLD | NEW |