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

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

Issue 1113173003: Web Animations: Update naming to reflect spec changes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: No, really. Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/animation/KeyframeEffectTest.cpp ('k') | Source/core/animation/SampledEffect.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SampledEffect_h 5 #ifndef SampledEffect_h
6 #define SampledEffect_h 6 #define SampledEffect_h
7 7
8 #include "core/animation/Animation.h" 8 #include "core/animation/Animation.h"
9 #include "core/animation/AnimationPlayer.h"
10 #include "core/animation/Interpolation.h" 9 #include "core/animation/Interpolation.h"
10 #include "core/animation/KeyframeEffect.h"
11 #include "wtf/BitArray.h" 11 #include "wtf/BitArray.h"
12 #include "wtf/Vector.h" 12 #include "wtf/Vector.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class SVGElement; 16 class SVGElement;
17 17
18 class SampledEffect : public NoBaseWillBeGarbageCollected<SampledEffect> { 18 class SampledEffect : public NoBaseWillBeGarbageCollected<SampledEffect> {
19 public: 19 public:
20 static PassOwnPtrWillBeRawPtr<SampledEffect> create(Animation* animation, Pa ssOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> interp olations) 20 static PassOwnPtrWillBeRawPtr<SampledEffect> create(KeyframeEffect* animatio n, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> i nterpolations)
21 { 21 {
22 return adoptPtrWillBeNoop(new SampledEffect(animation, interpolations)); 22 return adoptPtrWillBeNoop(new SampledEffect(animation, interpolations));
23 } 23 }
24 24
25 void clear(); 25 void clear();
26 26
27 const WillBeHeapVector<RefPtrWillBeMember<Interpolation>>& interpolations() const { return *m_interpolations; } 27 const WillBeHeapVector<RefPtrWillBeMember<Interpolation>>& interpolations() const { return *m_interpolations; }
28 #if ENABLE(OILPAN) 28 #if ENABLE(OILPAN)
29 RawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInterpola tions() { return m_interpolations.get(); } 29 RawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInterpola tions() { return m_interpolations.get(); }
30 #else 30 #else
31 PassOwnPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInter polations() { return m_interpolations.release(); } 31 PassOwnPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInter polations() { return m_interpolations.release(); }
32 #endif 32 #endif
33 33
34 void setInterpolations(PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeM ember<Interpolation>>> interpolations) { m_interpolations = interpolations; } 34 void setInterpolations(PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeM ember<Interpolation>>> interpolations) { m_interpolations = interpolations; }
35 35
36 Animation* animation() const { return m_animation; } 36 KeyframeEffect* effect() const { return m_effect; }
37 unsigned sequenceNumber() const { return m_sequenceNumber; } 37 unsigned sequenceNumber() const { return m_sequenceNumber; }
38 Animation::Priority priority() const { return m_priority; } 38 KeyframeEffect::Priority priority() const { return m_priority; }
39 39
40 DECLARE_TRACE(); 40 DECLARE_TRACE();
41 41
42 void applySVGUpdate(SVGElement&); 42 void applySVGUpdate(SVGElement&);
43 43
44 private: 44 private:
45 SampledEffect(Animation*, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWill BeMember<Interpolation>>>); 45 SampledEffect(KeyframeEffect*, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPt rWillBeMember<Interpolation>>>);
46 46
47 RawPtrWillBeWeakMember<Animation> m_animation; 47 RawPtrWillBeWeakMember<KeyframeEffect> m_effect;
48 RefPtrWillBeMember<AnimationPlayer> m_player; 48 RefPtrWillBeMember<Animation> m_animation;
49 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> m_in terpolations; 49 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> m_in terpolations;
50 const unsigned m_sequenceNumber; 50 const unsigned m_sequenceNumber;
51 Animation::Priority m_priority; 51 KeyframeEffect::Priority m_priority;
52 }; 52 };
53 53
54 } // namespace blink 54 } // namespace blink
55 55
56 #endif // SampledEffect_h 56 #endif // SampledEffect_h
OLDNEW
« no previous file with comments | « Source/core/animation/KeyframeEffectTest.cpp ('k') | Source/core/animation/SampledEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698