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

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

Issue 2651553004: Add TransitionKeyframe class for CSS Transition refactor (Closed)
Patch Set: Header Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/animation/TransitionKeyframe.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/animation/TransitionKeyframe.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698