| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void StartAnimations(base::TimeTicks monotonic_time); | 172 void StartAnimations(base::TimeTicks monotonic_time); |
| 173 void PromoteStartedAnimations(base::TimeTicks monotonic_time, | 173 void PromoteStartedAnimations(base::TimeTicks monotonic_time, |
| 174 AnimationEventsVector* events); | 174 AnimationEventsVector* events); |
| 175 void MarkFinishedAnimations(base::TimeTicks monotonic_time); | 175 void MarkFinishedAnimations(base::TimeTicks monotonic_time); |
| 176 void MarkAnimationsForDeletion(base::TimeTicks monotonic_time, | 176 void MarkAnimationsForDeletion(base::TimeTicks monotonic_time, |
| 177 AnimationEventsVector* events); | 177 AnimationEventsVector* events); |
| 178 void PurgeAnimationsMarkedForDeletion(); | 178 void PurgeAnimationsMarkedForDeletion(); |
| 179 | 179 |
| 180 void TickAnimations(base::TimeTicks monotonic_time); | 180 void TickAnimations(base::TimeTicks monotonic_time); |
| 181 | 181 |
| 182 enum UpdateActivationType { | 182 enum UpdateActivationType { NORMAL_ACTIVATION, FORCE_ACTIVATION }; |
| 183 NormalActivation, | |
| 184 ForceActivation | |
| 185 }; | |
| 186 void UpdateActivation(UpdateActivationType type); | 183 void UpdateActivation(UpdateActivationType type); |
| 187 | 184 |
| 188 void NotifyObserversOpacityAnimated(float opacity, | 185 void NotifyObserversOpacityAnimated(float opacity, |
| 189 bool notify_active_observers, | 186 bool notify_active_observers, |
| 190 bool notify_pending_observers); | 187 bool notify_pending_observers); |
| 191 void NotifyObserversTransformAnimated(const gfx::Transform& transform, | 188 void NotifyObserversTransformAnimated(const gfx::Transform& transform, |
| 192 bool notify_active_observers, | 189 bool notify_active_observers, |
| 193 bool notify_pending_observers); | 190 bool notify_pending_observers); |
| 194 void NotifyObserversFilterAnimated(const FilterOperations& filter, | 191 void NotifyObserversFilterAnimated(const FilterOperations& filter, |
| 195 bool notify_active_observers, | 192 bool notify_active_observers, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 225 bool needs_to_start_animations_; | 222 bool needs_to_start_animations_; |
| 226 | 223 |
| 227 bool scroll_offset_animation_was_interrupted_; | 224 bool scroll_offset_animation_was_interrupted_; |
| 228 | 225 |
| 229 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 226 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
| 230 }; | 227 }; |
| 231 | 228 |
| 232 } // namespace cc | 229 } // namespace cc |
| 233 | 230 |
| 234 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 231 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |