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 IntegerOptionalIntegerSVGInterpolation_h | 5 #ifndef IntegerOptionalIntegerSVGInterpolation_h |
6 #define IntegerOptionalIntegerSVGInterpolation_h | 6 #define IntegerOptionalIntegerSVGInterpolation_h |
7 | 7 |
8 #include "core/animation/SVGInterpolation.h" | 8 #include "core/animation/SVGInterpolation.h" |
9 #include "core/svg/SVGIntegerOptionalInteger.h" | 9 #include "core/svg/SVGIntegerOptionalInteger.h" |
| 10 #include "platform/heap/Handle.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class SVGIntegerOptionalInteger; | 14 class SVGIntegerOptionalInteger; |
14 | 15 |
15 class IntegerOptionalIntegerSVGInterpolation : public SVGInterpolation { | 16 class IntegerOptionalIntegerSVGInterpolation : public SVGInterpolation { |
16 public: | 17 public: |
17 static PassRefPtrWillBeRawPtr<IntegerOptionalIntegerSVGInterpolation> create
(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimate
dPropertyBase> attribute) | 18 static PassRefPtrWillBeRawPtr<IntegerOptionalIntegerSVGInterpolation> create
(SVGPropertyBase* start, SVGPropertyBase* end, PassRefPtrWillBeRawPtr<SVGAnimate
dPropertyBase> attribute) |
18 { | 19 { |
19 return adoptRefWillBeNoop(new IntegerOptionalIntegerSVGInterpolation(toI
nterpolableValue(start), toInterpolableValue(end), attribute)); | 20 return adoptRefWillBeNoop(new IntegerOptionalIntegerSVGInterpolation(toI
nterpolableValue(start), toInterpolableValue(end), attribute)); |
(...skipping 15 matching lines...) Expand all Loading... |
35 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGProp
ertyBase*); | 36 static PassOwnPtrWillBeRawPtr<InterpolableValue> toInterpolableValue(SVGProp
ertyBase*); |
36 | 37 |
37 static PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> fromInterpolableVal
ue(const InterpolableValue&, int); | 38 static PassRefPtrWillBeRawPtr<SVGIntegerOptionalInteger> fromInterpolableVal
ue(const InterpolableValue&, int); |
38 | 39 |
39 const int m_min; | 40 const int m_min; |
40 }; | 41 }; |
41 | 42 |
42 } | 43 } |
43 | 44 |
44 #endif // IntegerOptionalIntegerSVGInterpolation_h | 45 #endif // IntegerOptionalIntegerSVGInterpolation_h |
OLD | NEW |