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_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ | 5 #ifndef CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
6 #define CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ | 6 #define CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <unordered_map> | 9 #include <unordered_map> |
10 | 10 |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
220 void CreateTestImplLayer(ElementListType element_list_type); | 220 void CreateTestImplLayer(ElementListType element_list_type); |
221 | 221 |
222 scoped_refptr<ElementAnimations> element_animations() const; | 222 scoped_refptr<ElementAnimations> element_animations() const; |
223 scoped_refptr<ElementAnimations> element_animations_impl() const; | 223 scoped_refptr<ElementAnimations> element_animations_impl() const; |
224 | 224 |
225 void ReleaseRefPtrs(); | 225 void ReleaseRefPtrs(); |
226 | 226 |
227 void AnimateLayersTransferEvents(base::TimeTicks time, | 227 void AnimateLayersTransferEvents(base::TimeTicks time, |
228 unsigned expect_events); | 228 unsigned expect_events); |
229 | 229 |
230 AnimationPlayer* GetPlayerForLayerId(ElementId element_id); | 230 AnimationPlayer* GetPlayerForElementId(ElementId element_id); |
231 AnimationPlayer* GetImplPlayerForLayerId(ElementId element_id); | 231 AnimationPlayer* GetImplPlayerForElementId(ElementId element_id); |
232 | 232 |
233 int NextTestLayerId(); | 233 ElementId NextTestElementId(); |
234 | 234 |
235 TestHostClient client_; | 235 TestHostClient client_; |
236 TestHostClient client_impl_; | 236 TestHostClient client_impl_; |
237 | 237 |
238 AnimationHost* host_; | 238 AnimationHost* host_; |
239 AnimationHost* host_impl_; | 239 AnimationHost* host_impl_; |
240 | 240 |
241 const int timeline_id_; | 241 const int timeline_id_; |
242 const int player_id_; | 242 const int player_id_; |
243 int element_id_; | 243 int element_id_; |
244 | 244 |
245 int next_test_layer_id_; | 245 ElementId next_test_element_id_; |
246 | 246 |
247 scoped_refptr<AnimationTimeline> timeline_; | 247 scoped_refptr<AnimationTimeline> timeline_; |
248 scoped_refptr<AnimationPlayer> player_; | 248 scoped_refptr<AnimationPlayer> player_; |
249 | 249 |
250 scoped_refptr<AnimationTimeline> timeline_impl_; | 250 scoped_refptr<AnimationTimeline> timeline_impl_; |
251 scoped_refptr<AnimationPlayer> player_impl_; | 251 scoped_refptr<AnimationPlayer> player_impl_; |
252 }; | 252 }; |
253 | 253 |
254 } // namespace cc | 254 } // namespace cc |
255 | 255 |
256 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ | 256 #endif // CC_TEST_ANIMATION_TIMELINES_TEST_COMMON_H_ |
OLD | NEW |