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/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/AnimationEffect.h" | 9 #include "core/animation/AnimationEffect.h" |
10 #include "core/animation/AnimationNode.h" | 10 #include "core/animation/AnimationNode.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // FIXME: Remove this once CompositorAnimations no longer depends on Ani
matableValues | 63 // FIXME: Remove this once CompositorAnimations no longer depends on Ani
matableValues |
64 virtual void populateAnimatableValue(CSSPropertyID, Element&, const Comp
utedStyle* baseStyle) const { } | 64 virtual void populateAnimatableValue(CSSPropertyID, Element&, const Comp
utedStyle* baseStyle) const { } |
65 virtual const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue
() const = 0; | 65 virtual const PassRefPtrWillBeRawPtr<AnimatableValue> getAnimatableValue
() const = 0; |
66 | 66 |
67 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return
false; } | 67 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return
false; } |
68 virtual bool isCSSPropertySpecificKeyframe() const { return false; } | 68 virtual bool isCSSPropertySpecificKeyframe() const { return false; } |
69 virtual bool isSVGPropertySpecificKeyframe() const { return false; } | 69 virtual bool isSVGPropertySpecificKeyframe() const { return false; } |
70 | 70 |
71 virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> neutralKeyframe
(double offset, PassRefPtr<TimingFunction> easing) const = 0; | 71 virtual PassOwnPtrWillBeRawPtr<PropertySpecificKeyframe> neutralKeyframe
(double offset, PassRefPtr<TimingFunction> easing) const = 0; |
72 virtual PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(P
ropertyHandle, blink::Keyframe::PropertySpecificKeyframe& end, Element*, const C
omputedStyle* baseStyle) const = 0; | 72 virtual PassRefPtrWillBeRawPtr<Interpolation> maybeCreateInterpolation(P
ropertyHandle, Keyframe::PropertySpecificKeyframe& end, Element*, const Computed
Style* baseStyle) const = 0; |
73 | 73 |
74 DEFINE_INLINE_VIRTUAL_TRACE() { } | 74 DEFINE_INLINE_VIRTUAL_TRACE() { } |
75 | 75 |
76 protected: | 76 protected: |
77 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, AnimationEffect::CompositeOperation); | 77 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, AnimationEffect::CompositeOperation); |
78 | 78 |
79 double m_offset; | 79 double m_offset; |
80 RefPtr<TimingFunction> m_easing; | 80 RefPtr<TimingFunction> m_easing; |
81 AnimationEffect::CompositeOperation m_composite; | 81 AnimationEffect::CompositeOperation m_composite; |
82 }; | 82 }; |
(...skipping 15 matching lines...) Expand all Loading... |
98 } | 98 } |
99 | 99 |
100 double m_offset; | 100 double m_offset; |
101 AnimationEffect::CompositeOperation m_composite; | 101 AnimationEffect::CompositeOperation m_composite; |
102 RefPtr<TimingFunction> m_easing; | 102 RefPtr<TimingFunction> m_easing; |
103 }; | 103 }; |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
106 | 106 |
107 #endif // Keyframe_h | 107 #endif // Keyframe_h |
OLD | NEW |