| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 BasicShapeInterpolationFunctions_h | 5 #ifndef BasicShapeInterpolationFunctions_h |
| 6 #define BasicShapeInterpolationFunctions_h | 6 #define BasicShapeInterpolationFunctions_h |
| 7 | 7 |
| 8 #include "core/animation/InterpolationValue.h" | 8 #include "core/animation/InterpolationValue.h" |
| 9 #include <memory> |
| 9 | 10 |
| 10 namespace blink { | 11 namespace blink { |
| 11 | 12 |
| 12 class BasicShape; | 13 class BasicShape; |
| 13 class CSSValue; | 14 class CSSValue; |
| 14 class CSSToLengthConversionData; | 15 class CSSToLengthConversionData; |
| 15 | 16 |
| 16 namespace BasicShapeInterpolationFunctions { | 17 namespace BasicShapeInterpolationFunctions { |
| 17 | 18 |
| 18 InterpolationValue maybeConvertCSSValue(const CSSValue&); | 19 InterpolationValue maybeConvertCSSValue(const CSSValue&); |
| 19 InterpolationValue maybeConvertBasicShape(const BasicShape*, double zoom); | 20 InterpolationValue maybeConvertBasicShape(const BasicShape*, double zoom); |
| 20 PassOwnPtr<InterpolableValue> createNeutralValue(const NonInterpolableValue&); | 21 std::unique_ptr<InterpolableValue> createNeutralValue(const NonInterpolableValue
&); |
| 21 bool shapesAreCompatible(const NonInterpolableValue&, const NonInterpolableValue
&); | 22 bool shapesAreCompatible(const NonInterpolableValue&, const NonInterpolableValue
&); |
| 22 PassRefPtr<BasicShape> createBasicShape(const InterpolableValue&, const NonInter
polableValue&, const CSSToLengthConversionData&); | 23 PassRefPtr<BasicShape> createBasicShape(const InterpolableValue&, const NonInter
polableValue&, const CSSToLengthConversionData&); |
| 23 | 24 |
| 24 } // namespace BasicShapeInterpolationFunctions | 25 } // namespace BasicShapeInterpolationFunctions |
| 25 | 26 |
| 26 } // namespace blink | 27 } // namespace blink |
| 27 | 28 |
| 28 #endif // BasicShapeInterpolationFunctions_h | 29 #endif // BasicShapeInterpolationFunctions_h |
| OLD | NEW |