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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 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 12 matching lines...) Expand all
23 #define SVGFEDiffuseLightingElement_h 23 #define SVGFEDiffuseLightingElement_h
24 24
25 #include "core/SVGNames.h" 25 #include "core/SVGNames.h"
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 blink { 30 namespace blink {
31 31
32 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri butes { 32 class SVGFEDiffuseLightingElement FINAL : public SVGFilterPrimitiveStandardAttri butes {
33 DEFINE_WRAPPERTYPEINFO();
33 public: 34 public:
34 DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement); 35 DECLARE_NODE_FACTORY(SVGFEDiffuseLightingElement);
35 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN ame&); 36 void lightElementAttributeChanged(const SVGFELightElement*, const QualifiedN ame&);
36 37
37 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); } 38 SVGAnimatedNumber* diffuseConstant() { return m_diffuseConstant.get(); }
38 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); } 39 SVGAnimatedNumber* surfaceScale() { return m_surfaceScale.get(); }
39 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); } 40 SVGAnimatedNumber* kernelUnitLengthX() { return m_kernelUnitLength->firstNum ber(); }
40 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); } 41 SVGAnimatedNumber* kernelUnitLengthY() { return m_kernelUnitLength->secondNu mber(); }
41 SVGAnimatedString* in1() { return m_in1.get(); } 42 SVGAnimatedString* in1() { return m_in1.get(); }
42 43
43 private: 44 private:
44 explicit SVGFEDiffuseLightingElement(Document&); 45 explicit SVGFEDiffuseLightingElement(Document&);
45 46
46 bool isSupportedAttribute(const QualifiedName&); 47 bool isSupportedAttribute(const QualifiedName&);
47 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 48 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
48 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O VERRIDE; 49 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName&) O VERRIDE;
49 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 50 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE;
50 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; 51 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE;
51 52
52 RefPtr<SVGAnimatedNumber> m_diffuseConstant; 53 RefPtr<SVGAnimatedNumber> m_diffuseConstant;
53 RefPtr<SVGAnimatedNumber> m_surfaceScale; 54 RefPtr<SVGAnimatedNumber> m_surfaceScale;
54 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength; 55 RefPtr<SVGAnimatedNumberOptionalNumber> m_kernelUnitLength;
55 RefPtr<SVGAnimatedString> m_in1; 56 RefPtr<SVGAnimatedString> m_in1;
56 }; 57 };
57 58
58 } // namespace blink 59 } // namespace blink
59 60
60 #endif 61 #endif // SVGFEDiffuseLightingElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEConvolveMatrixElement.h ('k') | Source/core/svg/SVGFEDisplacementMapElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698