OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_ANIMATION_REGISTRAR_H_ |
| 6 #define CC_ANIMATION_REGISTRAR_H_ |
| 7 |
| 8 namespace cc { |
| 9 |
| 10 class LayerAnimationController; |
| 11 |
| 12 // TODO(vollick): we need to rename: |
| 13 // AnimationRegistrar -> AnimationController |
| 14 // LayerAnimationController -> LayerAnimator |
| 15 class CC_EXPORT AnimationRegistrar { |
| 16 public: |
| 17 // Registers the given animation controller as active. An active animation |
| 18 // controller is one that has a running animation that needs to be ticked. |
| 19 virtual void DidActivateAnimationController(LayerAnimationController*) = 0; |
| 20 |
| 21 // Unregisters the given animation controller. When this happens, the |
| 22 // animation controller will no longer be ticked (since it's not active). It |
| 23 // is not an error to call this function with a deactivated controller. |
| 24 virtual void DidDeactivateAnimationController(LayerAnimationController*) = 0; |
| 25 |
| 26 // Registers the given controller as alive. |
| 27 virtual void RegisterAnimationController(LayerAnimationController*) = 0; |
| 28 |
| 29 // Unregisters the given controller as alive. |
| 30 virtual void UnregisterAnimationController(LayerAnimationController*) = 0; |
| 31 }; |
| 32 |
| 33 } // namespace cc |
| 34 |
| 35 #endif // CC_ANIMATION_REGISTRAR_H_ |
OLD | NEW |