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/animation/Keyframe.h" | 9 #include "core/animation/Keyframe.h" |
9 #include "core/animation/animatable/AnimatableValue.h" | 10 #include "core/animation/animatable/AnimatableValue.h" |
10 | 11 |
11 namespace blink { | 12 namespace blink { |
12 | 13 |
13 class AnimatableValueKeyframe : public Keyframe { | 14 class CORE_EXPORT AnimatableValueKeyframe : public Keyframe { |
tasak
2015/04/15 06:08:15
warning C4275: non dll-interface class 'blink::Key
| |
14 public: | 15 public: |
15 static PassRefPtrWillBeRawPtr<AnimatableValueKeyframe> create() | 16 static PassRefPtrWillBeRawPtr<AnimatableValueKeyframe> create() |
16 { | 17 { |
17 return adoptRefWillBeNoop(new AnimatableValueKeyframe); | 18 return adoptRefWillBeNoop(new AnimatableValueKeyframe); |
18 } | 19 } |
19 void setPropertyValue(CSSPropertyID property, PassRefPtrWillBeRawPtr<Animata bleValue> value) | 20 void setPropertyValue(CSSPropertyID property, PassRefPtrWillBeRawPtr<Animata bleValue> value) |
20 { | 21 { |
21 m_propertyValues.set(property, value); | 22 m_propertyValues.set(property, value); |
22 } | 23 } |
23 void clearPropertyValue(CSSPropertyID property) { m_propertyValues.remove(pr operty); } | 24 void clearPropertyValue(CSSPropertyID property) { m_propertyValues.remove(pr operty); } |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 }; | 67 }; |
67 | 68 |
68 using AnimatableValuePropertySpecificKeyframe = AnimatableValueKeyframe::Propert ySpecificKeyframe; | 69 using AnimatableValuePropertySpecificKeyframe = AnimatableValueKeyframe::Propert ySpecificKeyframe; |
69 | 70 |
70 DEFINE_TYPE_CASTS(AnimatableValueKeyframe, Keyframe, value, value->isAnimatableV alueKeyframe(), value.isAnimatableValueKeyframe()); | 71 DEFINE_TYPE_CASTS(AnimatableValueKeyframe, Keyframe, value, value->isAnimatableV alueKeyframe(), value.isAnimatableValueKeyframe()); |
71 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, Keyframe::PropertySpe cificKeyframe, value, value->isAnimatableValuePropertySpecificKeyframe(), value. isAnimatableValuePropertySpecificKeyframe()); | 72 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, Keyframe::PropertySpe cificKeyframe, value, value->isAnimatableValuePropertySpecificKeyframe(), value. isAnimatableValuePropertySpecificKeyframe()); |
72 | 73 |
73 } | 74 } |
74 | 75 |
75 #endif | 76 #endif |
OLD | NEW |