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 InterpolationType_h | 5 #ifndef InterpolationType_h |
6 #define InterpolationType_h | 6 #define InterpolationType_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/animation/InterpolationValue.h" | 9 #include "core/animation/InterpolationValue.h" |
9 #include "core/animation/Keyframe.h" | 10 #include "core/animation/Keyframe.h" |
10 #include "core/animation/PairwiseInterpolationValue.h" | 11 #include "core/animation/PairwiseInterpolationValue.h" |
11 #include "core/animation/PrimitiveInterpolation.h" | 12 #include "core/animation/PrimitiveInterpolation.h" |
12 #include "core/animation/PropertyHandle.h" | 13 #include "core/animation/PropertyHandle.h" |
13 #include "core/animation/UnderlyingValueOwner.h" | 14 #include "core/animation/UnderlyingValueOwner.h" |
14 #include "platform/heap/Handle.h" | 15 #include "platform/heap/Handle.h" |
15 #include "wtf/Allocator.h" | 16 #include "wtf/Allocator.h" |
16 #include <memory> | |
17 | 17 |
18 namespace blink { | 18 namespace blink { |
19 | 19 |
20 class InterpolationEnvironment; | 20 class InterpolationEnvironment; |
21 | 21 |
22 // Subclasses of InterpolationType implement the logic for a specific value type | 22 // Subclasses of InterpolationType implement the logic for a specific value type |
23 // of a specific PropertyHandle to: | 23 // of a specific PropertyHandle to: |
24 // - Convert PropertySpecificKeyframe values to (Pairwise)?InterpolationValues: | 24 // - Convert PropertySpecificKeyframe values to (Pairwise)?InterpolationValues: |
25 // maybeConvertPairwise() and maybeConvertSingle() | 25 // maybeConvertPairwise() and maybeConvertSingle() |
26 // - Convert the target Element's property value to an InterpolationValue: | 26 // - Convert the target Element's property value to an InterpolationValue: |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 protected: | 116 protected: |
117 InterpolationType(PropertyHandle property) : m_property(property) {} | 117 InterpolationType(PropertyHandle property) : m_property(property) {} |
118 | 118 |
119 const PropertyHandle m_property; | 119 const PropertyHandle m_property; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace blink | 122 } // namespace blink |
123 | 123 |
124 #endif // InterpolationType_h | 124 #endif // InterpolationType_h |
OLD | NEW |