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

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

Issue 18706003: Get rid of SVGPathSeg* special casing in the bindings generator (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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, 2006 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2008 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2008 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 commitChange(); 64 commitChange();
65 } 65 }
66 66
67 private: 67 private:
68 float m_x; 68 float m_x;
69 float m_y; 69 float m_y;
70 float m_x1; 70 float m_x1;
71 float m_y1; 71 float m_y1;
72 }; 72 };
73 73
74 class SVGPathSegCurvetoQuadraticAbs : public SVGPathSegCurvetoQuadratic {
75 public:
76 static PassRefPtr<SVGPathSegCurvetoQuadraticAbs> create(SVGPathElement* elem ent, SVGPathSegRole role, float x, float y, float x1, float y1)
77 {
78 return adoptRef(new SVGPathSegCurvetoQuadraticAbs(element, role, x, y, x 1, y1));
79 }
80
81 private:
82 SVGPathSegCurvetoQuadraticAbs(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1)
83 : SVGPathSegCurvetoQuadratic(element, role, x, y, x1, y1)
84 {
85 ScriptWrappable::init(this);
86 }
87
88 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATI C_ABS; }
89 virtual String pathSegTypeAsLetter() const { return "Q"; }
90 };
91
92 class SVGPathSegCurvetoQuadraticRel : public SVGPathSegCurvetoQuadratic {
93 public:
94 static PassRefPtr<SVGPathSegCurvetoQuadraticRel> create(SVGPathElement* elem ent, SVGPathSegRole role, float x, float y, float x1, float y1)
95 {
96 return adoptRef(new SVGPathSegCurvetoQuadraticRel(element, role, x, y, x 1, y1));
97 }
98
99 private:
100 SVGPathSegCurvetoQuadraticRel(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1)
101 : SVGPathSegCurvetoQuadratic(element, role, x, y, x1, y1)
102 {
103 ScriptWrappable::init(this);
104 }
105
106 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_QUADRATI C_REL; }
107 virtual String pathSegTypeAsLetter() const { return "q"; }
108 };
109
110 } // namespace WebCore 74 } // namespace WebCore
111 75
112 #endif 76 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathSegCurvetoCubicSmoothRel.h ('k') | Source/core/svg/SVGPathSegCurvetoQuadraticAbs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698