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 CC_KEYFRAMED_ANIMATION_CURVE_H_ | 5 #ifndef CC_KEYFRAMED_ANIMATION_CURVE_H_ |
6 #define CC_KEYFRAMED_ANIMATION_CURVE_H_ | 6 #define CC_KEYFRAMED_ANIMATION_CURVE_H_ |
7 | 7 |
8 #include "cc/animation_curve.h" | 8 #include "cc/animation_curve.h" |
9 #include "cc/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "cc/scoped_ptr_vector.h" | 10 #include "cc/scoped_ptr_vector.h" |
11 #include "cc/timing_function.h" | 11 #include "cc/timing_function.h" |
12 #include <public/WebTransformOperations.h> | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebTransformOperati
ons.h" |
13 | 13 |
14 namespace cc { | 14 namespace cc { |
15 | 15 |
16 class CC_EXPORT Keyframe { | 16 class CC_EXPORT Keyframe { |
17 public: | 17 public: |
18 double time() const; | 18 double time() const; |
19 const TimingFunction* timingFunction() const; | 19 const TimingFunction* timingFunction() const; |
20 | 20 |
21 protected: | 21 protected: |
22 Keyframe(double time, scoped_ptr<TimingFunction>); | 22 Keyframe(double time, scoped_ptr<TimingFunction>); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 // Always sorted in order of increasing time. No two keyframes have the | 107 // Always sorted in order of increasing time. No two keyframes have the |
108 // same time. | 108 // same time. |
109 ScopedPtrVector<TransformKeyframe> m_keyframes; | 109 ScopedPtrVector<TransformKeyframe> m_keyframes; |
110 | 110 |
111 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve); | 111 DISALLOW_COPY_AND_ASSIGN(KeyframedTransformAnimationCurve); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace cc | 114 } // namespace cc |
115 | 115 |
116 #endif // CC_KEYFRAMED_ANIMATION_CURVE_H_ | 116 #endif // CC_KEYFRAMED_ANIMATION_CURVE_H_ |
OLD | NEW |