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

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

Issue 951673002: Revert "Pull chromium at 2c3ffb2355a27c32f45e508ef861416b820c823b" (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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.cc ('k') | cc/animation/animation_curve.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_CURVE_H_ 5 #ifndef CC_ANIMATION_ANIMATION_CURVE_H_
6 #define CC_ANIMATION_ANIMATION_CURVE_H_ 6 #define CC_ANIMATION_ANIMATION_CURVE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
11 #include "cc/output/filter_operations.h" 11 #include "cc/output/filter_operations.h"
12 #include "ui/gfx/transform.h" 12 #include "ui/gfx/transform.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class BoxF; 15 class BoxF;
16 } 16 }
17 17
18 namespace cc { 18 namespace cc {
19 19
20 class ColorAnimationCurve; 20 class ColorAnimationCurve;
21 class FilterAnimationCurve; 21 class FilterAnimationCurve;
22 class FloatAnimationCurve; 22 class FloatAnimationCurve;
23 class ScrollOffsetAnimationCurve; 23 class ScrollOffsetAnimationCurve;
24 class TransformAnimationCurve; 24 class TransformAnimationCurve;
25 class TransformOperations; 25 class TransformOperations;
26 26
27 // An animation curve is a function that returns a value given a time. 27 // An animation curve is a function that returns a value given a time.
28 class CC_EXPORT AnimationCurve { 28 class CC_EXPORT AnimationCurve {
29 public: 29 public:
30 enum CurveType { COLOR, FLOAT, TRANSFORM, FILTER, SCROLL_OFFSET }; 30 enum CurveType { Color, Float, Transform, Filter, ScrollOffset };
31 31
32 virtual ~AnimationCurve() {} 32 virtual ~AnimationCurve() {}
33 33
34 virtual base::TimeDelta Duration() const = 0; 34 virtual base::TimeDelta Duration() const = 0;
35 virtual CurveType Type() const = 0; 35 virtual CurveType Type() const = 0;
36 virtual scoped_ptr<AnimationCurve> Clone() const = 0; 36 virtual scoped_ptr<AnimationCurve> Clone() const = 0;
37 37
38 const ColorAnimationCurve* ToColorAnimationCurve() const; 38 const ColorAnimationCurve* ToColorAnimationCurve() const;
39 const FloatAnimationCurve* ToFloatAnimationCurve() const; 39 const FloatAnimationCurve* ToFloatAnimationCurve() const;
40 const TransformAnimationCurve* ToTransformAnimationCurve() const; 40 const TransformAnimationCurve* ToTransformAnimationCurve() const;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual FilterOperations GetValue(base::TimeDelta t) const = 0; 104 virtual FilterOperations GetValue(base::TimeDelta t) const = 0;
105 virtual bool HasFilterThatMovesPixels() const = 0; 105 virtual bool HasFilterThatMovesPixels() const = 0;
106 106
107 // Partial Animation implementation. 107 // Partial Animation implementation.
108 CurveType Type() const override; 108 CurveType Type() const override;
109 }; 109 };
110 110
111 } // namespace cc 111 } // namespace cc
112 112
113 #endif // CC_ANIMATION_ANIMATION_CURVE_H_ 113 #endif // CC_ANIMATION_ANIMATION_CURVE_H_
OLDNEW
« no previous file with comments | « cc/animation/animation.cc ('k') | cc/animation/animation_curve.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698