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 "base/containers/linked_list.h" | 8 #include "base/containers/linked_list.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 bool is_animating); | 88 bool is_animating); |
89 | 89 |
90 void CreateActiveValueObserver(); | 90 void CreateActiveValueObserver(); |
91 void DestroyActiveValueObserver(); | 91 void DestroyActiveValueObserver(); |
92 | 92 |
93 void CreatePendingValueObserver(); | 93 void CreatePendingValueObserver(); |
94 void DestroyPendingValueObserver(); | 94 void DestroyPendingValueObserver(); |
95 | 95 |
96 // AnimationDelegate implementation | 96 // AnimationDelegate implementation |
97 void NotifyAnimationStarted(base::TimeTicks monotonic_time, | 97 void NotifyAnimationStarted(base::TimeTicks monotonic_time, |
98 Animation::TargetProperty target_property, | 98 AnimationTargetProperty target_property, |
99 int group) override; | 99 int group) override; |
100 void NotifyAnimationFinished(base::TimeTicks monotonic_time, | 100 void NotifyAnimationFinished(base::TimeTicks monotonic_time, |
101 Animation::TargetProperty target_property, | 101 AnimationTargetProperty target_property, |
102 int group) override; | 102 int group) override; |
103 void NotifyAnimationAborted(base::TimeTicks monotonic_time, | 103 void NotifyAnimationAborted(base::TimeTicks monotonic_time, |
104 Animation::TargetProperty target_property, | 104 AnimationTargetProperty target_property, |
105 int group) override; | 105 int group) override; |
106 | 106 |
107 // LayerAnimationValueProvider implementation. | 107 // LayerAnimationValueProvider implementation. |
108 gfx::ScrollOffset ScrollOffsetForAnimation() const override; | 108 gfx::ScrollOffset ScrollOffsetForAnimation() const override; |
109 | 109 |
110 scoped_ptr<PlayersList> players_list_; | 110 scoped_ptr<PlayersList> players_list_; |
111 | 111 |
112 class ValueObserver; | 112 class ValueObserver; |
113 scoped_ptr<ValueObserver> active_value_observer_; | 113 scoped_ptr<ValueObserver> active_value_observer_; |
114 scoped_ptr<ValueObserver> pending_value_observer_; | 114 scoped_ptr<ValueObserver> pending_value_observer_; |
115 | 115 |
116 // LAC is owned by ElementAnimations (1:1 relationship). | 116 // LAC is owned by ElementAnimations (1:1 relationship). |
117 scoped_refptr<LayerAnimationController> layer_animation_controller_; | 117 scoped_refptr<LayerAnimationController> layer_animation_controller_; |
118 AnimationHost* animation_host_; | 118 AnimationHost* animation_host_; |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); | 120 DISALLOW_COPY_AND_ASSIGN(ElementAnimations); |
121 }; | 121 }; |
122 | 122 |
123 } // namespace cc | 123 } // namespace cc |
124 | 124 |
125 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ | 125 #endif // CC_ANIMATION_ELEMENT_ANIMATIONS_H_ |
OLD | NEW |