OLD | NEW |
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 CCAnimationCurve_h | 5 #ifndef CCAnimationCurve_h |
6 #define CCAnimationCurve_h | 6 #define CCAnimationCurve_h |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include <public/WebTransformationMatrix.h> | 9 #include <public/WebTransformationMatrix.h> |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 class FloatAnimationCurve; | 13 class FloatAnimationCurve; |
14 class TransformAnimationCurve; | 14 class TransformAnimationCurve; |
15 class IntSize; | |
16 class TransformOperations; | 15 class TransformOperations; |
17 | 16 |
18 // An animation curve is a function that returns a value given a time. | 17 // An animation curve is a function that returns a value given a time. |
19 // There are currently only two types of curve, float and transform. | 18 // There are currently only two types of curve, float and transform. |
20 class AnimationCurve { | 19 class AnimationCurve { |
21 public: | 20 public: |
22 enum Type { Float, Transform }; | 21 enum Type { Float, Transform }; |
23 | 22 |
24 virtual ~AnimationCurve() { } | 23 virtual ~AnimationCurve() { } |
25 | 24 |
(...skipping 21 matching lines...) Expand all Loading... |
47 | 46 |
48 virtual WebKit::WebTransformationMatrix getValue(double t) const = 0; | 47 virtual WebKit::WebTransformationMatrix getValue(double t) const = 0; |
49 | 48 |
50 // Partial Animation implementation. | 49 // Partial Animation implementation. |
51 virtual Type type() const OVERRIDE; | 50 virtual Type type() const OVERRIDE; |
52 }; | 51 }; |
53 | 52 |
54 } // namespace cc | 53 } // namespace cc |
55 | 54 |
56 #endif // CCAnimation_h | 55 #endif // CCAnimation_h |
OLD | NEW |