| 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/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/animation/Keyframe.h" | 9 #include "core/animation/Keyframe.h" |
| 10 #include "core/animation/animatable/AnimatableValue.h" | 10 #include "core/animation/animatable/AnimatableValue.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 EffectModel::CompositeOperation composite) { | 41 EffectModel::CompositeOperation composite) { |
| 42 return adoptRef(new PropertySpecificKeyframe( | 42 return adoptRef(new PropertySpecificKeyframe( |
| 43 offset, std::move(easing), std::move(value), composite)); | 43 offset, std::move(easing), std::move(value), composite)); |
| 44 } | 44 } |
| 45 | 45 |
| 46 AnimatableValue* value() const { return m_value.get(); } | 46 AnimatableValue* value() const { return m_value.get(); } |
| 47 PassRefPtr<AnimatableValue> getAnimatableValue() const final { | 47 PassRefPtr<AnimatableValue> getAnimatableValue() const final { |
| 48 return m_value; | 48 return m_value; |
| 49 } | 49 } |
| 50 | 50 |
| 51 bool isNeutral() const final { return m_value->isNeutral(); } | 51 bool isNeutral() const final { return false; } |
| 52 PassRefPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe( | 52 PassRefPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe( |
| 53 double offset, | 53 double offset, |
| 54 PassRefPtr<TimingFunction> easing) const final; | 54 PassRefPtr<TimingFunction> easing) const final { |
| 55 NOTREACHED(); |
| 56 return nullptr; |
| 57 } |
| 55 PassRefPtr<Interpolation> createInterpolation( | 58 PassRefPtr<Interpolation> createInterpolation( |
| 56 const PropertyHandle&, | 59 const PropertyHandle&, |
| 57 const Keyframe::PropertySpecificKeyframe& end) const final; | 60 const Keyframe::PropertySpecificKeyframe& end) const final; |
| 58 | 61 |
| 59 private: | 62 private: |
| 60 PropertySpecificKeyframe(double offset, | 63 PropertySpecificKeyframe(double offset, |
| 61 PassRefPtr<TimingFunction> easing, | 64 PassRefPtr<TimingFunction> easing, |
| 62 PassRefPtr<AnimatableValue> value, | 65 PassRefPtr<AnimatableValue> value, |
| 63 EffectModel::CompositeOperation composite) | 66 EffectModel::CompositeOperation composite) |
| 64 : Keyframe::PropertySpecificKeyframe(offset, | 67 : Keyframe::PropertySpecificKeyframe(offset, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 value.isAnimatableValueKeyframe()); | 103 value.isAnimatableValueKeyframe()); |
| 101 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, | 104 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, |
| 102 Keyframe::PropertySpecificKeyframe, | 105 Keyframe::PropertySpecificKeyframe, |
| 103 value, | 106 value, |
| 104 value->isAnimatableValuePropertySpecificKeyframe(), | 107 value->isAnimatableValuePropertySpecificKeyframe(), |
| 105 value.isAnimatableValuePropertySpecificKeyframe()); | 108 value.isAnimatableValuePropertySpecificKeyframe()); |
| 106 | 109 |
| 107 } // namespace blink | 110 } // namespace blink |
| 108 | 111 |
| 109 #endif | 112 #endif |
| OLD | NEW |