#ifndef SVGPropertyInfo_h
#define SVGPropertyInfo_h
#if ENABLE(SVG)
#include "QualifiedName.h"
#include <wtf/PassRefPtr.h>
namespace WebCore {
class SVGAnimatedProperty;
enum AnimatedPropertyType {
AnimatedAngle,
AnimatedBoolean,
AnimatedColor,
AnimatedEnumeration,
AnimatedInteger,
AnimatedIntegerOptionalInteger,
AnimatedLength,
AnimatedLengthList,
AnimatedNumber,
AnimatedNumberList,
AnimatedNumberOptionalNumber,
AnimatedPath,
AnimatedPoints,
AnimatedPreserveAspectRatio,
AnimatedRect,
AnimatedString,
AnimatedTransformList,
AnimatedUnknown
};
struct SVGPropertyInfo {
typedef void (*SynchronizeProperty)(void*);
typedef PassRefPtr<SVGAnimatedProperty> (*LookupOrCreateWrapperForAnimatedProperty)(void*);
SVGPropertyInfo(AnimatedPropertyType newType, const QualifiedName& newAttributeName,
const AtomicString& newPropertyIdentifier, SynchronizeProperty newSynchronizeProperty,
LookupOrCreateWrapperForAnimatedProperty newLookupOrCreateWrapperForAnimatedProperty)
: animatedPropertyType(newType)
, attributeName(newAttributeName)
, propertyIdentifier(newPropertyIdentifier)
, synchronizeProperty(newSynchronizeProperty)
, lookupOrCreateWrapperForAnimatedProperty(newLookupOrCreateWrapperForAnimatedProperty)
{
}
AnimatedPropertyType animatedPropertyType;
const QualifiedName& attributeName;
const AtomicString& propertyIdentifier;
SynchronizeProperty synchronizeProperty;
LookupOrCreateWrapperForAnimatedProperty lookupOrCreateWrapperForAnimatedProperty;
};
}
#endif // ENABLE(SVG)
#endif // SVGPropertyInfo_h