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 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class InterpolationEffect : public RefCountedWillBeGarbageCollected<Interpolatio
nEffect> { | 15 class InterpolationEffect : public RefCountedWillBeGarbageCollected<Interpolatio
nEffect> { |
16 public: | 16 public: |
17 static PassRefPtrWillBeRawPtr<InterpolationEffect> create() { return adoptRe
fWillBeNoop(new InterpolationEffect()); } | 17 static PassRefPtrWillBeRawPtr<InterpolationEffect> create() |
| 18 { |
| 19 return adoptRefWillBeNoop(new InterpolationEffect()); |
| 20 } |
18 | 21 |
19 PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation> >
> getActiveInterpolations(double fraction, double iterationDuration) const; | 22 void getActiveInterpolations(double fraction, double iterationDuration, OwnP
trWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&) const; |
20 | 23 |
21 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P
assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do
uble applyTo) | 24 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P
assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do
uble applyTo) |
22 { | 25 { |
23 m_interpolations.append(InterpolationRecord::create(interpolation, easin
g, start, end, applyFrom, applyTo)); | 26 m_interpolations.append(InterpolationRecord::create(interpolation, easin
g, start, end, applyFrom, applyTo)); |
24 } | 27 } |
25 | 28 |
26 void trace(Visitor*); | 29 void trace(Visitor*); |
27 | 30 |
28 private: | 31 private: |
29 InterpolationEffect() | 32 InterpolationEffect() |
(...skipping 27 matching lines...) Expand all Loading... |
57 { | 60 { |
58 } | 61 } |
59 }; | 62 }; |
60 | 63 |
61 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations; | 64 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations; |
62 }; | 65 }; |
63 | 66 |
64 } | 67 } |
65 | 68 |
66 #endif | 69 #endif |
OLD | NEW |