| 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 AnimatableValueKeyframe_h | 5 #ifndef AnimatableValueKeyframe_h |
| 6 #define AnimatableValueKeyframe_h | 6 #define AnimatableValueKeyframe_h |
| 7 | 7 |
| 8 #include "core/animation/AnimatableValue.h" | 8 #include "core/animation/AnimatableValue.h" |
| 9 #include "core/animation/Keyframe.h" | 9 #include "core/animation/Keyframe.h" |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 virtual void trace(Visitor*) OVERRIDE; | 31 virtual void trace(Visitor*) OVERRIDE; |
| 32 | 32 |
| 33 class PropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe { | 33 class PropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe { |
| 34 public: | 34 public: |
| 35 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, const AnimatableValue*, AnimationEffect::CompositeOperation); | 35 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, const AnimatableValue*, AnimationEffect::CompositeOperation); |
| 36 | 36 |
| 37 AnimatableValue* value() const { return m_value.get(); } | 37 AnimatableValue* value() const { return m_value.get(); } |
| 38 | 38 |
| 39 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> neutr
alKeyframe(double offset, PassRefPtr<TimingFunction> easing) const OVERRIDE FINA
L; | 39 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> neutr
alKeyframe(double offset, PassRefPtr<TimingFunction> easing) const OVERRIDE FINA
L; |
| 40 virtual PassRefPtrWillBeRawPtr<Interpolation> createInterpolation(CSSPro
pertyID, WebCore::Keyframe::PropertySpecificKeyframe* end) const OVERRIDE FINAL; | 40 virtual PassRefPtrWillBeRawPtr<Interpolation> createInterpolation(CSSPro
pertyID, WebCore::Keyframe::PropertySpecificKeyframe* end, Element*) const OVERR
IDE FINAL; |
| 41 | 41 |
| 42 virtual void trace(Visitor*) OVERRIDE; | 42 virtual void trace(Visitor*) OVERRIDE; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, PassRefPtrWillBeRawPtr<AnimatableValue>); | 45 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, PassRefPtrWillBeRawPtr<AnimatableValue>); |
| 46 | 46 |
| 47 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> clone
WithOffset(double offset) const OVERRIDE; | 47 virtual PassOwnPtrWillBeRawPtr<Keyframe::PropertySpecificKeyframe> clone
WithOffset(double offset) const OVERRIDE; |
| 48 virtual bool isAnimatableValuePropertySpecificKeyframe() const OVERRIDE
{ return true; } | 48 virtual bool isAnimatableValuePropertySpecificKeyframe() const OVERRIDE
{ return true; } |
| 49 | 49 |
| 50 RefPtrWillBeMember<AnimatableValue> m_value; | 50 RefPtrWillBeMember<AnimatableValue> m_value; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 typedef AnimatableValueKeyframe::PropertySpecificKeyframe AnimatableValuePropert
ySpecificKeyframe; | 67 typedef AnimatableValueKeyframe::PropertySpecificKeyframe AnimatableValuePropert
ySpecificKeyframe; |
| 68 | 68 |
| 69 DEFINE_TYPE_CASTS(AnimatableValueKeyframe, Keyframe, value, value->isAnimatableV
alueKeyframe(), value.isAnimatableValueKeyframe()); | 69 DEFINE_TYPE_CASTS(AnimatableValueKeyframe, Keyframe, value, value->isAnimatableV
alueKeyframe(), value.isAnimatableValueKeyframe()); |
| 70 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, Keyframe::PropertySpe
cificKeyframe, value, value->isAnimatableValuePropertySpecificKeyframe(), value.
isAnimatableValuePropertySpecificKeyframe()); | 70 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, Keyframe::PropertySpe
cificKeyframe, value, value->isAnimatableValuePropertySpecificKeyframe(), value.
isAnimatableValuePropertySpecificKeyframe()); |
| 71 | 71 |
| 72 } | 72 } |
| 73 | 73 |
| 74 #endif | 74 #endif |
| OLD | NEW |