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

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

Issue 984153002: Fix template angle bracket syntax in animation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 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" 9 #include "core/animation/AnimationPlayer.h"
10 #include "core/animation/Interpolation.h" 10 #include "core/animation/Interpolation.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 SampledEffect : public NoBaseWillBeGarbageCollected<SampledEffect> { 16 class SampledEffect : public NoBaseWillBeGarbageCollected<SampledEffect> {
17 public: 17 public:
18 static PassOwnPtrWillBeRawPtr<SampledEffect> create(Animation* animation, Pa ssOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation> > > inte rpolations) 18 static PassOwnPtrWillBeRawPtr<SampledEffect> create(Animation* animation, Pa ssOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> interp olations)
19 { 19 {
20 return adoptPtrWillBeNoop(new SampledEffect(animation, interpolations)); 20 return adoptPtrWillBeNoop(new SampledEffect(animation, interpolations));
21 } 21 }
22 22
23 void clear(); 23 void clear();
24 24
25 const WillBeHeapVector<RefPtrWillBeMember<Interpolation> >& interpolations() const { return *m_interpolations; } 25 const WillBeHeapVector<RefPtrWillBeMember<Interpolation>>& interpolations() const { return *m_interpolations; }
26 #if ENABLE(OILPAN) 26 #if ENABLE(OILPAN)
27 RawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInterpola tions() { return m_interpolations.get(); } 27 RawPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInterpola tions() { return m_interpolations.get(); }
28 #else 28 #else
29 PassOwnPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInter polations() { return m_interpolations.release(); } 29 PassOwnPtr<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> mutableInter polations() { return m_interpolations.release(); }
30 #endif 30 #endif
31 31
32 void setInterpolations(PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeM ember<Interpolation> > > interpolations) { m_interpolations = interpolations; } 32 void setInterpolations(PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWillBeM ember<Interpolation>>> interpolations) { m_interpolations = interpolations; }
33 33
34 Animation* animation() const { return m_animation; } 34 Animation* animation() const { return m_animation; }
35 unsigned sequenceNumber() const { return m_sequenceNumber; } 35 unsigned sequenceNumber() const { return m_sequenceNumber; }
36 Animation::Priority priority() const { return m_priority; } 36 Animation::Priority priority() const { return m_priority; }
37 37
38 DECLARE_TRACE(); 38 DECLARE_TRACE();
39 39
40 private: 40 private:
41 SampledEffect(Animation*, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWill BeMember<Interpolation> > >); 41 SampledEffect(Animation*, PassOwnPtrWillBeRawPtr<WillBeHeapVector<RefPtrWill BeMember<Interpolation>>>);
42 42
43 RawPtrWillBeWeakMember<Animation> m_animation; 43 RawPtrWillBeWeakMember<Animation> m_animation;
44 RefPtrWillBeMember<AnimationPlayer> m_player; 44 RefPtrWillBeMember<AnimationPlayer> m_player;
45 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> m_in terpolations; 45 OwnPtrWillBeMember<WillBeHeapVector<RefPtrWillBeMember<Interpolation>>> m_in terpolations;
46 const unsigned m_sequenceNumber; 46 const unsigned m_sequenceNumber;
47 Animation::Priority m_priority; 47 Animation::Priority m_priority;
48 }; 48 };
49 49
50 } // namespace blink 50 } // namespace blink
51 51
52 #endif // SampledEffect_h 52 #endif // SampledEffect_h
OLDNEW
« no previous file with comments | « Source/core/animation/KeyframeEffectModelTest.cpp ('k') | Source/core/animation/SampledEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698