| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2002, 2003 The Karbon Developers | 2 * Copyright (C) 2002, 2003 The Karbon Developers |
| 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> | 3 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> |
| 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2006, 2007 Rob Buis <buis@kde.org> |
| 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. | 5 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "wtf/FastAllocBase.h" | 28 #include "wtf/FastAllocBase.h" |
| 29 #include "wtf/Noncopyable.h" | 29 #include "wtf/Noncopyable.h" |
| 30 | 30 |
| 31 namespace blink { | 31 namespace blink { |
| 32 | 32 |
| 33 enum PathCoordinateMode { | 33 enum PathCoordinateMode { |
| 34 AbsoluteCoordinates, | 34 AbsoluteCoordinates, |
| 35 RelativeCoordinates | 35 RelativeCoordinates |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 enum PathParsingMode { | |
| 39 NormalizedParsing, | |
| 40 UnalteredParsing | |
| 41 }; | |
| 42 | |
| 43 struct PathSegmentData; | 38 struct PathSegmentData; |
| 44 | 39 |
| 45 class SVGPathConsumer : public NoBaseWillBeGarbageCollectedFinalized<SVGPathCons
umer> { | 40 class SVGPathConsumer : public NoBaseWillBeGarbageCollectedFinalized<SVGPathCons
umer> { |
| 46 WTF_MAKE_NONCOPYABLE(SVGPathConsumer); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED(SVGPathConsumer); | 41 WTF_MAKE_NONCOPYABLE(SVGPathConsumer); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED(SVGPathConsumer); |
| 47 public: | 42 public: |
| 48 SVGPathConsumer() { } | 43 SVGPathConsumer() { } |
| 49 virtual ~SVGPathConsumer() { } | 44 virtual ~SVGPathConsumer() { } |
| 50 DEFINE_INLINE_VIRTUAL_TRACE() { } | 45 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 51 | 46 |
| 52 virtual void incrementPathSegmentCount() = 0; | 47 virtual void incrementPathSegmentCount() = 0; |
| 53 virtual bool continueConsuming() = 0; | 48 virtual bool continueConsuming() = 0; |
| 54 | 49 |
| 55 virtual void emitSegment(const PathSegmentData&) = 0; | 50 virtual void emitSegment(const PathSegmentData&) = 0; |
| 56 }; | 51 }; |
| 57 | 52 |
| 58 } // namespace blink | 53 } // namespace blink |
| 59 | 54 |
| 60 #endif // SVGPathConsumer_h | 55 #endif // SVGPathConsumer_h |
| OLD | NEW |