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

Side by Side Diff: sky/engine/core/animation/animatable/AnimatableValueKeyframe.h

Issue 723253004: Remove tons of OILPAN. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/animation/Keyframe.h" 8 #include "core/animation/Keyframe.h"
9 #include "core/animation/animatable/AnimatableValue.h" 9 #include "core/animation/animatable/AnimatableValue.h"
10 10
(...skipping 10 matching lines...) Expand all
21 m_propertyValues.add(property, value); 21 m_propertyValues.add(property, value);
22 } 22 }
23 void clearPropertyValue(CSSPropertyID property) { m_propertyValues.remove(pr operty); } 23 void clearPropertyValue(CSSPropertyID property) { m_propertyValues.remove(pr operty); }
24 AnimatableValue* propertyValue(CSSPropertyID property) const 24 AnimatableValue* propertyValue(CSSPropertyID property) const
25 { 25 {
26 ASSERT(m_propertyValues.contains(property)); 26 ASSERT(m_propertyValues.contains(property));
27 return m_propertyValues.get(property); 27 return m_propertyValues.get(property);
28 } 28 }
29 virtual PropertySet properties() const override; 29 virtual PropertySet properties() const override;
30 30
31 virtual void trace(Visitor*) override;
32
33 class PropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe { 31 class PropertySpecificKeyframe : public Keyframe::PropertySpecificKeyframe {
34 public: 32 public:
35 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, const AnimatableValue*, AnimationEffect::CompositeOperation); 33 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, const AnimatableValue*, AnimationEffect::CompositeOperation);
36 34
37 AnimatableValue* value() const { return m_value.get(); } 35 AnimatableValue* value() const { return m_value.get(); }
38 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const ove rride final { return m_value; } 36 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const ove rride final { return m_value; }
39 37
40 virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(d ouble offset, PassRefPtr<TimingFunction> easing) const override final; 38 virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> neutralKeyframe(d ouble offset, PassRefPtr<TimingFunction> easing) const override final;
41 virtual PassRefPtr<Interpolation> createInterpolation(CSSPropertyID, bli nk::Keyframe::PropertySpecificKeyframe* end, Element*) const override final; 39 virtual PassRefPtr<Interpolation> createInterpolation(CSSPropertyID, bli nk::Keyframe::PropertySpecificKeyframe* end, Element*) const override final;
42 40
43 virtual void trace(Visitor*) override;
44
45 private: 41 private:
46 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, PassRefPtr<AnimatableValue>); 42 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, PassRefPtr<AnimatableValue>);
47 43
48 virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(d ouble offset) const override; 44 virtual PassOwnPtr<Keyframe::PropertySpecificKeyframe> cloneWithOffset(d ouble offset) const override;
49 virtual bool isAnimatableValuePropertySpecificKeyframe() const override { return true; } 45 virtual bool isAnimatableValuePropertySpecificKeyframe() const override { return true; }
50 46
51 RefPtr<AnimatableValue> m_value; 47 RefPtr<AnimatableValue> m_value;
52 }; 48 };
53 49
54 private: 50 private:
(...skipping 11 matching lines...) Expand all
66 }; 62 };
67 63
68 typedef AnimatableValueKeyframe::PropertySpecificKeyframe AnimatableValuePropert ySpecificKeyframe; 64 typedef AnimatableValueKeyframe::PropertySpecificKeyframe AnimatableValuePropert ySpecificKeyframe;
69 65
70 DEFINE_TYPE_CASTS(AnimatableValueKeyframe, Keyframe, value, value->isAnimatableV alueKeyframe(), value.isAnimatableValueKeyframe()); 66 DEFINE_TYPE_CASTS(AnimatableValueKeyframe, Keyframe, value, value->isAnimatableV alueKeyframe(), value.isAnimatableValueKeyframe());
71 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, Keyframe::PropertySpe cificKeyframe, value, value->isAnimatableValuePropertySpecificKeyframe(), value. isAnimatableValuePropertySpecificKeyframe()); 67 DEFINE_TYPE_CASTS(AnimatableValuePropertySpecificKeyframe, Keyframe::PropertySpe cificKeyframe, value, value->isAnimatableValuePropertySpecificKeyframe(), value. isAnimatableValuePropertySpecificKeyframe());
72 68
73 } 69 }
74 70
75 #endif 71 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698