| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 208 |
| 209 AnimationRegistrar* registrar_; | 209 AnimationRegistrar* registrar_; |
| 210 int id_; | 210 int id_; |
| 211 ScopedPtrVector<Animation> animations_; | 211 ScopedPtrVector<Animation> animations_; |
| 212 | 212 |
| 213 // This is used to ensure that we don't spam the registrar. | 213 // This is used to ensure that we don't spam the registrar. |
| 214 bool is_active_; | 214 bool is_active_; |
| 215 | 215 |
| 216 base::TimeTicks last_tick_time_; | 216 base::TimeTicks last_tick_time_; |
| 217 | 217 |
| 218 ObserverList<LayerAnimationValueObserver> value_observers_; | 218 base::ObserverList<LayerAnimationValueObserver> value_observers_; |
| 219 ObserverList<LayerAnimationEventObserver> event_observers_; | 219 base::ObserverList<LayerAnimationEventObserver> event_observers_; |
| 220 | 220 |
| 221 LayerAnimationValueProvider* value_provider_; | 221 LayerAnimationValueProvider* value_provider_; |
| 222 | 222 |
| 223 AnimationDelegate* layer_animation_delegate_; | 223 AnimationDelegate* layer_animation_delegate_; |
| 224 | 224 |
| 225 // Only try to start animations when new animations are added or when the | 225 // Only try to start animations when new animations are added or when the |
| 226 // previous attempt at starting animations failed to start all animations. | 226 // previous attempt at starting animations failed to start all animations. |
| 227 bool needs_to_start_animations_; | 227 bool needs_to_start_animations_; |
| 228 | 228 |
| 229 bool scroll_offset_animation_was_interrupted_; | 229 bool scroll_offset_animation_was_interrupted_; |
| 230 | 230 |
| 231 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 231 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
| 232 }; | 232 }; |
| 233 | 233 |
| 234 } // namespace cc | 234 } // namespace cc |
| 235 | 235 |
| 236 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 236 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |