OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010, 2012. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2010, 2012. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 17 matching lines...) Expand all Loading... |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 class Path; | 31 class Path; |
32 class SVGPathByteStream; | 32 class SVGPathByteStream; |
33 class SVGPathSeg; | 33 class SVGPathSeg; |
34 class SVGPathSegList; | 34 class SVGPathSegList; |
35 | 35 |
36 // String/SVGPathByteStream -> Path | 36 // String/SVGPathByteStream -> Path |
37 bool buildPathFromString(const String&, Path&); | 37 bool buildPathFromString(const String&, Path&); |
38 bool buildPathFromByteStream(const SVGPathByteStream*, Path&); | 38 bool buildPathFromByteStream(const SVGPathByteStream&, Path&); |
39 | 39 |
40 // SVGPathSegList/String -> SVGPathByteStream | 40 // SVGPathSegList/String -> SVGPathByteStream |
41 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtrWillBeRawPtr<SVGPathSeg>, S
VGPathByteStream*, PathParsingMode); | 41 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtrWillBeRawPtr<SVGPathSeg>, S
VGPathByteStream&, PathParsingMode); |
42 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream*, PathPar
singMode); | 42 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream&, PathPar
singMode); |
43 | 43 |
44 // SVGPathByteStream/SVGPathSegList -> String | 44 // SVGPathByteStream/SVGPathSegList -> String |
45 bool buildStringFromByteStream(const SVGPathByteStream*, String&, PathParsingMod
e); | 45 bool buildStringFromByteStream(const SVGPathByteStream&, String&, PathParsingMod
e); |
46 bool buildStringFromSVGPathSegList(PassRefPtrWillBeRawPtr<SVGPathSegList>, Strin
g&, PathParsingMode); | 46 bool buildStringFromSVGPathSegList(PassRefPtrWillBeRawPtr<SVGPathSegList>, Strin
g&, PathParsingMode); |
47 | 47 |
48 bool addToSVGPathByteStream(SVGPathByteStream*, const SVGPathByteStream*, unsign
ed repeatCount = 1); | 48 bool addToSVGPathByteStream(SVGPathByteStream&, const SVGPathByteStream&, unsign
ed repeatCount = 1); |
49 | 49 |
50 bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream*, float
length, unsigned& pathSeg); | 50 bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream&, float
length, unsigned& pathSeg); |
51 bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream*, float& totalLen
gth); | 51 bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream&, float& totalLen
gth); |
52 bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream*, float length,
FloatPoint&); | 52 bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream&, float length,
FloatPoint&); |
53 | 53 |
54 } // namespace blink | 54 } // namespace blink |
55 | 55 |
56 #endif // SVGPathUtilities_h | 56 #endif // SVGPathUtilities_h |
OLD | NEW |