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 #include <vector> | 10 #include <vector> |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 bool MaximumTargetScale(ElementId element_id, | 148 bool MaximumTargetScale(ElementId element_id, |
149 ElementListType list_type, | 149 ElementListType list_type, |
150 float* max_scale) const override; | 150 float* max_scale) const override; |
151 bool AnimationStartScale(ElementId element_id, | 151 bool AnimationStartScale(ElementId element_id, |
152 ElementListType list_type, | 152 ElementListType list_type, |
153 float* start_scale) const override; | 153 float* start_scale) const override; |
154 | 154 |
155 bool HasAnyAnimation(ElementId element_id) const override; | 155 bool HasAnyAnimation(ElementId element_id) const override; |
156 bool HasTickingAnimationForTesting(ElementId element_id) const override; | 156 bool HasTickingAnimationForTesting(ElementId element_id) const override; |
157 | 157 |
158 void ImplOnlyScrollAnimationCreate(ElementId element_id, | 158 void ImplOnlyScrollAnimationCreate( |
159 const gfx::ScrollOffset& target_offset, | 159 ElementId element_id, |
160 const gfx::ScrollOffset& current_offset, | 160 const gfx::ScrollOffset& target_offset, |
161 base::TimeDelta delayed_by) override; | 161 const gfx::ScrollOffset& current_offset, |
| 162 base::TimeDelta delayed_by, |
| 163 base::TimeDelta animation_start_offset) override; |
162 bool ImplOnlyScrollAnimationUpdateTarget( | 164 bool ImplOnlyScrollAnimationUpdateTarget( |
163 ElementId element_id, | 165 ElementId element_id, |
164 const gfx::Vector2dF& scroll_delta, | 166 const gfx::Vector2dF& scroll_delta, |
165 const gfx::ScrollOffset& max_scroll_offset, | 167 const gfx::ScrollOffset& max_scroll_offset, |
166 base::TimeTicks frame_monotonic_time, | 168 base::TimeTicks frame_monotonic_time, |
167 base::TimeDelta delayed_by) override; | 169 base::TimeDelta delayed_by) override; |
168 | 170 |
169 void ScrollAnimationAbort() override; | 171 void ScrollAnimationAbort() override; |
170 | 172 |
171 // This should only be called from the main thread. | 173 // This should only be called from the main thread. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 | 210 |
209 bool supports_scroll_animations_; | 211 bool supports_scroll_animations_; |
210 bool needs_push_properties_; | 212 bool needs_push_properties_; |
211 | 213 |
212 DISALLOW_COPY_AND_ASSIGN(AnimationHost); | 214 DISALLOW_COPY_AND_ASSIGN(AnimationHost); |
213 }; | 215 }; |
214 | 216 |
215 } // namespace cc | 217 } // namespace cc |
216 | 218 |
217 #endif // CC_ANIMATION_ANIMATION_HOST_H_ | 219 #endif // CC_ANIMATION_ANIMATION_HOST_H_ |
OLD | NEW |