Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(266)

Side by Side Diff: Source/core/svg/SVGFEDiffuseLightingElement.h

Issue 327633004: Apply DEFINE/DECLARE_NODE_FACTORY(T) macro to element factories with single Document& argument. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org>
4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com> 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com>
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 15 matching lines...) Expand all
26 #include "core/svg/SVGAnimatedNumberOptionalNumber.h" 26 #include "core/svg/SVGAnimatedNumberOptionalNumber.h"
27 #include "core/svg/SVGFELightElement.h" 27 #include "core/svg/SVGFELightElement.h"
28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h" 28 #include "core/svg/SVGFilterPrimitiveStandardAttributes.h"
29 29
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class FEDiffuseLighting; 32 class FEDiffuseLighting;
33 33
34 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri butes { 34 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri butes {
35 public: 35 public:
36 DEFINE_NODE_FACTORY(SVGFEDiffuseLightingElement); 36 DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement);
37 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN ame&); 37 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN ame&);
38 38
39 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } 39 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); }
40 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } 40 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); }
41 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); } 41 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); }
42 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); } 42 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); }
43 SVGAnimatedString* in1() { return m_in1.get(); } 43 SVGAnimatedString* in1() { return m_in1.get(); }
44 44
45 private: 45 private:
46 explicit SVGFEDiffuseLightingElement(Document&); 46 explicit SVGFEDiffuseLightingElement(Document&);
47 47
48 bool isSupportedAttribute(const QualifiedName&); 48 bool isSupportedAttribute(const QualifiedName&);
49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 49 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
50 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O VERRIDE; 50 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O VERRIDE;
51 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 51 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
52 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; 52 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE;
53 53
54 RefPtr<SVGAnimatedNumber> m_diffuseConstant; 54 RefPtr<SVGAnimatedNumber> m_diffuseConstant;
55 RefPtr<SVGAnimatedNumber> m_surfaceScale; 55 RefPtr<SVGAnimatedNumber> m_surfaceScale;
56 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; 56 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength;
57 RefPtr<SVGAnimatedString> m_in1; 57 RefPtr<SVGAnimatedString> m_in1;
58 }; 58 };
59 59
60 } // namespace WebCore 60 } // namespace WebCore
61 61
62 #endif 62 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEConvolveMatrixElement.cpp ('k') | Source/core/svg/SVGFEDiffuseLightingElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698