| 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_ANIMATION_HOST_H_ | 5 #ifndef CC_ANIMATION_ANIMATION_HOST_H_ |
| 6 #define CC_ANIMATION_ANIMATION_HOST_H_ | 6 #define CC_ANIMATION_ANIMATION_HOST_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <unordered_map> | 9 #include <unordered_map> |
| 10 | 10 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 float* max_scale) const; | 133 float* max_scale) const; |
| 134 bool AnimationStartScale(ElementId element_id, | 134 bool AnimationStartScale(ElementId element_id, |
| 135 ElementListType list_type, | 135 ElementListType list_type, |
| 136 float* start_scale) const; | 136 float* start_scale) const; |
| 137 | 137 |
| 138 bool HasAnyAnimation(ElementId element_id) const; | 138 bool HasAnyAnimation(ElementId element_id) const; |
| 139 bool HasActiveAnimationForTesting(ElementId element_id) const; | 139 bool HasActiveAnimationForTesting(ElementId element_id) const; |
| 140 | 140 |
| 141 void ImplOnlyScrollAnimationCreate(ElementId element_id, | 141 void ImplOnlyScrollAnimationCreate(ElementId element_id, |
| 142 const gfx::ScrollOffset& target_offset, | 142 const gfx::ScrollOffset& target_offset, |
| 143 const gfx::ScrollOffset& current_offset); | 143 const gfx::ScrollOffset& current_offset, |
| 144 base::TimeTicks original_event_time); |
| 144 bool ImplOnlyScrollAnimationUpdateTarget( | 145 bool ImplOnlyScrollAnimationUpdateTarget( |
| 145 ElementId element_id, | 146 ElementId element_id, |
| 146 const gfx::Vector2dF& scroll_delta, | 147 const gfx::Vector2dF& scroll_delta, |
| 147 const gfx::ScrollOffset& max_scroll_offset, | 148 const gfx::ScrollOffset& max_scroll_offset, |
| 148 base::TimeTicks frame_monotonic_time); | 149 base::TimeTicks frame_monotonic_time); |
| 149 | 150 |
| 150 void ScrollAnimationAbort(bool needs_completion); | 151 void ScrollAnimationAbort(bool needs_completion); |
| 151 | 152 |
| 152 // This should only be called from the main thread. | 153 // This should only be called from the main thread. |
| 153 ScrollOffsetAnimations& scroll_offset_animations() const; | 154 ScrollOffsetAnimations& scroll_offset_animations() const; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 200 |
| 200 bool supports_scroll_animations_; | 201 bool supports_scroll_animations_; |
| 201 bool animation_waiting_for_deletion_; | 202 bool animation_waiting_for_deletion_; |
| 202 | 203 |
| 203 DISALLOW_COPY_AND_ASSIGN(AnimationHost); | 204 DISALLOW_COPY_AND_ASSIGN(AnimationHost); |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 } // namespace cc | 207 } // namespace cc |
| 207 | 208 |
| 208 #endif // CC_ANIMATION_ANIMATION_HOST_H_ | 209 #endif // CC_ANIMATION_ANIMATION_HOST_H_ |
| OLD | NEW |