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 ShadowInterpolationFunctions_h | 5 #ifndef ShadowInterpolationFunctions_h |
6 #define ShadowInterpolationFunctions_h | 6 #define ShadowInterpolationFunctions_h |
7 | 7 |
8 #include "core/animation/InterpolationValue.h" | 8 #include "core/animation/InterpolationValue.h" |
9 #include "core/animation/PairwiseInterpolationValue.h" | 9 #include "core/animation/PairwiseInterpolationValue.h" |
| 10 #include <memory> |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class ShadowData; | 14 class ShadowData; |
14 class CSSValue; | 15 class CSSValue; |
15 class StyleResolverState; | 16 class StyleResolverState; |
16 | 17 |
17 class ShadowInterpolationFunctions { | 18 class ShadowInterpolationFunctions { |
18 public: | 19 public: |
19 static InterpolationValue convertShadowData(const ShadowData&, double zoom); | 20 static InterpolationValue convertShadowData(const ShadowData&, double zoom); |
20 static InterpolationValue maybeConvertCSSValue(const CSSValue&); | 21 static InterpolationValue maybeConvertCSSValue(const CSSValue&); |
21 static PassOwnPtr<InterpolableValue> createNeutralInterpolableValue(); | 22 static std::unique_ptr<InterpolableValue> createNeutralInterpolableValue(); |
22 static bool nonInterpolableValuesAreCompatible(const NonInterpolableValue*,
const NonInterpolableValue*); | 23 static bool nonInterpolableValuesAreCompatible(const NonInterpolableValue*,
const NonInterpolableValue*); |
23 static PairwiseInterpolationValue maybeMergeSingles(InterpolationValue&& sta
rt, InterpolationValue&& end); | 24 static PairwiseInterpolationValue maybeMergeSingles(InterpolationValue&& sta
rt, InterpolationValue&& end); |
24 static void composite(OwnPtr<InterpolableValue>&, RefPtr<NonInterpolableValu
e>&, double underlyingFraction, const InterpolableValue&, const NonInterpolableV
alue*); | 25 static void composite(std::unique_ptr<InterpolableValue>&, RefPtr<NonInterpo
lableValue>&, double underlyingFraction, const InterpolableValue&, const NonInte
rpolableValue*); |
25 static ShadowData createShadowData(const InterpolableValue&, const NonInterp
olableValue*, const StyleResolverState&); | 26 static ShadowData createShadowData(const InterpolableValue&, const NonInterp
olableValue*, const StyleResolverState&); |
26 }; | 27 }; |
27 | 28 |
28 } // namespace blink | 29 } // namespace blink |
29 | 30 |
30 #endif // ShadowInterpolationFunctions_h | 31 #endif // ShadowInterpolationFunctions_h |
OLD | NEW |