Index: ui/compositor/layer_animator.h |
diff --git a/ui/compositor/layer_animator.h b/ui/compositor/layer_animator.h |
index 6c24008cb0d7698e1cb2ecca9d43bd3de14a8244..c834d587af7bf2d51831fa562576ce3dedd5d219 100644 |
--- a/ui/compositor/layer_animator.h |
+++ b/ui/compositor/layer_animator.h |
@@ -8,6 +8,7 @@ |
#include <deque> |
#include <vector> |
+#include "base/callback.h" |
#include "base/compiler_specific.h" |
#include "base/memory/linked_ptr.h" |
#include "base/memory/ref_counted.h" |
@@ -130,6 +131,14 @@ class COMPOSITOR_EXPORT LayerAnimator |
LayerAnimationElement::AnimatableProperty property, |
...); |
+ // Schedules a pause with zero length of all the specified properties. |
+ // End the list with -1. If animation is not cancelled, |callback| will be |
+ // called. |
+ void SetCompletionCallbackForProperties( |
+ base::Closure& callback, |
+ LayerAnimationElement::AnimatableProperty property, |
+ ...); |
+ |
// Returns true if there is an animation in the queue (animations remain in |
// the queue until they complete, so this includes running animations). |
bool is_animating() const { return !animation_queue_.empty(); } |