| 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 SKY_ENGINE_CORE_ANIMATION_INTERPOLABLEVALUE_H_ |
| 6 #define InterpolableValue_h | 6 #define SKY_ENGINE_CORE_ANIMATION_INTERPOLABLEVALUE_H_ |
| 7 | 7 |
| 8 #include "sky/engine/core/animation/animatable/AnimatableValue.h" | 8 #include "sky/engine/core/animation/animatable/AnimatableValue.h" |
| 9 #include "sky/engine/wtf/OwnPtr.h" | 9 #include "sky/engine/wtf/OwnPtr.h" |
| 10 #include "sky/engine/wtf/PassOwnPtr.h" | 10 #include "sky/engine/wtf/PassOwnPtr.h" |
| 11 #include "sky/engine/wtf/Vector.h" | 11 #include "sky/engine/wtf/Vector.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class InterpolableValue { | 15 class InterpolableValue { |
| 16 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(InterpolableValue); | 16 DECLARE_EMPTY_VIRTUAL_DESTRUCTOR_WILL_BE_REMOVED(InterpolableValue); |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 } | 147 } |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 DEFINE_TYPE_CASTS(InterpolableNumber, InterpolableValue, value, value->isNumber(
), value.isNumber()); | 150 DEFINE_TYPE_CASTS(InterpolableNumber, InterpolableValue, value, value->isNumber(
), value.isNumber()); |
| 151 DEFINE_TYPE_CASTS(InterpolableBool, InterpolableValue, value, value->isBool(), v
alue.isBool()); | 151 DEFINE_TYPE_CASTS(InterpolableBool, InterpolableValue, value, value->isBool(), v
alue.isBool()); |
| 152 DEFINE_TYPE_CASTS(InterpolableList, InterpolableValue, value, value->isList(), v
alue.isList()); | 152 DEFINE_TYPE_CASTS(InterpolableList, InterpolableValue, value, value->isList(), v
alue.isList()); |
| 153 DEFINE_TYPE_CASTS(InterpolableAnimatableValue, InterpolableValue, value, value->
isAnimatableValue(), value.isAnimatableValue()); | 153 DEFINE_TYPE_CASTS(InterpolableAnimatableValue, InterpolableValue, value, value->
isAnimatableValue(), value.isAnimatableValue()); |
| 154 | 154 |
| 155 } | 155 } |
| 156 | 156 |
| 157 #endif | 157 #endif // SKY_ENGINE_CORE_ANIMATION_INTERPOLABLEVALUE_H_ |
| OLD | NEW |