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

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

Issue 344693003: Reduce forward declarations in core/svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/svg/SVGPathSegWithContext.h ('k') | Source/core/svg/SVGTests.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) 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 11 matching lines...) Expand all
22 22
23 #include "core/svg/SVGPathConsumer.h" 23 #include "core/svg/SVGPathConsumer.h"
24 #include "platform/geometry/FloatPoint.h" 24 #include "platform/geometry/FloatPoint.h"
25 #include "wtf/OwnPtr.h" 25 #include "wtf/OwnPtr.h"
26 #include "wtf/text/WTFString.h" 26 #include "wtf/text/WTFString.h"
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 class Path; 30 class Path;
31 class SVGPathByteStream; 31 class SVGPathByteStream;
32 class SVGPathElement;
33 class SVGPathSeg; 32 class SVGPathSeg;
34 class SVGPathSegList; 33 class SVGPathSegList;
35 34
36 // String/SVGPathByteStream -> Path 35 // String/SVGPathByteStream -> Path
37 bool buildPathFromString(const String&, Path&); 36 bool buildPathFromString(const String&, Path&);
38 bool buildPathFromByteStream(const SVGPathByteStream*, Path&); 37 bool buildPathFromByteStream(const SVGPathByteStream*, Path&);
39 38
40 // SVGPathSegList/String -> SVGPathByteStream 39 // SVGPathSegList/String -> SVGPathByteStream
41 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtr<SVGPathSeg>, SVGPathByteSt ream*, PathParsingMode); 40 bool appendSVGPathByteStreamFromSVGPathSeg(PassRefPtr<SVGPathSeg>, SVGPathByteSt ream*, PathParsingMode);
42 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream*, PathPar singMode); 41 bool buildSVGPathByteStreamFromString(const String&, SVGPathByteStream*, PathPar singMode);
43 42
44 // SVGPathByteStream/SVGPathSegList -> String 43 // SVGPathByteStream/SVGPathSegList -> String
45 bool buildStringFromByteStream(const SVGPathByteStream*, String&, PathParsingMod e); 44 bool buildStringFromByteStream(const SVGPathByteStream*, String&, PathParsingMod e);
46 bool buildStringFromSVGPathSegList(PassRefPtr<SVGPathSegList>, String&, PathPars ingMode); 45 bool buildStringFromSVGPathSegList(PassRefPtr<SVGPathSegList>, String&, PathPars ingMode);
47 46
48 bool addToSVGPathByteStream(SVGPathByteStream*, const SVGPathByteStream*, unsign ed repeatCount = 1); 47 bool addToSVGPathByteStream(SVGPathByteStream*, const SVGPathByteStream*, unsign ed repeatCount = 1);
49 48
50 bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream*, float length, unsigned& pathSeg); 49 bool getSVGPathSegAtLengthFromSVGPathByteStream(const SVGPathByteStream*, float length, unsigned& pathSeg);
51 bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream*, float& totalLen gth); 50 bool getTotalLengthOfSVGPathByteStream(const SVGPathByteStream*, float& totalLen gth);
52 bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream*, float length, FloatPoint&); 51 bool getPointAtLengthOfSVGPathByteStream(const SVGPathByteStream*, float length, FloatPoint&);
53 52
54 } // namespace WebCore 53 } // namespace WebCore
55 54
56 #endif // SVGPathUtilities_h 55 #endif // SVGPathUtilities_h
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPathSegWithContext.h ('k') | Source/core/svg/SVGTests.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698