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 FilterStyleInterpolation_h | 5 #ifndef FilterStyleInterpolation_h |
6 #define FilterStyleInterpolation_h | 6 #define FilterStyleInterpolation_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/ListStyleInterpolation.h" | 9 #include "core/animation/ListStyleInterpolation.h" |
10 #include "core/css/CSSFunctionValue.h" | 10 #include "core/css/CSSFunctionValue.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class CORE_EXPORT FilterStyleInterpolation : public StyleInterpolation { | 14 class CORE_EXPORT FilterStyleInterpolation : public StyleInterpolation { |
15 public: | 15 public: |
16 typedef CSSValueID NonInterpolableType; | 16 typedef CSSValueID NonInterpolableType; |
17 typedef ListStyleInterpolationImpl<FilterStyleInterpolation, NonInterpolable
Type> FilterListStyleInterpolation; | 17 typedef ListStyleInterpolationImpl<FilterStyleInterpolation, NonInterpolable
Type> FilterListStyleInterpolation; |
18 | 18 |
19 static PassRefPtrWillBeRawPtr<FilterListStyleInterpolation> maybeCreateList(
const CSSValue& start, const CSSValue& end, CSSPropertyID); | 19 static PassRefPtr<FilterListStyleInterpolation> maybeCreateList(const CSSVal
ue& start, const CSSValue& end, CSSPropertyID); |
20 | 20 |
21 // The following are called by ListStyleInterpolation. | 21 // The following are called by ListStyleInterpolation. |
22 static bool canCreateFrom(const CSSValue& start, const CSSValue& end); | 22 static bool canCreateFrom(const CSSValue& start, const CSSValue& end); |
23 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(const C
SSValue&, CSSValueID&); | 23 static PassOwnPtr<InterpolableValue> toInterpolableValue(const CSSValue&, CS
SValueID&); |
24 static PassRefPtrWillBeRawPtr<CSSFunctionValue> fromInterpolableValue(const
InterpolableValue&, CSSValueID, InterpolationRange = RangeAll); | 24 static PassRefPtrWillBeRawPtr<CSSFunctionValue> fromInterpolableValue(const
InterpolableValue&, CSSValueID, InterpolationRange = RangeAll); |
25 | 25 |
26 private: | 26 private: |
27 FilterStyleInterpolation(PassOwnPtrWillBeRawPtr<InterpolableValue> start, Pa
ssOwnPtrWillBeRawPtr<InterpolableValue> end, CSSPropertyID id) | 27 FilterStyleInterpolation(PassOwnPtr<InterpolableValue> start, PassOwnPtr<Int
erpolableValue> end, CSSPropertyID id) |
28 : StyleInterpolation(start, end, id) | 28 : StyleInterpolation(start, end, id) |
29 { | 29 { |
30 } | 30 } |
31 | 31 |
32 friend class FilterStyleInterpolationTest; | 32 friend class FilterStyleInterpolationTest; |
33 }; | 33 }; |
34 | 34 |
35 } // namespace blink | 35 } // namespace blink |
36 | 36 |
37 #endif // FilterStyleInterpolation_h | 37 #endif // FilterStyleInterpolation_h |
OLD | NEW |