Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: third_party/WebKit/Source/core/animation/BasicShapeInterpolationFunctions.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698