15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)/* 25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Copyright (C) Research In Motion Limited 2011. All rights reserved. 35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is free software; you can redistribute it and/or 55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * modify it under the terms of the GNU Library General Public 65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * License as published by the Free Software Foundation; either 75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * version 2 of the License, or (at your option) any later version. 85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * This library is distributed in the hope that it will be useful, 105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * but WITHOUT ANY WARRANTY; without even the implied warranty of 115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Library General Public License for more details. 135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * 145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * You should have received a copy of the GNU Library General Public License 155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * along with this library; see the file COPYING.LIB. If not, write to 165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) * Boston, MA 02110-1301, USA. 185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) */ 195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#ifndef SVGFEDropShadowElement_h 215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)#define SVGFEDropShadowElement_h 225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 2353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)#include "core/svg/SVGAnimatedNumber.h" 2409380295ba73501a205346becac22c6978e4671dTorne (Richard Coles)#include "core/svg/SVGAnimatedNumberOptionalNumber.h" 2553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)#include "core/svg/SVGFilterPrimitiveStandardAttributes.h" 26a854de003a23bf3c7f95ec0f8154ada64092ff5cTorne (Richard Coles)#include "platform/graphics/filters/FEDropShadow.h" 275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 28c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)namespace blink { 2902772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 3053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)class SVGFEDropShadowElement FINAL : public SVGFilterPrimitiveStandardAttributes { 317242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci DEFINE_WRAPPERTYPEINFO(); 325c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)public: 335d92fedcae5e801a8b224de090094f2d9df0b54aTorne (Richard Coles) DECLARE_NODE_FACTORY(SVGFEDropShadowElement); 3402772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 355c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) void setStdDeviation(float stdDeviationX, float stdDeviationY); 3602772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 3709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) SVGAnimatedNumber* dx() { return m_dx.get(); } 3809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) SVGAnimatedNumber* dy() { return m_dy.get(); } 3909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) SVGAnimatedNumber* stdDeviationX() { return m_stdDeviation->firstNumber(); } 4009380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) SVGAnimatedNumber* stdDeviationY() { return m_stdDeviation->secondNumber(); } 4109380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) SVGAnimatedString* in1() { return m_in1.get(); } 4209380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) 435c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)private: 4451b2906e11752df6c18351cf520e30522d3b53a1Torne (Richard Coles) explicit SVGFEDropShadowElement(Document&); 4502772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 465c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) bool isSupportedAttribute(const QualifiedName&); 47926b001d589ce2f10facb93dd4b87578ea35a855Torne (Richard Coles) virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE; 4809380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 4909380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; 5002772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 515c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) static const AtomicString& stdDeviationXIdentifier(); 525c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) static const AtomicString& stdDeviationYIdentifier(); 5302772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 5409380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) RefPtr<SVGAnimatedNumber> m_dx; 5509380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) RefPtr<SVGAnimatedNumber> m_dy; 5609380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) RefPtr<SVGAnimatedNumberOptionalNumber> m_stdDeviation; 5709380295ba73501a205346becac22c6978e4671dTorne (Richard Coles) RefPtr<SVGAnimatedString> m_in1; 585c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)}; 5902772c6a72f1ee0b226341a4f4439970c29fc861Ben Murdoch 60c1847b1379d12d0e05df27436bf19a9b1bf12deaTorne (Richard Coles)} // namespace blink 615c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles) 627242dc3dbeb210b5e876a3c42d1ec1a667fc621aPrimiano Tucci#endif // SVGFEDropShadowElement_h 63