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

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

Issue 8362006: Reland r107720 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge with parent patch 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_animator.h
diff --git a/ui/gfx/compositor/layer_animator.h b/ui/gfx/compositor/layer_animator.h
index a51079c46a8e205e73c5fa94eea84aa01c2fced0..1216a04246c0c6e12402557b7dbf8ae69faebed5 100644
--- a/ui/gfx/compositor/layer_animator.h
+++ b/ui/gfx/compositor/layer_animator.h
@@ -50,12 +50,15 @@ class COMPOSITOR_EXPORT LayerAnimator : public AnimationContainerElement {
// Sets the transform on the delegate. May cause an implicit animation.
virtual void SetTransform(const Transform& transform);
+ Transform GetTargetTransform() const;
// Sets the bounds on the delegate. May cause an implicit animation.
virtual void SetBounds(const gfx::Rect& bounds);
+ gfx::Rect GetTargetBounds() const;
// Sets the opacity on the delegate. May cause an implicit animation.
virtual void SetOpacity(float opacity);
+ float GetTargetOpacity() const;
// Sets the layer animation delegate the animator is associated with. The
// animator does not own the delegate.
@@ -176,6 +179,10 @@ class COMPOSITOR_EXPORT LayerAnimator : public AnimationContainerElement {
// properties affected by |sequence|.
bool StartSequenceImmediately(LayerAnimationSequence* sequence);
+ // Sets the value of delegate as if all the running and queued animations were
+ // allowed to finish.
+ void SetTarget(LayerAnimationDelegate* delegate) const;
+
// This is the queue of animations to run.
AnimationQueue animation_queue_;

Powered by Google App Engine
This is Rietveld 408576698