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

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

Issue 8400059: Revert 107715 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
===================================================================
--- ui/gfx/compositor/layer_animator_delegate.h (revision 107719)
+++ ui/gfx/compositor/layer_animator_delegate.h (working copy)
@@ -6,28 +6,27 @@
#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"
-#include "ui/gfx/compositor/layer_animation_delegate.h"
+namespace gfx {
+class Rect;
+}
+
namespace ui {
-class LayerAnimationSequence;
+class Transform;
-// Layer animators interact with the layers using this interface.
-class COMPOSITOR_EXPORT LayerAnimatorDelegate : public LayerAnimationDelegate {
+// LayerAnimator modifies the Layer using this interface.
+class COMPOSITOR_EXPORT LayerAnimatorDelegate {
public:
- // Called when the |sequence| ends. Not called if |sequence| is aborted.
- virtual void OnLayerAnimationEnded(LayerAnimationSequence* sequence) = 0;
+ virtual void SetBoundsFromAnimator(const gfx::Rect& bounds) = 0;
+ virtual void SetTransformFromAnimator(const Transform& transform) = 0;
+ virtual void SetOpacityFromAnimator(float opacity) = 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() {}
};
} // namespace ui
-#endif // UI_GFX_COMPOSITOR_LAYER_ANIMATOR_DELEGATE_H_
+#endif // UI_GFX_COMPOSITOR_LAYER_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