| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 bool has_any_animation() const { return !active_animations_.empty(); } | 76 bool has_any_animation() const { return !active_animations_.empty(); } |
| 77 | 77 |
| 78 // Returns true if there is an animation currently animating the given | 78 // Returns true if there is an animation currently animating the given |
| 79 // property, or if there is an animation scheduled to animate this property in | 79 // property, or if there is an animation scheduled to animate this property in |
| 80 // the future. | 80 // the future. |
| 81 bool IsAnimatingProperty(Animation::TargetProperty target_property) const; | 81 bool IsAnimatingProperty(Animation::TargetProperty target_property) const; |
| 82 | 82 |
| 83 void SetAnimationRegistrar(AnimationRegistrar* registrar); | 83 void SetAnimationRegistrar(AnimationRegistrar* registrar); |
| 84 AnimationRegistrar* animation_registrar() { return registrar_; } | 84 AnimationRegistrar* animation_registrar() { return registrar_; } |
| 85 | 85 |
| 86 void NotifyAnimationStarted(const AnimationEvent& event, | 86 void NotifyAnimationStarted(const AnimationEvent& event); |
| 87 double wall_clock_time); | 87 void NotifyAnimationFinished(const AnimationEvent& event); |
| 88 void NotifyAnimationFinished(const AnimationEvent& event, | |
| 89 double wall_clock_time); | |
| 90 void NotifyAnimationAborted(const AnimationEvent& event); | 88 void NotifyAnimationAborted(const AnimationEvent& event); |
| 91 void NotifyAnimationPropertyUpdate(const AnimationEvent& event); | 89 void NotifyAnimationPropertyUpdate(const AnimationEvent& event); |
| 92 | 90 |
| 93 void AddValueObserver(LayerAnimationValueObserver* observer); | 91 void AddValueObserver(LayerAnimationValueObserver* observer); |
| 94 void RemoveValueObserver(LayerAnimationValueObserver* observer); | 92 void RemoveValueObserver(LayerAnimationValueObserver* observer); |
| 95 | 93 |
| 96 void AddEventObserver(LayerAnimationEventObserver* observer); | 94 void AddEventObserver(LayerAnimationEventObserver* observer); |
| 97 void RemoveEventObserver(LayerAnimationEventObserver* observer); | 95 void RemoveEventObserver(LayerAnimationEventObserver* observer); |
| 98 | 96 |
| 99 void set_value_provider(LayerAnimationValueProvider* provider) { | 97 void set_value_provider(LayerAnimationValueProvider* provider) { |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 LayerAnimationValueProvider* value_provider_; | 176 LayerAnimationValueProvider* value_provider_; |
| 179 | 177 |
| 180 AnimationDelegate* layer_animation_delegate_; | 178 AnimationDelegate* layer_animation_delegate_; |
| 181 | 179 |
| 182 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); | 180 DISALLOW_COPY_AND_ASSIGN(LayerAnimationController); |
| 183 }; | 181 }; |
| 184 | 182 |
| 185 } // namespace cc | 183 } // namespace cc |
| 186 | 184 |
| 187 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ | 185 #endif // CC_ANIMATION_LAYER_ANIMATION_CONTROLLER_H_ |
| OLD | NEW |