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 AnimatableValueKeyframe_h | 5 #ifndef AnimatableValueKeyframe_h |
6 #define AnimatableValueKeyframe_h | 6 #define AnimatableValueKeyframe_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/animation/Keyframe.h" | 9 #include "core/animation/Keyframe.h" |
10 #include "core/animation/animatable/AnimatableValue.h" | 10 #include "core/animation/animatable/AnimatableValue.h" |
11 #include "core/css/CSSPropertyIDTemplates.h" | 11 #include "core/css/CSSPropertyIDTemplates.h" |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
| 15 // TODO(alancutter): Delete this class once TransitionKeyframe has completely |
| 16 // replaced it. |
15 class CORE_EXPORT AnimatableValueKeyframe : public Keyframe { | 17 class CORE_EXPORT AnimatableValueKeyframe : public Keyframe { |
16 public: | 18 public: |
17 static PassRefPtr<AnimatableValueKeyframe> create() { | 19 static PassRefPtr<AnimatableValueKeyframe> create() { |
18 return adoptRef(new AnimatableValueKeyframe); | 20 return adoptRef(new AnimatableValueKeyframe); |
19 } | 21 } |
20 void setPropertyValue(CSSPropertyID property, | 22 void setPropertyValue(CSSPropertyID property, |
21 PassRefPtr<AnimatableValue> value) { | 23 PassRefPtr<AnimatableValue> value) { |
22 m_propertyValues.set(property, std::move(value)); | 24 m_propertyValues.set(property, std::move(value)); |
23 } | 25 } |
24 void clearPropertyValue(CSSPropertyID property) { | 26 void clearPropertyValue(CSSPropertyID property) { |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 value.isAnimatableValueKeyframe()); | 100 value.isAnimatableValueKeyframe()); |
99 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, | 101 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, |
100 Keyframe::PropertySpecificKeyframe, | 102 Keyframe::PropertySpecificKeyframe, |
101 value, | 103 value, |
102 value->isAnimatableValuePropertySpecificKeyframe(), | 104 value->isAnimatableValuePropertySpecificKeyframe(), |
103 value.isAnimatableValuePropertySpecificKeyframe()); | 105 value.isAnimatableValuePropertySpecificKeyframe()); |
104 | 106 |
105 } // namespace blink | 107 } // namespace blink |
106 | 108 |
107 #endif | 109 #endif |
OLD | NEW |