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 CCKeyframedAnimationCurve_h | 5 #ifndef CCKeyframedAnimationCurve_h |
6 #define CCKeyframedAnimationCurve_h | 6 #define CCKeyframedAnimationCurve_h |
7 | 7 |
8 #include "CCAnimationCurve.h" | 8 #include "CCAnimationCurve.h" |
9 #include "CCTimingFunction.h" | 9 #include "CCTimingFunction.h" |
10 #include <public/WebTransformOperations.h> | 10 #include <public/WebTransformOperations.h> |
11 #include <wtf/OwnPtr.h> | 11 #include <wtf/OwnPtr.h> |
12 #include <wtf/PassOwnPtr.h> | 12 #include <wtf/PassOwnPtr.h> |
13 #include <wtf/Vector.h> | 13 #include <wtf/Vector.h> |
14 | 14 |
15 namespace WebCore { | 15 namespace cc { |
16 | 16 |
17 class CCKeyframe { | 17 class CCKeyframe { |
18 public: | 18 public: |
19 double time() const; | 19 double time() const; |
20 const CCTimingFunction* timingFunction() const; | 20 const CCTimingFunction* timingFunction() const; |
21 | 21 |
22 protected: | 22 protected: |
23 CCKeyframe(double time, PassOwnPtr<CCTimingFunction>); | 23 CCKeyframe(double time, PassOwnPtr<CCTimingFunction>); |
24 virtual ~CCKeyframe(); | 24 virtual ~CCKeyframe(); |
25 | 25 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 virtual WebKit::WebTransformationMatrix getValue(double t) const OVERRIDE; | 99 virtual WebKit::WebTransformationMatrix getValue(double t) const OVERRIDE; |
100 | 100 |
101 private: | 101 private: |
102 CCKeyframedTransformAnimationCurve(); | 102 CCKeyframedTransformAnimationCurve(); |
103 | 103 |
104 // Always sorted in order of increasing time. No two keyframes have the | 104 // Always sorted in order of increasing time. No two keyframes have the |
105 // same time. | 105 // same time. |
106 Vector<OwnPtr<CCTransformKeyframe> > m_keyframes; | 106 Vector<OwnPtr<CCTransformKeyframe> > m_keyframes; |
107 }; | 107 }; |
108 | 108 |
109 } // namespace WebCore | 109 } // namespace cc |
110 | 110 |
111 #endif // CCKeyframedAnimationCurve_h | 111 #endif // CCKeyframedAnimationCurve_h |
OLD | NEW |