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

Unified Diff: ui/gfx/compositor/layer_animation_sequence.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_animation_sequence.h
diff --git a/ui/gfx/compositor/layer_animation_sequence.h b/ui/gfx/compositor/layer_animation_sequence.h
index 87673d7676608deec1b574ca9bd6109967350803..9531765f81f4cb51dadf9414d898c0ae8a902027 100644
--- a/ui/gfx/compositor/layer_animation_sequence.h
+++ b/ui/gfx/compositor/layer_animation_sequence.h
@@ -37,6 +37,10 @@ class COMPOSITOR_EXPORT LayerAnimationSequence {
// guaranteed that Animate will be called with elapsed = Duration().
void Progress(base::TimeDelta elapsed, LayerAnimationDelegate* delegate);
+ // Sets the delegate's properties to the values that would have been set had
+ // the sequence completed. Does nothing if the sequence is cyclic.
+ void SetTarget(LayerAnimationDelegate* delegate) const;
+
// Aborts the given animation.
void Abort();

Powered by Google App Engine
This is Rietveld 408576698