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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | cc/animation/layer_animation_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_ANIMATION_ANIMATION_DELEGATE_H_ 5 #ifndef CC_ANIMATION_ANIMATION_DELEGATE_H_
6 #define CC_ANIMATION_ANIMATION_DELEGATE_H_ 6 #define CC_ANIMATION_ANIMATION_DELEGATE_H_
7 7
8 #include "base/time/time.h"
9 #include "cc/animation/animation.h"
10
8 namespace cc { 11 namespace cc {
9 12
10 class AnimationDelegate { 13 class AnimationDelegate {
11 public: 14 public:
12 virtual void NotifyAnimationStarted(double time) = 0; 15 // TODO(ajuma): Remove wall_clock_time once the legacy implementation of
13 virtual void NotifyAnimationFinished(double time) = 0; 16 // CSS animations and transitions in Blink is removed.
17 virtual void NotifyAnimationStarted(
18 double wall_clock_time,
19 base::TimeTicks monotonic_time,
20 Animation::TargetProperty target_property) = 0;
21 virtual void NotifyAnimationFinished(
22 double wall_clock_time,
23 base::TimeTicks monotonic_time,
24 Animation::TargetProperty target_property) = 0;
14 25
15 protected: 26 protected:
16 virtual ~AnimationDelegate() {} 27 virtual ~AnimationDelegate() {}
17 }; 28 };
18 29
19 } // namespace cc 30 } // namespace cc
20 31
21 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ 32 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_
OLDNEW
« 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