| 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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 m_interpolations.append(InterpolationRecord::create(interpolation, easin
g, start, end, applyFrom, applyTo)); | 23 m_interpolations.append(InterpolationRecord::create(interpolation, easin
g, start, end, applyFrom, applyTo)); |
| 24 } | 24 } |
| 25 | 25 |
| 26 void trace(Visitor*); | 26 void trace(Visitor*); |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 InterpolationEffect() | 29 InterpolationEffect() |
| 30 { | 30 { |
| 31 } | 31 } |
| 32 | 32 |
| 33 class InterpolationRecord : public NoBaseWillBeGarbageCollected<Interpolatio
nRecord> { | 33 class InterpolationRecord : public NoBaseWillBeGarbageCollectedFinalized<Int
erpolationRecord> { |
| 34 public: | 34 public: |
| 35 RefPtrWillBeMember<Interpolation> m_interpolation; | 35 RefPtrWillBeMember<Interpolation> m_interpolation; |
| 36 RefPtr<TimingFunction> m_easing; | 36 RefPtr<TimingFunction> m_easing; |
| 37 double m_start; | 37 double m_start; |
| 38 double m_end; | 38 double m_end; |
| 39 double m_applyFrom; | 39 double m_applyFrom; |
| 40 double m_applyTo; | 40 double m_applyTo; |
| 41 | 41 |
| 42 static PassOwnPtrWillBeRawPtr<InterpolationRecord> create(PassRefPtrWill
BeRawPtr<Interpolation> interpolation, PassRefPtr<TimingFunction> easing, double
start, double end, double applyFrom, double applyTo) | 42 static PassOwnPtrWillBeRawPtr<InterpolationRecord> create(PassRefPtrWill
BeRawPtr<Interpolation> interpolation, PassRefPtr<TimingFunction> easing, double
start, double end, double applyFrom, double applyTo) |
| 43 { | 43 { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 57 { | 57 { |
| 58 } | 58 } |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations; | 61 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations; |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } | 64 } |
| 65 | 65 |
| 66 #endif | 66 #endif |
| OLD | NEW |