SVGAnimatedNumberList.h [plain text]
#ifndef SVGAnimatedNumberList_h
#define SVGAnimatedNumberList_h
#if ENABLE(SVG)
#include "SVGAnimatedListPropertyTearOff.h"
#include "SVGAnimatedTypeAnimator.h"
#include "SVGNumberList.h"
namespace WebCore {
typedef SVGAnimatedListPropertyTearOff<SVGNumberList> SVGAnimatedNumberList;
#define DECLARE_ANIMATED_NUMBER_LIST(UpperProperty, LowerProperty) \
DECLARE_ANIMATED_LIST_PROPERTY(SVGAnimatedNumberList, SVGNumberList, UpperProperty, LowerProperty)
#define DEFINE_ANIMATED_NUMBER_LIST(OwnerType, DOMAttribute, UpperProperty, LowerProperty) \
DEFINE_ANIMATED_PROPERTY(AnimatedNumberList, OwnerType, DOMAttribute, DOMAttribute.localName(), UpperProperty, LowerProperty)
class SVGAnimationElement;
class SVGAnimatedNumberListAnimator : public SVGAnimatedTypeAnimator {
public:
SVGAnimatedNumberListAnimator(SVGAnimationElement*, SVGElement*);
virtual ~SVGAnimatedNumberListAnimator() { }
virtual PassOwnPtr<SVGAnimatedType> constructFromString(const String&);
virtual PassOwnPtr<SVGAnimatedType> startAnimValAnimation(const SVGElementAnimatedPropertyList&);
virtual void stopAnimValAnimation(const SVGElementAnimatedPropertyList&);
virtual void resetAnimValToBaseVal(const SVGElementAnimatedPropertyList&, SVGAnimatedType*);
virtual void animValWillChange(const SVGElementAnimatedPropertyList&);
virtual void animValDidChange(const SVGElementAnimatedPropertyList&);
virtual void addAnimatedTypes(SVGAnimatedType*, SVGAnimatedType*);
virtual void calculateAnimatedValue(float percentage, unsigned repeatCount, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*, SVGAnimatedType*);
virtual float calculateDistance(const String& fromString, const String& toString);
};
}
#endif // ENABLE(SVG)
#endif