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

Unified Diff: cc/animation/animation_delegate.h

Issue 99733003: Add monotonic time and target property to cc::AnimationDelegate notifications (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years 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 | « no previous file | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/animation_delegate.h
diff --git a/cc/animation/animation_delegate.h b/cc/animation/animation_delegate.h
index c9367b8546ab3e1e39e203f194facc3ebbd2a076..f1176a36a46fadfff393d56896200bbbde281b40 100644
--- a/cc/animation/animation_delegate.h
+++ b/cc/animation/animation_delegate.h
@@ -5,12 +5,23 @@
#ifndef CC_ANIMATION_ANIMATION_DELEGATE_H_
#define CC_ANIMATION_ANIMATION_DELEGATE_H_
+#include "base/time/time.h"
+#include "cc/animation/animation.h"
+
namespace cc {
class AnimationDelegate {
public:
- virtual void NotifyAnimationStarted(double time) = 0;
- virtual void NotifyAnimationFinished(double time) = 0;
+ // TODO(ajuma): Remove wall_clock_time once the legacy implementation of
+ // CSS animations and transitions in Blink is removed.
+ virtual void NotifyAnimationStarted(
+ double wall_clock_time,
+ base::TimeTicks monotonic_time,
+ Animation::TargetProperty target_property) = 0;
+ virtual void NotifyAnimationFinished(
+ double wall_clock_time,
+ base::TimeTicks monotonic_time,
+ Animation::TargetProperty target_property) = 0;
protected:
virtual ~AnimationDelegate() {}
« no previous file with comments | « no previous file | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698