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

Unified Diff: ui/compositor/test/layer_animator_collection_test_controller.h

Issue 291843012: compositor: Tick the UI animations from cc, instead of from timer callbacks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 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/test/layer_animator_collection_test_controller.h
diff --git a/ui/compositor/test/layer_animator_collection_test_controller.h b/ui/compositor/test/layer_animator_collection_test_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..e305b5443cfc4a5d9d2dd7c7fb1c494a9e559e27
--- /dev/null
+++ b/ui/compositor/test/layer_animator_collection_test_controller.h
@@ -0,0 +1,29 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_COMPOSITOR_TEST_LAYER_ANIMATOR_COLLECTION_TEST_CONTROLLER_H_
+#define UI_COMPOSITOR_TEST_LAYER_ANIMATOR_COLLECTION_TEST_CONTROLLER_H_
+
+#include "ui/compositor/layer_animator_collection.h"
+
+namespace ui {
+
+// Allows tests to access the animators in the collection.
+class LayerAnimatorCollectionTestController {
+ public:
+ explicit LayerAnimatorCollectionTestController(
+ LayerAnimatorCollection* collection);
+ ~LayerAnimatorCollectionTestController();
+
+ void StopAllAnimators();
+
+ private:
+ LayerAnimatorCollection* collection_;
+
+ DISALLOW_COPY_AND_ASSIGN(LayerAnimatorCollectionTestController);
+};
+
+} // namespace ui
+
+#endif // UI_COMPOSITOR_TEST_LAYER_ANIMATOR_COLLECTION_TEST_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698