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/CSSPropertyNames.h" | 8 #include "core/CSSPropertyNames.h" |
| 9 #include "core/CoreExport.h" |
9 #include "core/animation/AnimationEffect.h" | 10 #include "core/animation/AnimationEffect.h" |
10 #include "core/animation/AnimationNode.h" | 11 #include "core/animation/AnimationNode.h" |
11 #include "core/animation/animatable/AnimatableValue.h" | 12 #include "core/animation/animatable/AnimatableValue.h" |
12 | 13 |
13 namespace blink { | 14 namespace blink { |
14 | 15 |
15 using PropertySet = HashSet<CSSPropertyID>; | 16 using PropertySet = HashSet<CSSPropertyID>; |
16 | 17 |
17 class Element; | 18 class Element; |
18 class ComputedStyle; | 19 class ComputedStyle; |
19 | 20 |
20 // FIXME: Make Keyframe immutable | 21 // FIXME: Make Keyframe immutable |
21 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> { | 22 class CORE_EXPORT Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Ke
yframe> { |
22 public: | 23 public: |
23 virtual ~Keyframe() { } | 24 virtual ~Keyframe() { } |
24 | 25 |
25 void setOffset(double offset) { m_offset = offset; } | 26 void setOffset(double offset) { m_offset = offset; } |
26 double offset() const { return m_offset; } | 27 double offset() const { return m_offset; } |
27 | 28 |
28 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi
te = composite; } | 29 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi
te = composite; } |
29 AnimationEffect::CompositeOperation composite() const { return m_composite;
} | 30 AnimationEffect::CompositeOperation composite() const { return m_composite;
} |
30 | 31 |
31 void setEasing(PassRefPtr<TimingFunction> easing) { m_easing = easing; } | 32 void setEasing(PassRefPtr<TimingFunction> easing) { m_easing = easing; } |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 97 } |
97 | 98 |
98 double m_offset; | 99 double m_offset; |
99 AnimationEffect::CompositeOperation m_composite; | 100 AnimationEffect::CompositeOperation m_composite; |
100 RefPtr<TimingFunction> m_easing; | 101 RefPtr<TimingFunction> m_easing; |
101 }; | 102 }; |
102 | 103 |
103 } // namespace blink | 104 } // namespace blink |
104 | 105 |
105 #endif // Keyframe_h | 106 #endif // Keyframe_h |
OLD | NEW |