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 InvalidatableInterpolation_h | 5 #ifndef InvalidatableInterpolation_h |
6 #define InvalidatableInterpolation_h | 6 #define InvalidatableInterpolation_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/animation/Interpolation.h" | 9 #include "core/animation/Interpolation.h" |
9 #include "core/animation/InterpolationType.h" | 10 #include "core/animation/InterpolationType.h" |
10 #include "core/animation/InterpolationTypesMap.h" | 11 #include "core/animation/InterpolationTypesMap.h" |
11 #include "core/animation/PrimitiveInterpolation.h" | 12 #include "core/animation/PrimitiveInterpolation.h" |
12 #include "core/animation/TypedInterpolationValue.h" | 13 #include "core/animation/TypedInterpolationValue.h" |
13 #include <memory> | |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 // TODO(alancutter): This class will replace *StyleInterpolation and | 17 // TODO(alancutter): This class will replace *StyleInterpolation and |
18 // Interpolation. For now it needs to distinguish itself during the refactor and | 18 // Interpolation. For now it needs to distinguish itself during the refactor and |
19 // temporarily has an ugly name. | 19 // temporarily has an ugly name. |
20 class CORE_EXPORT InvalidatableInterpolation : public Interpolation { | 20 class CORE_EXPORT InvalidatableInterpolation : public Interpolation { |
21 public: | 21 public: |
22 static PassRefPtr<InvalidatableInterpolation> create( | 22 static PassRefPtr<InvalidatableInterpolation> create( |
23 const PropertyHandle& property, | 23 const PropertyHandle& property, |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 | 86 |
87 DEFINE_TYPE_CASTS(InvalidatableInterpolation, | 87 DEFINE_TYPE_CASTS(InvalidatableInterpolation, |
88 Interpolation, | 88 Interpolation, |
89 value, | 89 value, |
90 value->isInvalidatableInterpolation(), | 90 value->isInvalidatableInterpolation(), |
91 value.isInvalidatableInterpolation()); | 91 value.isInvalidatableInterpolation()); |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif // InvalidatableInterpolation_h | 95 #endif // InvalidatableInterpolation_h |
OLD | NEW |