| 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> | |
| 10 | 9 |
| 11 namespace blink { | 10 namespace blink { |
| 12 | 11 |
| 13 class BasicShape; | 12 class BasicShape; |
| 14 class CSSValue; | 13 class CSSValue; |
| 15 class CSSToLengthConversionData; | 14 class CSSToLengthConversionData; |
| 16 | 15 |
| 17 namespace BasicShapeInterpolationFunctions { | 16 namespace BasicShapeInterpolationFunctions { |
| 18 | 17 |
| 19 InterpolationValue maybeConvertCSSValue(const CSSValue&); | 18 InterpolationValue maybeConvertCSSValue(const CSSValue&); |
| 20 InterpolationValue maybeConvertBasicShape(const BasicShape*, double zoom); | 19 InterpolationValue maybeConvertBasicShape(const BasicShape*, double zoom); |
| 21 std::unique_ptr<InterpolableValue> createNeutralValue(const NonInterpolableValue
&); | 20 PassOwnPtr<InterpolableValue> createNeutralValue(const NonInterpolableValue&); |
| 22 bool shapesAreCompatible(const NonInterpolableValue&, const NonInterpolableValue
&); | 21 bool shapesAreCompatible(const NonInterpolableValue&, const NonInterpolableValue
&); |
| 23 PassRefPtr<BasicShape> createBasicShape(const InterpolableValue&, const NonInter
polableValue&, const CSSToLengthConversionData&); | 22 PassRefPtr<BasicShape> createBasicShape(const InterpolableValue&, const NonInter
polableValue&, const CSSToLengthConversionData&); |
| 24 | 23 |
| 25 } // namespace BasicShapeInterpolationFunctions | 24 } // namespace BasicShapeInterpolationFunctions |
| 26 | 25 |
| 27 } // namespace blink | 26 } // namespace blink |
| 28 | 27 |
| 29 #endif // BasicShapeInterpolationFunctions_h | 28 #endif // BasicShapeInterpolationFunctions_h |
| OLD | NEW |