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

Side by Side Diff: sky/engine/core/animation/Keyframe.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 Keyframe_h 5 #ifndef Keyframe_h
6 #define Keyframe_h 6 #define Keyframe_h
7 7
8 #include "core/CSSPropertyNames.h" 8 #include "core/CSSPropertyNames.h"
9 #include "core/animation/AnimationEffect.h" 9 #include "core/animation/AnimationEffect.h"
10 #include "core/animation/AnimationNode.h" 10 #include "core/animation/AnimationNode.h"
(...skipping 30 matching lines...) Expand all
41 PassRefPtr<Keyframe> cloneWithOffset(double offset) const 41 PassRefPtr<Keyframe> cloneWithOffset(double offset) const
42 { 42 {
43 RefPtr<Keyframe> theClone = clone(); 43 RefPtr<Keyframe> theClone = clone();
44 theClone->setOffset(offset); 44 theClone->setOffset(offset);
45 return theClone.release(); 45 return theClone.release();
46 } 46 }
47 47
48 virtual bool isAnimatableValueKeyframe() const { return false; } 48 virtual bool isAnimatableValueKeyframe() const { return false; }
49 virtual bool isStringKeyframe() const { return false; } 49 virtual bool isStringKeyframe() const { return false; }
50 50
51 virtual void trace(Visitor*) { }
52
53 class PropertySpecificKeyframe { 51 class PropertySpecificKeyframe {
54 public: 52 public:
55 virtual ~PropertySpecificKeyframe() { } 53 virtual ~PropertySpecificKeyframe() { }
56 double offset() const { return m_offset; } 54 double offset() const { return m_offset; }
57 TimingFunction& easing() const { return *m_easing; } 55 TimingFunction& easing() const { return *m_easing; }
58 AnimationEffect::CompositeOperation composite() const { return m_composi te; } 56 AnimationEffect::CompositeOperation composite() const { return m_composi te; }
59 virtual PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offs et) const = 0; 57 virtual PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offs et) const = 0;
60 58
61 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const = 0 ; 59 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const = 0 ;
62 60
63 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; } 61 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; }
64 virtual bool isStringPropertySpecificKeyframe() const { return false; } 62 virtual bool isStringPropertySpecificKeyframe() const { return false; }
65 63
66 virtual PassOwnPtr<PropertySpecificKeyframe> neutralKeyframe(double offs et, PassRefPtr<TimingFunction> easing) const = 0; 64 virtual PassOwnPtr<PropertySpecificKeyframe> neutralKeyframe(double offs et, PassRefPtr<TimingFunction> easing) const = 0;
67 virtual PassRefPtr<Interpolation> createInterpolation(CSSPropertyID, bli nk::Keyframe::PropertySpecificKeyframe* end, Element*) const = 0; 65 virtual PassRefPtr<Interpolation> createInterpolation(CSSPropertyID, bli nk::Keyframe::PropertySpecificKeyframe* end, Element*) const = 0;
68 66
69 virtual void trace(Visitor*) { }
70
71 protected: 67 protected:
72 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, AnimationEffect::CompositeOperation); 68 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin g, AnimationEffect::CompositeOperation);
73 69
74 double m_offset; 70 double m_offset;
75 RefPtr<TimingFunction> m_easing; 71 RefPtr<TimingFunction> m_easing;
76 AnimationEffect::CompositeOperation m_composite; 72 AnimationEffect::CompositeOperation m_composite;
77 }; 73 };
78 74
79 virtual PassOwnPtr<PropertySpecificKeyframe> createPropertySpecificKeyframe( CSSPropertyID) const = 0; 75 virtual PassOwnPtr<PropertySpecificKeyframe> createPropertySpecificKeyframe( CSSPropertyID) const = 0;
80 76
(...skipping 12 matching lines...) Expand all
93 } 89 }
94 90
95 double m_offset; 91 double m_offset;
96 AnimationEffect::CompositeOperation m_composite; 92 AnimationEffect::CompositeOperation m_composite;
97 RefPtr<TimingFunction> m_easing; 93 RefPtr<TimingFunction> m_easing;
98 }; 94 };
99 95
100 } 96 }
101 97
102 #endif 98 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/animation/InterpolationEffect.cpp ('k') | sky/engine/core/animation/KeyframeEffectModel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698