| 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 <public/WebTransformationMatrix.h> | 8 #include <public/WebTransformationMatrix.h> |
| 9 #include <wtf/PassOwnPtr.h> | 9 #include <wtf/PassOwnPtr.h> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 const CCTransformAnimationCurve* toTransformAnimationCurve() const; | 31 const CCTransformAnimationCurve* toTransformAnimationCurve() const; |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 class CCFloatAnimationCurve : public CCAnimationCurve { | 34 class CCFloatAnimationCurve : public CCAnimationCurve { |
| 35 public: | 35 public: |
| 36 virtual ~CCFloatAnimationCurve() { } | 36 virtual ~CCFloatAnimationCurve() { } |
| 37 | 37 |
| 38 virtual float getValue(double t) const = 0; | 38 virtual float getValue(double t) const = 0; |
| 39 | 39 |
| 40 // Partial CCAnimation implementation. | 40 // Partial CCAnimation implementation. |
| 41 virtual Type type() const OVERRIDE { return Float; } | 41 virtual Type type() const OVERRIDE; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 class CCTransformAnimationCurve : public CCAnimationCurve { | 44 class CCTransformAnimationCurve : public CCAnimationCurve { |
| 45 public: | 45 public: |
| 46 virtual ~CCTransformAnimationCurve() { } | 46 virtual ~CCTransformAnimationCurve() { } |
| 47 | 47 |
| 48 virtual WebKit::WebTransformationMatrix getValue(double t) const = 0; | 48 virtual WebKit::WebTransformationMatrix getValue(double t) const = 0; |
| 49 | 49 |
| 50 // Partial CCAnimation implementation. | 50 // Partial CCAnimation implementation. |
| 51 virtual Type type() const OVERRIDE { return Transform; } | 51 virtual Type type() const OVERRIDE; |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace cc | 54 } // namespace cc |
| 55 | 55 |
| 56 #endif // CCAnimation_h | 56 #endif // CCAnimation_h |
| OLD | NEW |