Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Side by Side Diff: Source/core/animation/InterpolationEffect.h

Issue 194673002: Web Animations: Refactor KeyframeEffectModel to work via an InterpolationEffect. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@interpolationWrap
Patch Set: Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698