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

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

Issue 11316135: NOT READY FOR REVIEW - Add support for custom animation timers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/compositor/test/test_layer_animation_timer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/test_layer_animation_timer.h
diff --git a/ui/compositor/test/test_layer_animation_timer.h b/ui/compositor/test/test_layer_animation_timer.h
new file mode 100644
index 0000000000000000000000000000000000000000..b8c1a9dc72ca5215334a27d18442e08c0191d2a6
--- /dev/null
+++ b/ui/compositor/test/test_layer_animation_timer.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2012 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_TEST_LAYER_ANIMATION_TIMER_H_
+#define UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
+
+#include "base/compiler_specific.h"
+#include "ui/compositor/layer_animation_timer.h"
+
+namespace ui {
+
+class TestLayerAnimationTimer : public LayerAnimationTimer {
+ public:
+ TestLayerAnimationTimer();
+ virtual ~TestLayerAnimationTimer();
+
+ // Implementation of LayerAnimationTimer.
+ virtual void Start(AnimationContainerElement*) OVERRIDE;
+ virtual void Stop(AnimationContainerElement*) OVERRIDE;
+ virtual base::TimeTicks last_tick_time() const OVERRIDE;
+ virtual bool is_running() const OVERRIDE;
+
+ // This is meant to advance all started animations by the given delta.
+ void Advance(base::TimeDelta delta);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(TestLayerAnimationTimer);
+};
+
+} // namespace ui
+
+#endif // UI_COMPOSITOR_TEST_TEST_LAYER_ANIMATION_TIMER_H_
« no previous file with comments | « ui/compositor/layer_animator.cc ('k') | ui/compositor/test/test_layer_animation_timer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698