Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(30)

Side by Side Diff: Source/core/animation/animatable/AnimatableValueKeyframe.h

Issue 1082293003: Componentization: make core/animation,clipboard,css,dom,editing,frame,html visible for blink_web. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 {
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
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
OLDNEW
« no previous file with comments | « Source/core/animation/animatable/AnimatableShapeValue.h ('k') | Source/core/animation/animatable/AnimatableVisibility.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698