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

Side by Side Diff: cc/animation/animation_delegate.h

Issue 2506093003: CC Animation: Make cc/animation an independent GN component. (Closed)
Patch Set: Rebase. Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/animation/animation_curve.h ('k') | cc/animation/animation_events.h » ('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" 8 #include "base/time/time.h"
9 #include "cc/animation/animation.h" 9 #include "cc/animation/animation.h"
10 #include "cc/animation/animation_curve.h" 10 #include "cc/animation/animation_curve.h"
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class CC_EXPORT AnimationDelegate { 14 class CC_ANIMATION_EXPORT AnimationDelegate {
15 public: 15 public:
16 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time, 16 virtual void NotifyAnimationStarted(base::TimeTicks monotonic_time,
17 TargetProperty::Type target_property, 17 TargetProperty::Type target_property,
18 int group) = 0; 18 int group) = 0;
19 virtual void NotifyAnimationFinished(base::TimeTicks monotonic_time, 19 virtual void NotifyAnimationFinished(base::TimeTicks monotonic_time,
20 TargetProperty::Type target_property, 20 TargetProperty::Type target_property,
21 int group) = 0; 21 int group) = 0;
22 22
23 virtual void NotifyAnimationAborted(base::TimeTicks monotonic_time, 23 virtual void NotifyAnimationAborted(base::TimeTicks monotonic_time,
24 TargetProperty::Type target_property, 24 TargetProperty::Type target_property,
25 int group) = 0; 25 int group) = 0;
26 26
27 virtual void NotifyAnimationTakeover( 27 virtual void NotifyAnimationTakeover(
28 base::TimeTicks monotonic_time, 28 base::TimeTicks monotonic_time,
29 TargetProperty::Type target_property, 29 TargetProperty::Type target_property,
30 double animation_start_time, 30 double animation_start_time,
31 std::unique_ptr<AnimationCurve> curve) = 0; 31 std::unique_ptr<AnimationCurve> curve) = 0;
32 32
33 protected: 33 protected:
34 virtual ~AnimationDelegate() {} 34 virtual ~AnimationDelegate() {}
35 }; 35 };
36 36
37 } // namespace cc 37 } // namespace cc
38 38
39 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_ 39 #endif // CC_ANIMATION_ANIMATION_DELEGATE_H_
OLDNEW
« no previous file with comments | « cc/animation/animation_curve.h ('k') | cc/animation/animation_events.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698