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 Keyframe_h | 5 #ifndef Keyframe_h |
6 #define Keyframe_h | 6 #define Keyframe_h |
7 | 7 |
8 #include "core/animation/AnimationEffect.h" | 8 #include "core/animation/AnimationEffect.h" |
9 #include "core/animation/AnimationNode.h" | 9 #include "core/animation/AnimationNode.h" |
10 #include "core/animation/PropertyHandle.h" | 10 #include "core/animation/PropertyHandle.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> { | 21 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> { |
22 public: | 22 public: |
23 virtual ~Keyframe() { } | 23 virtual ~Keyframe() { } |
24 | 24 |
25 void setOffset(double offset) { m_offset = offset; } | 25 void setOffset(double offset) { m_offset = offset; } |
26 double offset() const { return m_offset; } | 26 double offset() const { return m_offset; } |
27 | 27 |
28 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi
te = composite; } | 28 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi
te = composite; } |
29 AnimationEffect::CompositeOperation composite() const { return m_composite;
} | 29 AnimationEffect::CompositeOperation composite() const { return m_composite;
} |
30 | 30 |
31 void setEasing(PassRefPtrWillBeRawPtr<TimingFunction> easing) { m_easing = e
asing; } | 31 void setEasing(PassRefPtr<TimingFunction> easing) { m_easing = easing; } |
32 TimingFunction& easing() const { return *m_easing; } | 32 TimingFunction& easing() const { return *m_easing; } |
33 | 33 |
34 static bool compareOffsets(const RefPtrWillBeMember<Keyframe>& a, const RefP
trWillBeMember<Keyframe>& b) | 34 static bool compareOffsets(const RefPtrWillBeMember<Keyframe>& a, const RefP
trWillBeMember<Keyframe>& b) |
35 { | 35 { |
36 return a->offset() < b->offset(); | 36 return a->offset() < b->offset(); |
37 } | 37 } |
38 | 38 |
39 virtual PropertyHandleSet properties() const = 0; | 39 virtual PropertyHandleSet properties() const = 0; |
40 | 40 |
41 virtual PassRefPtrWillBeRawPtr<Keyframe> clone() const = 0; | 41 virtual PassRefPtrWillBeRawPtr<Keyframe> clone() const = 0; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 97 } |
98 | 98 |
99 double m_offset; | 99 double m_offset; |
100 AnimationEffect::CompositeOperation m_composite; | 100 AnimationEffect::CompositeOperation m_composite; |
101 RefPtr<TimingFunction> m_easing; | 101 RefPtr<TimingFunction> m_easing; |
102 }; | 102 }; |
103 | 103 |
104 } // namespace blink | 104 } // namespace blink |
105 | 105 |
106 #endif // Keyframe_h | 106 #endif // Keyframe_h |
OLD | NEW |