Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: ui/gfx/compositor/layer_animation_observer.h

Issue 8395046: Allows observers to be notified when layer animations complete. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge with master Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698