#ifndef SVGFEDisplacementMapElement_h
#define SVGFEDisplacementMapElement_h
#include "core/svg/SVGAnimatedEnumeration.h"
#include "core/svg/SVGAnimatedNumber.h"
#include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
#include "platform/graphics/filters/FEDisplacementMap.h"
namespace WebCore {
template<> const SVGEnumerationStringEntries& getStaticStringEntries<ChannelSelectorType>();
class SVGFEDisplacementMapElement FINAL : public SVGFilterPrimitiveStandardAttributes {
public:
static PassRefPtr<SVGFEDisplacementMapElement> create(Document&);
static ChannelSelectorType stringToChannel(const String&);
SVGAnimatedNumber* scale() { return m_scale.get(); }
SVGAnimatedString* in1() { return m_in1.get(); }
SVGAnimatedString* in2() { return m_in2.get(); }
SVGAnimatedEnumeration<ChannelSelectorType>* xChannelSelector() { return m_xChannelSelector.get(); }
SVGAnimatedEnumeration<ChannelSelectorType>* yChannelSelector() { return m_yChannelSelector.get(); }
private:
SVGFEDisplacementMapElement(Document&);
bool isSupportedAttribute(const QualifiedName&);
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& attrName) OVERRIDE;
virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE;
RefPtr<SVGAnimatedNumber> m_scale;
RefPtr<SVGAnimatedString> m_in1;
RefPtr<SVGAnimatedString> m_in2;
RefPtr<SVGAnimatedEnumeration<ChannelSelectorType> > m_xChannelSelector;
RefPtr<SVGAnimatedEnumeration<ChannelSelectorType> > m_yChannelSelector;
};
}
#endif