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

Unified Diff: ui/compositor/layer_animator.h

Issue 11280188: Fix focus loss on partial lock. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Review fixes Created 8 years, 1 month 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/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(); }

Powered by Google App Engine
This is Rietveld 408576698