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

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

Issue 631153003: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/core/svg/SVGFETileElement.h ('k') | Source/core/svg/SVGFilterElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 21 matching lines...) Expand all
32 32
33 enum SVGStitchOptions { 33 enum SVGStitchOptions {
34 SVG_STITCHTYPE_UNKNOWN = 0, 34 SVG_STITCHTYPE_UNKNOWN = 0,
35 SVG_STITCHTYPE_STITCH = 1, 35 SVG_STITCHTYPE_STITCH = 1,
36 SVG_STITCHTYPE_NOSTITCH = 2 36 SVG_STITCHTYPE_NOSTITCH = 2
37 }; 37 };
38 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGStitchOp tions>(); 38 template<> const SVGEnumerationStringEntries& getStaticStringEntries<SVGStitchOp tions>();
39 39
40 template<> const SVGEnumerationStringEntries& getStaticStringEntries<TurbulenceT ype>(); 40 template<> const SVGEnumerationStringEntries& getStaticStringEntries<TurbulenceT ype>();
41 41
42 class SVGFETurbulenceElement FINAL : public SVGFilterPrimitiveStandardAttributes { 42 class SVGFETurbulenceElement final : public SVGFilterPrimitiveStandardAttributes {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 public: 44 public:
45 DECLARE_NODE_FACTORY(SVGFETurbulenceElement); 45 DECLARE_NODE_FACTORY(SVGFETurbulenceElement);
46 46
47 SVGAnimatedNumber* baseFrequencyX() { return m_baseFrequency->firstNumber(); } 47 SVGAnimatedNumber* baseFrequencyX() { return m_baseFrequency->firstNumber(); }
48 SVGAnimatedNumber* baseFrequencyY() { return m_baseFrequency->secondNumber() ; } 48 SVGAnimatedNumber* baseFrequencyY() { return m_baseFrequency->secondNumber() ; }
49 SVGAnimatedNumber* seed() { return m_seed.get(); } 49 SVGAnimatedNumber* seed() { return m_seed.get(); }
50 SVGAnimatedEnumeration<SVGStitchOptions>* stitchTiles() { return m_stitchTil es.get(); } 50 SVGAnimatedEnumeration<SVGStitchOptions>* stitchTiles() { return m_stitchTil es.get(); }
51 SVGAnimatedEnumeration<TurbulenceType>* type() { return m_type.get(); } 51 SVGAnimatedEnumeration<TurbulenceType>* type() { return m_type.get(); }
52 SVGAnimatedInteger* numOctaves() { return m_numOctaves.get(); } 52 SVGAnimatedInteger* numOctaves() { return m_numOctaves.get(); }
53 53
54 private: 54 private:
55 explicit SVGFETurbulenceElement(Document&); 55 explicit SVGFETurbulenceElement(Document&);
56 56
57 bool isSupportedAttribute(const QualifiedName&); 57 bool isSupportedAttribute(const QualifiedName&);
58 virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERR IDE; 58 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
59 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName) OVERRIDE; 59 virtual bool setFilterEffectAttribute(FilterEffect*, const QualifiedName& at trName) override;
60 virtual void svgAttributeChanged(const QualifiedName&) OVERRIDE; 60 virtual void svgAttributeChanged(const QualifiedName&) override;
61 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) OVERRIDE; 61 virtual PassRefPtr<FilterEffect> build(SVGFilterBuilder*, Filter*) override;
62 62
63 RefPtr<SVGAnimatedNumberOptionalNumber> m_baseFrequency; 63 RefPtr<SVGAnimatedNumberOptionalNumber> m_baseFrequency;
64 RefPtr<SVGAnimatedNumber> m_seed; 64 RefPtr<SVGAnimatedNumber> m_seed;
65 RefPtr<SVGAnimatedEnumeration<SVGStitchOptions> > m_stitchTiles; 65 RefPtr<SVGAnimatedEnumeration<SVGStitchOptions> > m_stitchTiles;
66 RefPtr<SVGAnimatedEnumeration<TurbulenceType> > m_type; 66 RefPtr<SVGAnimatedEnumeration<TurbulenceType> > m_type;
67 RefPtr<SVGAnimatedInteger> m_numOctaves; 67 RefPtr<SVGAnimatedInteger> m_numOctaves;
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // SVGFETurbulenceElement_h 72 #endif // SVGFETurbulenceElement_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFETileElement.h ('k') | Source/core/svg/SVGFilterElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698