OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 InterpolationEffect_h | 5 #ifndef InterpolationEffect_h |
6 #define InterpolationEffect_h | 6 #define InterpolationEffect_h |
7 | 7 |
8 #include "core/animation/Interpolation.h" | 8 #include "core/animation/Interpolation.h" |
9 #include "platform/animation/TimingFunction.h" | 9 #include "platform/animation/TimingFunction.h" |
10 #include "wtf/PassOwnPtr.h" | 10 #include "wtf/PassOwnPtr.h" |
11 #include "wtf/RefCounted.h" | 11 #include "wtf/RefCounted.h" |
12 | 12 |
13 | |
14 namespace WebCore { | 13 namespace WebCore { |
15 | 14 |
16 class InterpolationEffect : public RefCounted<InterpolationEffect> { | 15 class InterpolationEffect : public RefCounted<InterpolationEffect> { |
17 | 16 |
18 public: | 17 public: |
19 static PassRefPtr<InterpolationEffect> create() { return adoptRef(new Interp
olationEffect()); } | 18 static PassRefPtr<InterpolationEffect> create() { return adoptRef(new Interp
olationEffect()); } |
20 | 19 |
21 PassOwnPtr<Vector<RefPtr<Interpolation> > > getActiveInterpolations(double f
raction) const; | 20 PassOwnPtr<Vector<RefPtr<Interpolation> > > getActiveInterpolations(double f
raction) const; |
22 | 21 |
23 void addInterpolation(PassRefPtr<Interpolation> interpolation, PassRefPtr<Ti
mingFunction> easing, double start, double end, double applyFrom, double applyTo
) | 22 void addInterpolation(PassRefPtr<Interpolation> interpolation, PassRefPtr<Ti
mingFunction> easing, double start, double end, double applyFrom, double applyTo
) |
(...skipping 27 matching lines...) Expand all Loading... |
51 , m_applyTo(applyTo) | 50 , m_applyTo(applyTo) |
52 { } | 51 { } |
53 }; | 52 }; |
54 | 53 |
55 Vector<OwnPtr<InterpolationRecord> > m_interpolations; | 54 Vector<OwnPtr<InterpolationRecord> > m_interpolations; |
56 }; | 55 }; |
57 | 56 |
58 } | 57 } |
59 | 58 |
60 #endif | 59 #endif |
OLD | NEW |