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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 | 87 |
88 DEFINE_TYPE_CASTS(InvalidatableInterpolation, | 88 DEFINE_TYPE_CASTS(InvalidatableInterpolation, |
89 Interpolation, | 89 Interpolation, |
90 value, | 90 value, |
91 value->IsInvalidatableInterpolation(), | 91 value->IsInvalidatableInterpolation(), |
92 value.IsInvalidatableInterpolation()); | 92 value.IsInvalidatableInterpolation()); |
93 | 93 |
94 } // namespace blink | 94 } // namespace blink |
95 | 95 |
96 #endif // InvalidatableInterpolation_h | 96 #endif // InvalidatableInterpolation_h |
OLD | NEW |