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 LengthInterpolationFunctions_h | 5 #ifndef LengthInterpolationFunctions_h |
6 #define LengthInterpolationFunctions_h | 6 #define LengthInterpolationFunctions_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/animation/InterpolationValue.h" | 9 #include "core/animation/InterpolationValue.h" |
9 #include "core/animation/PairwiseInterpolationValue.h" | 10 #include "core/animation/PairwiseInterpolationValue.h" |
10 #include "platform/Length.h" | 11 #include "platform/Length.h" |
11 #include <memory> | |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class CSSToLengthConversionData; | 15 class CSSToLengthConversionData; |
16 | 16 |
17 class LengthInterpolationFunctions { | 17 class LengthInterpolationFunctions { |
18 STATIC_ONLY(LengthInterpolationFunctions); | 18 STATIC_ONLY(LengthInterpolationFunctions); |
19 | 19 |
20 public: | 20 public: |
21 static std::unique_ptr<InterpolableValue> CreateInterpolablePixels( | 21 static std::unique_ptr<InterpolableValue> CreateInterpolablePixels( |
(...skipping 22 matching lines...) Expand all Loading... |
44 static const CSSValue* CreateCSSValue(const InterpolableValue&, | 44 static const CSSValue* CreateCSSValue(const InterpolableValue&, |
45 const NonInterpolableValue*, | 45 const NonInterpolableValue*, |
46 ValueRange); | 46 ValueRange); |
47 | 47 |
48 static void SubtractFromOneHundredPercent(InterpolationValue& result); | 48 static void SubtractFromOneHundredPercent(InterpolationValue& result); |
49 }; | 49 }; |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // LengthInterpolationFunctions_h | 53 #endif // LengthInterpolationFunctions_h |
OLD | NEW |