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 TransformSVGInterpolation_h | 5 #ifndef TransformSVGInterpolation_h |
6 #define TransformSVGInterpolation_h | 6 #define TransformSVGInterpolation_h |
7 | 7 |
8 #include "core/animation/SVGInterpolation.h" | 8 #include "core/animation/SVGInterpolation.h" |
9 #include "core/svg/SVGTransformList.h" | 9 #include "core/svg/SVGTransformList.h" |
10 | 10 |
11 namespace blink { | 11 namespace blink { |
12 | 12 |
13 class TransformSVGInterpolation { | 13 class TransformSVGInterpolation { |
14 public: | 14 public: |
15 typedef SVGTransformList ListType; | 15 typedef SVGTransformList ListType; |
16 typedef SVGTransformType NonInterpolableType; | 16 typedef SVGTransformType NonInterpolableType; |
17 | 17 |
18 static bool canCreateFrom(SVGTransform* start, SVGTransform* end); | 18 static bool canCreateFrom(SVGTransform* start, SVGTransform* end); |
19 | 19 |
20 static PassRefPtrWillBeRawPtr<SVGTransformList> createList(const SVGAnimated
PropertyBase&) | 20 static PassRefPtrWillBeRawPtr<SVGTransformList> createList(const SVGAnimated
PropertyBase&) |
21 { | 21 { |
22 return SVGTransformList::create(); | 22 return SVGTransformList::create(); |
23 } | 23 } |
24 | 24 |
25 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGTran
sform*, const SVGAnimatedPropertyBase*, SVGTransformType*); | 25 static InterpolableValue* toInterpolableValue(SVGTransform*, const SVGAnimat
edPropertyBase*, SVGTransformType*); |
26 | 26 |
27 static PassRefPtrWillBeRawPtr<SVGTransform> fromInterpolableValue(const Inte
rpolableValue&, SVGTransformType, const SVGElement*); | 27 static PassRefPtrWillBeRawPtr<SVGTransform> fromInterpolableValue(const Inte
rpolableValue&, SVGTransformType, const SVGElement*); |
28 }; | 28 }; |
29 | 29 |
30 } | 30 } |
31 | 31 |
32 #endif // TransformSVGInterpolation_h | 32 #endif // TransformSVGInterpolation_h |
OLD | NEW |