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

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

Issue 851693007: Prepare for responsive CSS animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clean up includes Created 5 years, 10 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 "core/animation/Keyframe.h" 9 #include "core/animation/Keyframe.h"
10 #include "platform/RuntimeEnabledFeatures.h" 10 #include "platform/RuntimeEnabledFeatures.h"
(...skipping 12 matching lines...) Expand all
23 23
24 void getActiveInterpolations(double fraction, double iterationDuration, OwnP trWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&) const; 24 void getActiveInterpolations(double fraction, double iterationDuration, OwnP trWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>>&) const;
25 25
26 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do uble applyTo) 26 void addInterpolation(PassRefPtrWillBeRawPtr<Interpolation> interpolation, P assRefPtr<TimingFunction> easing, double start, double end, double applyFrom, do uble applyTo)
27 { 27 {
28 m_interpolations.append(InterpolationRecord::create(interpolation, easin g, start, end, applyFrom, applyTo)); 28 m_interpolations.append(InterpolationRecord::create(interpolation, easin g, start, end, applyFrom, applyTo));
29 } 29 }
30 30
31 void addInterpolationsFromKeyframes(CSSPropertyID, Element*, Keyframe::Prope rtySpecificKeyframe& keyframeA, Keyframe::PropertySpecificKeyframe& keyframeB, d ouble applyFrom, double applyTo); 31 void addInterpolationsFromKeyframes(CSSPropertyID, Element*, Keyframe::Prope rtySpecificKeyframe& keyframeA, Keyframe::PropertySpecificKeyframe& keyframeB, d ouble applyFrom, double applyTo);
32 32
33 void setDeferredInterpolationsOutdated();
alancutter (OOO until 2018) 2015/02/05 04:59:02 Just expose begin() and end() so you can for loop
alancutter (OOO until 2018) 2015/02/05 22:04:28 After discussing this offline we realised this wou
shend 2015/02/06 03:16:24 Done.
34
33 void trace(Visitor*); 35 void trace(Visitor*);
34 36
35 private: 37 private:
36 InterpolationEffect() 38 InterpolationEffect()
37 { 39 {
38 } 40 }
39 41
40 class InterpolationRecord : public NoBaseWillBeGarbageCollectedFinalized<Int erpolationRecord> { 42 class InterpolationRecord : public NoBaseWillBeGarbageCollectedFinalized<Int erpolationRecord> {
41 public: 43 public:
42 RefPtrWillBeMember<Interpolation> m_interpolation; 44 RefPtrWillBeMember<Interpolation> m_interpolation;
(...skipping 21 matching lines...) Expand all
64 { 66 {
65 } 67 }
66 }; 68 };
67 69
68 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations; 70 WillBeHeapVector<OwnPtrWillBeMember<InterpolationRecord> > m_interpolations;
69 }; 71 };
70 72
71 } // namespace blink 73 } // namespace blink
72 74
73 #endif // InterpolationEffect_h 75 #endif // InterpolationEffect_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698