| 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 { NORMAL_ACTIVATION, FORCE_ACTIVATION }; | 182 enum UpdateActivationType { |
| 183 NormalActivation, |
| 184 ForceActivation |
| 185 }; |
| 183 void UpdateActivation(UpdateActivationType type); | 186 void UpdateActivation(UpdateActivationType type); |
| 184 | 187 |
| 185 void NotifyObserversOpacityAnimated(float opacity, | 188 void NotifyObserversOpacityAnimated(float opacity, |
| 186 bool notify_active_observers, | 189 bool notify_active_observers, |
| 187 bool notify_pending_observers); | 190 bool notify_pending_observers); |
| 188 void NotifyObserversTransformAnimated(const gfx::Transform& transform, | 191 void NotifyObserversTransformAnimated(const gfx::Transform& transform, |
| 189 bool notify_active_observers, | 192 bool notify_active_observers, |
| 190 bool notify_pending_observers); | 193 bool notify_pending_observers); |
| 191 void NotifyObserversFilterAnimated(const FilterOperations& filter, | 194 void NotifyObserversFilterAnimated(const FilterOperations& filter, |
| 192 bool notify_active_observers, | 195 bool notify_active_observers, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 222 bool needs_to_start_animations_; | 225 bool needs_to_start_animations_; |
| 223 | 226 |
| 224 bool scroll_offset_animation_was_interrupted_; | 227 bool scroll_offset_animation_was_interrupted_; |
| 225 | 228 |
| 226 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 229 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
| 227 }; | 230 }; |
| 228 | 231 |
| 229 } // namespace cc | 232 } // namespace cc |
| 230 | 233 |
| 231 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 234 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |