| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |