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

Unified Diff: ui/compositor/layer_animator.h

Issue 10444014: ash: Improved window maximize/restore animations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix workspace mgr, remove ignore_window, cleanup Created 8 years, 7 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/compositor/layer_animator.h
diff --git a/ui/compositor/layer_animator.h b/ui/compositor/layer_animator.h
index 4f41bb531cca222e3b050e782cc519e7114f6247..a522946d1c5fe6970e20843861713746aac2847c 100644
--- a/ui/compositor/layer_animator.h
+++ b/ui/compositor/layer_animator.h
@@ -144,6 +144,11 @@ class COMPOSITOR_EXPORT LayerAnimator : public AnimationContainerElement {
return disable_animations_for_test_;
}
+ // Set |time_scale| > 1 to slow down animations for visual testing.
+ static void set_time_scale_for_test(int time_scale) {
+ time_scale_for_test_ = time_scale;
+ }
+
protected:
LayerAnimationDelegate* delegate() { return delegate_; }
const LayerAnimationDelegate* delegate() const { return delegate_; }
@@ -271,6 +276,9 @@ class COMPOSITOR_EXPORT LayerAnimator : public AnimationContainerElement {
// This causes all animations to complete immediately.
static bool disable_animations_for_test_;
+ // Scales all animation durations by this factor.
+ static int time_scale_for_test_;
+
// Observers are notified when layer animations end, are scheduled or are
// aborted.
ObserverList<LayerAnimationObserver> observers_;

Powered by Google App Engine
This is Rietveld 408576698