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

Side by Side Diff: sky/engine/core/animation/Keyframe.h

Issue 709203002: Remove more 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
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*) { } 51 virtual void trace(Visitor*) { }
52 52
53 class PropertySpecificKeyframe : public DummyBase<PropertySpecificKeyframe> { 53 class PropertySpecificKeyframe {
54 public: 54 public:
55 virtual ~PropertySpecificKeyframe() { } 55 virtual ~PropertySpecificKeyframe() { }
56 double offset() const { return m_offset; } 56 double offset() const { return m_offset; }
57 TimingFunction& easing() const { return *m_easing; } 57 TimingFunction& easing() const { return *m_easing; }
58 AnimationEffect::CompositeOperation composite() const { return m_composi te; } 58 AnimationEffect::CompositeOperation composite() const { return m_composi te; }
59 virtual PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offs et) const = 0; 59 virtual PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offs et) const = 0;
60 60
61 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const = 0 ; 61 virtual const PassRefPtr<AnimatableValue> getAnimatableValue() const = 0 ;
62 62
63 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; } 63 virtual bool isAnimatableValuePropertySpecificKeyframe() const { return false; }
(...skipping 29 matching lines...) Expand all
93 } 93 }
94 94
95 double m_offset; 95 double m_offset;
96 AnimationEffect::CompositeOperation m_composite; 96 AnimationEffect::CompositeOperation m_composite;
97 RefPtr<TimingFunction> m_easing; 97 RefPtr<TimingFunction> m_easing;
98 }; 98 };
99 99
100 } 100 }
101 101
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/animation/InterpolationEffect.h ('k') | sky/engine/core/animation/KeyframeEffectModel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698