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

Side by Side Diff: Source/core/animation/Keyframe.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
« no previous file with comments | « Source/core/animation/InterpolableValue.h ('k') | Source/core/animation/KeyframeEffectModel.h » ('j') | 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 Keyframe_h 5 #ifndef Keyframe_h
6 #define Keyframe_h 6 #define Keyframe_h
7 7
8 #include "core/CoreExport.h"
8 #include "core/animation/AnimationEffect.h" 9 #include "core/animation/AnimationEffect.h"
9 #include "core/animation/AnimationNode.h" 10 #include "core/animation/AnimationNode.h"
10 #include "core/animation/PropertyHandle.h" 11 #include "core/animation/PropertyHandle.h"
11 #include "core/animation/animatable/AnimatableValue.h" 12 #include "core/animation/animatable/AnimatableValue.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 using PropertyHandleSet = HashSet<PropertyHandle>; 16 using PropertyHandleSet = HashSet<PropertyHandle>;
16 17
17 class Element; 18 class Element;
18 class ComputedStyle; 19 class ComputedStyle;
19 20
20 // FIXME: Make Keyframe immutable 21 // FIXME: Make Keyframe immutable
21 class Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Keyframe> { 22 class CORE_EXPORT Keyframe : public RefCountedWillBeGarbageCollectedFinalized<Ke yframe> {
22 public: 23 public:
23 virtual ~Keyframe() { } 24 virtual ~Keyframe() { }
24 25
25 void setOffset(double offset) { m_offset = offset; } 26 void setOffset(double offset) { m_offset = offset; }
26 double offset() const { return m_offset; } 27 double offset() const { return m_offset; }
27 28
28 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi te = composite; } 29 void setComposite(AnimationEffect::CompositeOperation composite) { m_composi te = composite; }
29 AnimationEffect::CompositeOperation composite() const { return m_composite; } 30 AnimationEffect::CompositeOperation composite() const { return m_composite; }
30 31
31 void setEasing(PassRefPtr<TimingFunction> easing) { m_easing = easing; } 32 void setEasing(PassRefPtr<TimingFunction> easing) { m_easing = easing; }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 } 98 }
98 99
99 double m_offset; 100 double m_offset;
100 AnimationEffect::CompositeOperation m_composite; 101 AnimationEffect::CompositeOperation m_composite;
101 RefPtr<TimingFunction> m_easing; 102 RefPtr<TimingFunction> m_easing;
102 }; 103 };
103 104
104 } // namespace blink 105 } // namespace blink
105 106
106 #endif // Keyframe_h 107 #endif // Keyframe_h
OLDNEW
« no previous file with comments | « Source/core/animation/InterpolableValue.h ('k') | Source/core/animation/KeyframeEffectModel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698