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

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

Issue 134593005: Update SVG classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/SVGPathStringBuilder.h ('k') | Source/core/svg/SVGPathTraversalStateBuilder.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) Research In Motion Limited 2010. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
3 * Copyright (C) 2013 Apple Inc. All rights reserved. 3 * Copyright (C) 2013 Apple Inc. All rights reserved.
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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 */ 19 */
20 20
21 #ifndef SVGPathStringSource_h 21 #ifndef SVGPathStringSource_h
22 #define SVGPathStringSource_h 22 #define SVGPathStringSource_h
23 23
24 #include "core/svg/SVGPathSource.h" 24 #include "core/svg/SVGPathSource.h"
25 #include "wtf/PassOwnPtr.h" 25 #include "wtf/PassOwnPtr.h"
26 #include "wtf/text/WTFString.h" 26 #include "wtf/text/WTFString.h"
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 class SVGPathStringSource : public SVGPathSource { 30 class SVGPathStringSource FINAL : public SVGPathSource {
31 public: 31 public:
32 static PassOwnPtr<SVGPathStringSource> create(const String& string) 32 static PassOwnPtr<SVGPathStringSource> create(const String& string)
33 { 33 {
34 return adoptPtr(new SVGPathStringSource(string)); 34 return adoptPtr(new SVGPathStringSource(string));
35 } 35 }
36 36
37 private: 37 private:
38 SVGPathStringSource(const String&); 38 SVGPathStringSource(const String&);
39 39
40 virtual bool hasMoreData() const; 40 virtual bool hasMoreData() const OVERRIDE;
41 virtual bool moveToNextToken(); 41 virtual bool moveToNextToken() OVERRIDE;
42 virtual bool parseSVGSegmentType(SVGPathSegType&); 42 virtual bool parseSVGSegmentType(SVGPathSegType&) OVERRIDE;
43 virtual SVGPathSegType nextCommand(SVGPathSegType previousCommand); 43 virtual SVGPathSegType nextCommand(SVGPathSegType previousCommand) OVERRIDE;
44 44
45 virtual bool parseMoveToSegment(FloatPoint&); 45 virtual bool parseMoveToSegment(FloatPoint&) OVERRIDE;
46 virtual bool parseLineToSegment(FloatPoint&); 46 virtual bool parseLineToSegment(FloatPoint&) OVERRIDE;
47 virtual bool parseLineToHorizontalSegment(float&); 47 virtual bool parseLineToHorizontalSegment(float&) OVERRIDE;
48 virtual bool parseLineToVerticalSegment(float&); 48 virtual bool parseLineToVerticalSegment(float&) OVERRIDE;
49 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) ; 49 virtual bool parseCurveToCubicSegment(FloatPoint&, FloatPoint&, FloatPoint&) OVERRIDE;
50 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&); 50 virtual bool parseCurveToCubicSmoothSegment(FloatPoint&, FloatPoint&) OVERRI DE;
51 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&); 51 virtual bool parseCurveToQuadraticSegment(FloatPoint&, FloatPoint&) OVERRIDE ;
52 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&); 52 virtual bool parseCurveToQuadraticSmoothSegment(FloatPoint&) OVERRIDE;
53 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPo int&); 53 virtual bool parseArcToSegment(float&, float&, float&, bool&, bool&, FloatPo int&) OVERRIDE;
54 54
55 String m_string; 55 String m_string;
56 bool m_is8BitSource; 56 bool m_is8BitSource;
57 57
58 union { 58 union {
59 const LChar* m_character8; 59 const LChar* m_character8;
60 const UChar* m_character16; 60 const UChar* m_character16;
61 } m_current; 61 } m_current;
62 union { 62 union {
63 const LChar* m_character8; 63 const LChar* m_character8;
64 const UChar* m_character16; 64 const UChar* m_character16;
65 } m_end; 65 } m_end;
66 }; 66 };
67 67
68 } // namespace WebCore 68 } // namespace WebCore
69 69
70 #endif // SVGPathStringSource_h 70 #endif // SVGPathStringSource_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathStringBuilder.h ('k') | Source/core/svg/SVGPathTraversalStateBuilder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698