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

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

Issue 18053005: Introduce SVGGraphicsElement IDL interface (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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 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,
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 SVGPathElement_h 21 #ifndef SVGPathElement_h
22 #define SVGPathElement_h 22 #define SVGPathElement_h
23 23
24 #include "SVGNames.h" 24 #include "SVGNames.h"
25 #include "core/svg/SVGAnimatedBoolean.h" 25 #include "core/svg/SVGAnimatedBoolean.h"
26 #include "core/svg/SVGAnimatedNumber.h" 26 #include "core/svg/SVGAnimatedNumber.h"
27 #include "core/svg/SVGExternalResourcesRequired.h" 27 #include "core/svg/SVGExternalResourcesRequired.h"
28 #include "core/svg/SVGGraphicsElement.h"
28 #include "core/svg/SVGPathByteStream.h" 29 #include "core/svg/SVGPathByteStream.h"
29 #include "core/svg/SVGPathSegList.h" 30 #include "core/svg/SVGPathSegList.h"
30 #include "core/svg/SVGStyledTransformableElement.h"
31 #include "core/svg/SVGTests.h"
32 31
33 namespace WebCore { 32 namespace WebCore {
34 33
35 class SVGPathSegArcAbs; 34 class SVGPathSegArcAbs;
36 class SVGPathSegArcRel; 35 class SVGPathSegArcRel;
37 class SVGPathSegClosePath; 36 class SVGPathSegClosePath;
38 class SVGPathSegLinetoAbs; 37 class SVGPathSegLinetoAbs;
39 class SVGPathSegLinetoRel; 38 class SVGPathSegLinetoRel;
40 class SVGPathSegMovetoAbs; 39 class SVGPathSegMovetoAbs;
41 class SVGPathSegMovetoRel; 40 class SVGPathSegMovetoRel;
42 class SVGPathSegCurvetoCubicAbs; 41 class SVGPathSegCurvetoCubicAbs;
43 class SVGPathSegCurvetoCubicRel; 42 class SVGPathSegCurvetoCubicRel;
44 class SVGPathSegLinetoVerticalAbs; 43 class SVGPathSegLinetoVerticalAbs;
45 class SVGPathSegLinetoVerticalRel; 44 class SVGPathSegLinetoVerticalRel;
46 class SVGPathSegLinetoHorizontalAbs; 45 class SVGPathSegLinetoHorizontalAbs;
47 class SVGPathSegLinetoHorizontalRel; 46 class SVGPathSegLinetoHorizontalRel;
48 class SVGPathSegCurvetoQuadraticAbs; 47 class SVGPathSegCurvetoQuadraticAbs;
49 class SVGPathSegCurvetoQuadraticRel; 48 class SVGPathSegCurvetoQuadraticRel;
50 class SVGPathSegCurvetoCubicSmoothAbs; 49 class SVGPathSegCurvetoCubicSmoothAbs;
51 class SVGPathSegCurvetoCubicSmoothRel; 50 class SVGPathSegCurvetoCubicSmoothRel;
52 class SVGPathSegCurvetoQuadraticSmoothAbs; 51 class SVGPathSegCurvetoQuadraticSmoothAbs;
53 class SVGPathSegCurvetoQuadraticSmoothRel; 52 class SVGPathSegCurvetoQuadraticSmoothRel;
54 class SVGPathSegListPropertyTearOff; 53 class SVGPathSegListPropertyTearOff;
55 54
56 class SVGPathElement FINAL : public SVGStyledTransformableElement, 55 class SVGPathElement FINAL : public SVGGraphicsElement,
57 public SVGTests,
58 public SVGExternalResourcesRequired { 56 public SVGExternalResourcesRequired {
59 public: 57 public:
60 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*); 58 static PassRefPtr<SVGPathElement> create(const QualifiedName&, Document*);
61 59
62 float getTotalLength(); 60 float getTotalLength();
63 FloatPoint getPointAtLength(float distance); 61 FloatPoint getPointAtLength(float distance);
64 unsigned getPathSegAtLength(float distance); 62 unsigned getPathSegAtLength(float distance);
65 63
66 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol e = PathSegUndefinedRole); 64 PassRefPtr<SVGPathSegClosePath> createSVGPathSegClosePath(SVGPathSegRole rol e = PathSegUndefinedRole);
67 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole role = PathSegUndefinedRole); 65 PassRefPtr<SVGPathSegMovetoAbs> createSVGPathSegMovetoAbs(float x, float y, SVGPathSegRole role = PathSegUndefinedRole);
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 137
140 inline SVGPathElement* toSVGPathElement(SVGElement* element) 138 inline SVGPathElement* toSVGPathElement(SVGElement* element)
141 { 139 {
142 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p athTag)); 140 ASSERT_WITH_SECURITY_IMPLICATION(!element || element->hasTagName(SVGNames::p athTag));
143 return static_cast<SVGPathElement*>(element); 141 return static_cast<SVGPathElement*>(element);
144 } 142 }
145 143
146 } // namespace WebCore 144 } // namespace WebCore
147 145
148 #endif 146 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698