OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 } | 101 } |
102 | 102 |
103 // AnimationEffect implementation. | 103 // AnimationEffect implementation. |
104 virtual PassOwnPtr<CompositableValueList> sample(int iteration, double fract
ion) const OVERRIDE; | 104 virtual PassOwnPtr<CompositableValueList> sample(int iteration, double fract
ion) const OVERRIDE; |
105 | 105 |
106 // FIXME: Implement setFrames() | 106 // FIXME: Implement setFrames() |
107 const KeyframeVector& getFrames() const { return m_keyframes; } | 107 const KeyframeVector& getFrames() const { return m_keyframes; } |
108 | 108 |
109 virtual bool isKeyframeEffectModel() const OVERRIDE { return true; } | 109 virtual bool isKeyframeEffectModel() const OVERRIDE { return true; } |
110 | 110 |
| 111 bool isReplaceOnly(); |
| 112 |
111 PropertySet properties() const; | 113 PropertySet properties() const; |
112 | 114 |
113 class PropertySpecificKeyframe { | 115 class PropertySpecificKeyframe { |
114 public: | 116 public: |
115 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, const AnimatableValue*, CompositeOperation); | 117 PropertySpecificKeyframe(double offset, PassRefPtr<TimingFunction> easin
g, const AnimatableValue*, CompositeOperation); |
116 double offset() const { return m_offset; } | 118 double offset() const { return m_offset; } |
117 const TimingFunction* easing() const { return m_easing.get(); } | 119 const TimingFunction* easing() const { return m_easing.get(); } |
118 const CompositableValue* value() const { return m_value.get(); } | 120 const CompositableValue* value() const { return m_value.get(); } |
119 PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offset) cons
t; | 121 PassOwnPtr<PropertySpecificKeyframe> cloneWithOffset(double offset) cons
t; |
120 private: | 122 private: |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 mutable OwnPtr<KeyframeGroupMap> m_keyframeGroups; | 164 mutable OwnPtr<KeyframeGroupMap> m_keyframeGroups; |
163 | 165 |
164 friend class KeyframeEffectModelTest; | 166 friend class KeyframeEffectModelTest; |
165 }; | 167 }; |
166 | 168 |
167 DEFINE_TYPE_CASTS(KeyframeEffectModel, AnimationEffect, value, value->isKeyframe
EffectModel(), value.isKeyframeEffectModel()); | 169 DEFINE_TYPE_CASTS(KeyframeEffectModel, AnimationEffect, value, value->isKeyframe
EffectModel(), value.isKeyframeEffectModel()); |
168 | 170 |
169 } // namespace WebCore | 171 } // namespace WebCore |
170 | 172 |
171 #endif // KeyframeEffectModel_h | 173 #endif // KeyframeEffectModel_h |
OLD | NEW |