Chromium Code Reviews| Index: ui/gfx/compositor/layer_animation_observer.h |
| diff --git a/ui/gfx/compositor/layer_animator_delegate.h b/ui/gfx/compositor/layer_animation_observer.h |
| similarity index 51% |
| rename from ui/gfx/compositor/layer_animator_delegate.h |
| rename to ui/gfx/compositor/layer_animation_observer.h |
| index 173584fca1ad8fc95fd9fca21ec40428668f3fbf..79d78d679cb45e974d7402225884a99a04749322 100644 |
| --- a/ui/gfx/compositor/layer_animator_delegate.h |
| +++ b/ui/gfx/compositor/layer_animation_observer.h |
| @@ -2,32 +2,30 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_ |
| -#define UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_ |
| +#ifndef UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_ |
| +#define UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_ |
| #pragma once |
| -#include "ui/gfx/rect.h" |
| -#include "ui/gfx/transform.h" |
| #include "ui/gfx/compositor/compositor_export.h" |
| -#include "ui/gfx/compositor/layer_animation_delegate.h" |
| namespace ui { |
| class LayerAnimationSequence; |
| -// Layer animators interact with the layers using this interface. |
| -class COMPOSITOR_EXPORT LayerAnimatorDelegate : public LayerAnimationDelegate { |
| +// LayerAnimationObservers are notified when animations complete. |
| +class COMPOSITOR_EXPORT LayerAnimationObserver { |
| public: |
| // Called when the |sequence| ends. Not called if |sequence| is aborted. |
| - virtual void OnLayerAnimationEnded(LayerAnimationSequence* sequence) = 0; |
| + virtual void OnLayerAnimationEnded( |
| + const LayerAnimationSequence* sequence) = 0; |
| // if this becomes necessary, this would be the appropriate place to add |
|
sky
2011/10/27 19:29:19
Remove this comment.
|
| // notifications about elements starting or ending, or sequences starting. |
| protected: |
| - virtual ~LayerAnimatorDelegate() {} |
| + virtual ~LayerAnimationObserver() {} |
| }; |
| } // namespace ui |
| -#endif // UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_ |
| +#endif // UI_GFX_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_ |