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

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

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge 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
« no previous file with comments | « ui/gfx/compositor/layer_animator.cc ('k') | ui/gfx/compositor/layer_animator_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/layer_animator_delegate.h
diff --git a/ui/gfx/compositor/layer_animator_delegate.h b/ui/gfx/compositor/layer_animator_delegate.h
index 85cbc7965b21c497fb03d1fe35591d570c8dda00..173584fca1ad8fc95fd9fca21ec40428668f3fbf 100644
--- a/ui/gfx/compositor/layer_animator_delegate.h
+++ b/ui/gfx/compositor/layer_animator_delegate.h
@@ -6,22 +6,23 @@
#define UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_
#pragma once
+#include "ui/gfx/rect.h"
+#include "ui/gfx/transform.h"
#include "ui/gfx/compositor/compositor_export.h"
-
-namespace gfx {
-class Rect;
-}
+#include "ui/gfx/compositor/layer_animation_delegate.h"
namespace ui {
-class Transform;
+class LayerAnimationSequence;
-// LayerAnimator modifies the Layer using this interface.
-class COMPOSITOR_EXPORT LayerAnimatorDelegate {
+// Layer animators interact with the layers using this interface.
+class COMPOSITOR_EXPORT LayerAnimatorDelegate : public LayerAnimationDelegate {
public:
- virtual void SetBoundsFromAnimator(const gfx::Rect& bounds) = 0;
- virtual void SetTransformFromAnimator(const Transform& transform) = 0;
- virtual void SetOpacityFromAnimator(float opacity) = 0;
+ // Called when the |sequence| ends. Not called if |sequence| is aborted.
+ virtual void OnLayerAnimationEnded(LayerAnimationSequence* sequence) = 0;
+
+ // if this becomes necessary, this would be the appropriate place to add
+ // notifications about elements starting or ending, or sequences starting.
protected:
virtual ~LayerAnimatorDelegate() {}
@@ -29,4 +30,4 @@ class COMPOSITOR_EXPORT LayerAnimatorDelegate {
} // namespace ui
-#endif // UI_GFX_COMPOSITOR_LAYER_H_
+#endif // UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_
« no previous file with comments | « ui/gfx/compositor/layer_animator.cc ('k') | ui/gfx/compositor/layer_animator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698