Bumping manifests a=b2g-bump
[gecko.git] / dom / svg / SVGAttrValueWrapper.h
blob8c02b73a5bb0841f64bea46e1d68d697e476dda2
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 #ifndef MOZILLA_SVGATTRVALUEWRAPPER_H__
8 #define MOZILLA_SVGATTRVALUEWRAPPER_H__
10 /**
11 * Utility wrapper for handling SVG types used inside nsAttrValue so that these
12 * types don't need to be exported outside the SVG module.
15 #include "nsStringGlue.h"
17 class nsSVGAngle;
18 class nsSVGIntegerPair;
19 class nsSVGLength2;
20 class nsSVGNumberPair;
21 class nsSVGViewBox;
23 namespace mozilla {
24 class SVGLengthList;
25 class SVGNumberList;
26 class SVGPathData;
27 class SVGPointList;
28 class SVGAnimatedPreserveAspectRatio;
29 class SVGStringList;
30 class SVGTransformList;
33 namespace mozilla {
35 class SVGAttrValueWrapper
37 public:
38 static void ToString(const nsSVGAngle* aAngle, nsAString& aResult);
39 static void ToString(const nsSVGIntegerPair* aIntegerPair,
40 nsAString& aResult);
41 static void ToString(const nsSVGLength2* aLength, nsAString& aResult);
42 static void ToString(const mozilla::SVGLengthList* aLengthList,
43 nsAString& aResult);
44 static void ToString(const mozilla::SVGNumberList* aNumberList,
45 nsAString& aResult);
46 static void ToString(const nsSVGNumberPair* aNumberPair, nsAString& aResult);
47 static void ToString(const mozilla::SVGPathData* aPathData,
48 nsAString& aResult);
49 static void ToString(const mozilla::SVGPointList* aPointList,
50 nsAString& aResult);
51 static void ToString(
52 const mozilla::SVGAnimatedPreserveAspectRatio* aPreserveAspectRatio,
53 nsAString& aResult);
54 static void ToString(const mozilla::SVGStringList* aStringList,
55 nsAString& aResult);
56 static void ToString(const mozilla::SVGTransformList* aTransformList,
57 nsAString& aResult);
58 static void ToString(const nsSVGViewBox* aViewBox, nsAString& aResult);
61 } /* namespace mozilla */
63 #endif // MOZILLA_SVGATTRVALUEWRAPPER_H__