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

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

Issue 14022022: FINALizing of the Node hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Action review comments. Created 7 years, 7 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) 2006 Oliver Hunt <oliver@nerget.com> 2 * Copyright (C) 2006 Oliver Hunt <oliver@nerget.com>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 if (value == "G") 58 if (value == "G")
59 return CHANNEL_G; 59 return CHANNEL_G;
60 if (value == "B") 60 if (value == "B")
61 return CHANNEL_B; 61 return CHANNEL_B;
62 if (value == "A") 62 if (value == "A")
63 return CHANNEL_A; 63 return CHANNEL_A;
64 return CHANNEL_UNKNOWN; 64 return CHANNEL_UNKNOWN;
65 } 65 }
66 }; 66 };
67 67
68 class SVGFEDisplacementMapElement : public SVGFilterPrimitiveStandardAttributes { 68 class SVGFEDisplacementMapElement FINAL : public SVGFilterPrimitiveStandardAttri butes {
69 public: 69 public:
70 static PassRefPtr<SVGFEDisplacementMapElement> create(const QualifiedName&, Document*); 70 static PassRefPtr<SVGFEDisplacementMapElement> create(const QualifiedName&, Document*);
71 71
72 static ChannelSelectorType stringToChannel(const String&); 72 static ChannelSelectorType stringToChannel(const String&);
73 73
74 private: 74 private:
75 SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*); 75 SVGFEDisplacementMapElement(const QualifiedName& tagName, Document*);
76 76
77 bool isSupportedAttribute(const QualifiedName&); 77 bool isSupportedAttribute(const QualifiedName&);
78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 78 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE;
79 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName); 79 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName);
80 virtual void svgAttributeChanged(const QualifiedName&); 80 virtual void svgAttributeChanged(const QualifiedName&);
81 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*); 81 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*);
82 82
83 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement) 83 BEGIN_DECLARE_ANIMATED_PROPERTIES(SVGFEDisplacementMapElement)
84 DECLARE_ANIMATED_STRING(In1, in1) 84 DECLARE_ANIMATED_STRING(In1, in1)
85 DECLARE_ANIMATED_STRING(In2, in2) 85 DECLARE_ANIMATED_STRING(In2, in2)
86 DECLARE_ANIMATED_ENUMERATION(XChannelSelector, xChannelSelector, Channel SelectorType) 86 DECLARE_ANIMATED_ENUMERATION(XChannelSelector, xChannelSelector, Channel SelectorType)
87 DECLARE_ANIMATED_ENUMERATION(YChannelSelector, yChannelSelector, Channel SelectorType) 87 DECLARE_ANIMATED_ENUMERATION(YChannelSelector, yChannelSelector, Channel SelectorType)
88 DECLARE_ANIMATED_NUMBER(Scale, scale) 88 DECLARE_ANIMATED_NUMBER(Scale, scale)
89 END_DECLARE_ANIMATED_PROPERTIES 89 END_DECLARE_ANIMATED_PROPERTIES
90 }; 90 };
91 91
92 } // namespace WebCore 92 } // namespace WebCore
93 93
94 #endif // ENABLE(SVG) 94 #endif // ENABLE(SVG)
95 #endif // SVGFEDisplacementMapElement_h 95 #endif // SVGFEDisplacementMapElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFEDiffuseLightingElement.h ('k') | Source/core/svg/SVGFEDistantLightElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698