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

Unified Diff: ui/compositor/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/compositor.gyp ('k') | ui/compositor/layer_animator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_animation_timer.h
diff --git a/ui/compositor/layer_animation_timer.h b/ui/compositor/layer_animation_timer.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a6dfb8b6e4e16283a6b03d35fa49c30ba4caf0d
--- /dev/null
+++ b/ui/compositor/layer_animation_timer.h
@@ -0,0 +1,26 @@
+// 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_LAYER_ANIMATION_TIMER_H_
+#define UI_COMPOSITOR_LAYER_ANIMATION_TIMER_H_
+
+#include "ui/base/animation/animation_container.h"
+#include "ui/compositor/compositor_export.h"
+
+namespace ui {
+
+class COMPOSITOR_EXPORT LayerAnimationTimer {
+ public:
+ virtual ~LayerAnimationTimer() {
+ }
+
+ virtual void Start(AnimationContainerElement*) = 0;
+ virtual void Stop(AnimationContainerElement*) = 0;
+ virtual base::TimeTicks last_tick_time() const = 0;
+ virtual bool is_running() const = 0;
+};
+
+} // namespace ui
+
+#endif // UI_COMPOSITOR_LAYER_ANIMATION_TIMER_H_
« no previous file with comments | « ui/compositor/compositor.gyp ('k') | ui/compositor/layer_animator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698