OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_LAYER_ANIMATION_CONTROLLER_H_ | 5 #ifndef CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 6 #define CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 enum UpdateActivationType { | 140 enum UpdateActivationType { |
141 NormalActivation, | 141 NormalActivation, |
142 ForceActivation | 142 ForceActivation |
143 }; | 143 }; |
144 void UpdateActivation(UpdateActivationType type); | 144 void UpdateActivation(UpdateActivationType type); |
145 | 145 |
146 void NotifyObserversOpacityAnimated(float opacity); | 146 void NotifyObserversOpacityAnimated(float opacity); |
147 void NotifyObserversTransformAnimated(const gfx::Transform& transform); | 147 void NotifyObserversTransformAnimated(const gfx::Transform& transform); |
148 void NotifyObserversFilterAnimated(const FilterOperations& filter); | 148 void NotifyObserversFilterAnimated(const FilterOperations& filter); |
149 void NotifyObserversScrollOffsetAnimated(gfx::Vector2dF scroll_offset); | 149 void NotifyObserversScrollOffsetAnimated(const gfx::Vector2dF& scroll_offset); |
150 | 150 |
151 void NotifyObserversAnimationWaitingForDeletion(); | 151 void NotifyObserversAnimationWaitingForDeletion(); |
152 | 152 |
153 bool HasValueObserver(); | 153 bool HasValueObserver(); |
154 bool HasActiveValueObserver(); | 154 bool HasActiveValueObserver(); |
155 | 155 |
156 AnimationRegistrar* registrar_; | 156 AnimationRegistrar* registrar_; |
157 int id_; | 157 int id_; |
158 ScopedPtrVector<Animation> active_animations_; | 158 ScopedPtrVector<Animation> active_animations_; |
159 | 159 |
160 // This is used to ensure that we don't spam the registrar. | 160 // This is used to ensure that we don't spam the registrar. |
161 bool is_active_; | 161 bool is_active_; |
162 | 162 |
163 double last_tick_time_; | 163 double last_tick_time_; |
164 | 164 |
165 ObserverList<LayerAnimationValueObserver> value_observers_; | 165 ObserverList<LayerAnimationValueObserver> value_observers_; |
166 ObserverList<LayerAnimationEventObserver> event_observers_; | 166 ObserverList<LayerAnimationEventObserver> event_observers_; |
167 | 167 |
168 LayerAnimationValueProvider* value_provider_; | 168 LayerAnimationValueProvider* value_provider_; |
169 | 169 |
170 AnimationDelegate* layer_animation_delegate_; | 170 AnimationDelegate* layer_animation_delegate_; |
171 | 171 |
172 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 172 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
173 }; | 173 }; |
174 | 174 |
175 } // namespace cc | 175 } // namespace cc |
176 | 176 |
177 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 177 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
OLD | NEW |