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 CSSInterpolationType_h | 5 #ifndef CSSInterpolationType_h |
6 #define CSSInterpolationType_h | 6 #define CSSInterpolationType_h |
7 | 7 |
8 #include "core/animation/InterpolationEnvironment.h" | 8 #include "core/animation/InterpolationEnvironment.h" |
9 #include "core/animation/InterpolationType.h" | 9 #include "core/animation/InterpolationType.h" |
10 #include "core/css/CSSPropertyMetadata.h" | |
11 | 10 |
12 namespace blink { | 11 namespace blink { |
13 | 12 |
14 class CSSInterpolationType : public InterpolationType { | 13 class CSSInterpolationType : public InterpolationType { |
15 protected: | 14 protected: |
16 CSSInterpolationType(CSSPropertyID property) | 15 CSSInterpolationType(CSSPropertyID); |
17 : InterpolationType(PropertyHandle(property)) | |
18 { } | |
19 | 16 |
20 CSSPropertyID cssProperty() const { return getProperty().cssProperty(); } | 17 CSSPropertyID cssProperty() const { return getProperty().cssProperty(); } |
21 | 18 |
22 InterpolationValue maybeConvertSingle(const PropertySpecificKeyframe&, const
InterpolationEnvironment&, const InterpolationValue& underlying, ConversionChec
kers&) const override; | 19 InterpolationValue maybeConvertSingle(const PropertySpecificKeyframe&, const
InterpolationEnvironment&, const InterpolationValue& underlying, ConversionChec
kers&) const override; |
23 virtual InterpolationValue maybeConvertNeutral(const InterpolationValue& und
erlying, ConversionCheckers&) const = 0; | 20 virtual InterpolationValue maybeConvertNeutral(const InterpolationValue& und
erlying, ConversionCheckers&) const = 0; |
24 virtual InterpolationValue maybeConvertInitial(const StyleResolverState&, Co
nversionCheckers&) const = 0; | 21 virtual InterpolationValue maybeConvertInitial(const StyleResolverState&, Co
nversionCheckers&) const = 0; |
25 virtual InterpolationValue maybeConvertInherit(const StyleResolverState&, Co
nversionCheckers&) const = 0; | 22 virtual InterpolationValue maybeConvertInherit(const StyleResolverState&, Co
nversionCheckers&) const = 0; |
26 virtual InterpolationValue maybeConvertValue(const CSSValue&, const StyleRes
olverState&, ConversionCheckers&) const = 0; | 23 virtual InterpolationValue maybeConvertValue(const CSSValue&, const StyleRes
olverState&, ConversionCheckers&) const = 0; |
27 }; | 24 }; |
28 | 25 |
29 } // namespace blink | 26 } // namespace blink |
30 | 27 |
31 #endif // CSSInterpolationType_h | 28 #endif // CSSInterpolationType_h |
OLD | NEW |