| Index: Source/core/animation/AnimationEffect.h
|
| diff --git a/Source/core/animation/AnimationEffect.h b/Source/core/animation/AnimationEffect.h
|
| index 68c9497b5046e4512888dd3b156df8feff3f4ee1..c39aff201b9785d5b859451dc54c288b00c72e9d 100644
|
| --- a/Source/core/animation/AnimationEffect.h
|
| +++ b/Source/core/animation/AnimationEffect.h
|
| @@ -31,22 +31,29 @@
|
| #ifndef AnimationEffect_h
|
| #define AnimationEffect_h
|
|
|
| -#include <wtf/PassRefPtr.h>
|
| -#include <wtf/RefCounted.h>
|
| +#include "CSSPropertyNames.h"
|
| +#include "wtf/HashMap.h"
|
| +#include "wtf/PassOwnPtr.h"
|
| +#include "wtf/RefCounted.h"
|
|
|
| namespace WebCore {
|
|
|
| -class StylePropertySet;
|
| +class AnimatableValue;
|
|
|
| class AnimationEffect : public RefCounted<AnimationEffect> {
|
| -
|
| public:
|
| - static PassRefPtr<AnimationEffect> create();
|
| -
|
| - PassRefPtr<StylePropertySet> sample(double fraction, int iteration);
|
| -
|
| -private:
|
| - AnimationEffect();
|
| + // Encapsulates the value which results from applying a set of composition operations onto an
|
| + // underlying value. It is used to represent the output of the effect phase of the Web
|
| + // Animations model.
|
| + class CompositableValue : public RefCounted<CompositableValue> {
|
| + public:
|
| + virtual ~CompositableValue() { }
|
| + virtual AnimatableValue composite(const AnimatableValue&) const = 0;
|
| + };
|
| +
|
| + virtual ~AnimationEffect() { }
|
| + typedef HashMap<CSSPropertyID, RefPtr<CompositableValue> > CompositableValueMap;
|
| + virtual PassOwnPtr<CompositableValueMap> sample(int iteration, double fraction) const = 0;
|
| };
|
|
|
| } // namespace WebCore
|
|
|