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..945bacdb87f602d6e8c8d859dc66f3f30ffe4c06 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 target as if all the running and queued animations were |
+ // allowed to finish. |
+ void GetTargetValue(LayerAnimationElement::TargetValue* target) const; |
+ |
// This is the queue of animations to run. |
AnimationQueue animation_queue_; |