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/SVGPathSegCurvetoCubic.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
« no previous file with comments | « Source/core/svg/SVGPathSegArcRel.h ('k') | Source/core/svg/SVGPathSegCurvetoCubicAbs.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, 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 private: 83 private:
84 float m_x; 84 float m_x;
85 float m_y; 85 float m_y;
86 float m_x1; 86 float m_x1;
87 float m_y1; 87 float m_y1;
88 float m_x2; 88 float m_x2;
89 float m_y2; 89 float m_y2;
90 }; 90 };
91 91
92 class SVGPathSegCurvetoCubicAbs : public SVGPathSegCurvetoCubic {
93 public:
94 static PassRefPtr<SVGPathSegCurvetoCubicAbs> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2)
95 {
96 return adoptRef(new SVGPathSegCurvetoCubicAbs(element, role, x, y, x1, y 1, x2, y2));
97 }
98
99 private:
100 SVGPathSegCurvetoCubicAbs(SVGPathElement* element, SVGPathSegRole role, floa t x, float y, float x1, float y1, float x2, float y2)
101 : SVGPathSegCurvetoCubic(element, role, x, y, x1, y1, x2, y2)
102 {
103 ScriptWrappable::init(this);
104 }
105
106 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_AB S; }
107 virtual String pathSegTypeAsLetter() const { return "C"; }
108 };
109
110 class SVGPathSegCurvetoCubicRel : public SVGPathSegCurvetoCubic {
111 public:
112 static PassRefPtr<SVGPathSegCurvetoCubicRel> create(SVGPathElement* element, SVGPathSegRole role, float x, float y, float x1, float y1, float x2, float y2)
113 {
114 return adoptRef(new SVGPathSegCurvetoCubicRel(element, role, x, y, x1, y 1, x2, y2));
115 }
116
117 private:
118 SVGPathSegCurvetoCubicRel(SVGPathElement* element, SVGPathSegRole role, floa t x, float y, float x1, float y1, float x2, float y2)
119 : SVGPathSegCurvetoCubic(element, role, x, y, x1, y1, x2, y2)
120 {
121 ScriptWrappable::init(this);
122 }
123
124 virtual unsigned short pathSegType() const { return PATHSEG_CURVETO_CUBIC_RE L; }
125 virtual String pathSegTypeAsLetter() const { return "c"; }
126 };
127
128 } // namespace WebCore 92 } // namespace WebCore
129 93
130 #endif 94 #endif
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathSegArcRel.h ('k') | Source/core/svg/SVGPathSegCurvetoCubicAbs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698