OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CSSValueInterpolationType_h | 5 #ifndef CSSValueInterpolationType_h |
6 #define CSSValueInterpolationType_h | 6 #define CSSValueInterpolationType_h |
7 | 7 |
8 #include "core/animation/InterpolationType.h" | 8 #include "core/animation/InterpolationType.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
11 | 11 |
12 // Never supports pairwise conversion while always supporting single conversion. | 12 // Never supports pairwise conversion while always supporting single conversion. |
13 // A catch all for default for CSSValues. | 13 // A catch all for default for CSSValues. |
14 class CSSValueInterpolationType : public InterpolationType { | 14 class CSSValueInterpolationType : public InterpolationType { |
15 public: | 15 public: |
16 CSSValueInterpolationType(CSSPropertyID property) | 16 CSSValueInterpolationType(CSSPropertyID property) |
17 : InterpolationType(property) | 17 : InterpolationType(property) |
18 { } | 18 { } |
19 | 19 |
20 PassOwnPtrWillBeRawPtr<PairwisePrimitiveInterpolation> maybeConvertPairwise(
const CSSPropertySpecificKeyframe& startKeyframe, const CSSPropertySpecificKeyfr
ame& endKeyframe, const StyleResolverState* state, ConversionCheckers&) const fi
nal | 20 PairwisePrimitiveInterpolation* maybeConvertPairwise(const CSSPropertySpecif
icKeyframe& startKeyframe, const CSSPropertySpecificKeyframe& endKeyframe, const
StyleResolverState* state, ConversionCheckers&) const final |
21 { | 21 { |
22 return nullptr; | 22 return nullptr; |
23 } | 23 } |
24 | 24 |
25 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertSingle(const CSSPrope
rtySpecificKeyframe&, const StyleResolverState*, ConversionCheckers&) const fina
l; | 25 InterpolationValue* maybeConvertSingle(const CSSPropertySpecificKeyframe&, c
onst StyleResolverState*, ConversionCheckers&) const final; |
26 | 26 |
27 PassOwnPtrWillBeRawPtr<InterpolationValue> maybeConvertUnderlyingValue(const
StyleResolverState&) const final | 27 InterpolationValue* maybeConvertUnderlyingValue(const StyleResolverState&) c
onst final |
28 { | 28 { |
29 return nullptr; | 29 return nullptr; |
30 } | 30 } |
31 | 31 |
32 void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResol
verState&) const final; | 32 void apply(const InterpolableValue&, const NonInterpolableValue*, StyleResol
verState&) const final; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace blink | 35 } // namespace blink |
36 | 36 |
37 #endif // CSSValueInterpolationType_h | 37 #endif // CSSValueInterpolationType_h |
OLD | NEW |