OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 InterpolableValue_h | 5 #ifndef InterpolableValue_h |
6 #define InterpolableValue_h | 6 #define InterpolableValue_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/animatable/AnimatableValue.h" | 9 #include "core/animation/animatable/AnimatableValue.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
11 #include "wtf/PtrUtil.h" | 11 #include "wtf/PtrUtil.h" |
12 #include "wtf/Vector.h" | 12 #include "wtf/Vector.h" |
13 #include <memory> | 13 #include <memory> |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 // Represents the components of a PropertySpecificKeyframe's value that change s
moothly as it interpolates to an adjacent value. | 17 // Represents the components of a PropertySpecificKeyframe's value that change |
| 18 // smoothly as it interpolates to an adjacent value. |
18 class CORE_EXPORT InterpolableValue { | 19 class CORE_EXPORT InterpolableValue { |
19 USING_FAST_MALLOC(InterpolableValue); | 20 USING_FAST_MALLOC(InterpolableValue); |
20 | 21 |
21 public: | 22 public: |
22 virtual ~InterpolableValue() {} | 23 virtual ~InterpolableValue() {} |
23 | 24 |
24 virtual bool isNumber() const { return false; } | 25 virtual bool isNumber() const { return false; } |
25 virtual bool isBool() const { return false; } | 26 virtual bool isBool() const { return false; } |
26 virtual bool isList() const { return false; } | 27 virtual bool isList() const { return false; } |
27 virtual bool isAnimatableValue() const { return false; } | 28 virtual bool isAnimatableValue() const { return false; } |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 value.isList()); | 216 value.isList()); |
216 DEFINE_TYPE_CASTS(InterpolableAnimatableValue, | 217 DEFINE_TYPE_CASTS(InterpolableAnimatableValue, |
217 InterpolableValue, | 218 InterpolableValue, |
218 value, | 219 value, |
219 value->isAnimatableValue(), | 220 value->isAnimatableValue(), |
220 value.isAnimatableValue()); | 221 value.isAnimatableValue()); |
221 | 222 |
222 } // namespace blink | 223 } // namespace blink |
223 | 224 |
224 #endif | 225 #endif |
OLD | NEW |