| 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 "sky/engine/core/animation/Interpolation.h" |
| 9 #include "platform/animation/TimingFunction.h" | 9 #include "sky/engine/platform/animation/TimingFunction.h" |
| 10 #include "wtf/PassOwnPtr.h" | 10 #include "sky/engine/wtf/PassOwnPtr.h" |
| 11 #include "wtf/RefCounted.h" | 11 #include "sky/engine/wtf/RefCounted.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class InterpolationEffect : public RefCounted<InterpolationEffect> { | 15 class InterpolationEffect : public RefCounted<InterpolationEffect> { |
| 16 public: | 16 public: |
| 17 static PassRefPtr<InterpolationEffect> create() { return adoptRef(new Interp
olationEffect()); } | 17 static PassRefPtr<InterpolationEffect> create() { return adoptRef(new Interp
olationEffect()); } |
| 18 | 18 |
| 19 PassOwnPtr<Vector<RefPtr<Interpolation> > > getActiveInterpolations(double f
raction, double iterationDuration) const; | 19 PassOwnPtr<Vector<RefPtr<Interpolation> > > getActiveInterpolations(double f
raction, double iterationDuration) const; |
| 20 | 20 |
| 21 void addInterpolation(PassRefPtr<Interpolation> interpolation, PassRefPtr<Ti
mingFunction> easing, double start, double end, double applyFrom, double applyTo
) | 21 void addInterpolation(PassRefPtr<Interpolation> interpolation, PassRefPtr<Ti
mingFunction> easing, double start, double end, double applyFrom, double applyTo
) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 { | 53 { |
| 54 } | 54 } |
| 55 }; | 55 }; |
| 56 | 56 |
| 57 Vector<OwnPtr<InterpolationRecord> > m_interpolations; | 57 Vector<OwnPtr<InterpolationRecord> > m_interpolations; |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 } | 60 } |
| 61 | 61 |
| 62 #endif | 62 #endif |
| OLD | NEW |