| 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 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 #ifndef SVGPathConsumer_h | 24 #ifndef SVGPathConsumer_h |
| 25 #define SVGPathConsumer_h | 25 #define SVGPathConsumer_h |
| 26 | 26 |
| 27 #include "platform/heap/Handle.h" | 27 #include "platform/heap/Handle.h" |
| 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 { | |
| 34 AbsoluteCoordinates, | |
| 35 RelativeCoordinates | |
| 36 }; | |
| 37 | |
| 38 struct PathSegmentData; | 33 struct PathSegmentData; |
| 39 | 34 |
| 40 class SVGPathConsumer : public NoBaseWillBeGarbageCollectedFinalized<SVGPathCons
umer> { | 35 class SVGPathConsumer : public NoBaseWillBeGarbageCollectedFinalized<SVGPathCons
umer> { |
| 41 WTF_MAKE_NONCOPYABLE(SVGPathConsumer); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED(SVGPathConsumer); | 36 WTF_MAKE_NONCOPYABLE(SVGPathConsumer); WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOV
ED(SVGPathConsumer); |
| 42 public: | 37 public: |
| 43 SVGPathConsumer() { } | 38 SVGPathConsumer() { } |
| 44 virtual ~SVGPathConsumer() { } | 39 virtual ~SVGPathConsumer() { } |
| 45 DEFINE_INLINE_VIRTUAL_TRACE() { } | 40 DEFINE_INLINE_VIRTUAL_TRACE() { } |
| 46 | 41 |
| 47 virtual void incrementPathSegmentCount() = 0; | 42 virtual void incrementPathSegmentCount() = 0; |
| 48 virtual bool continueConsuming() = 0; | 43 virtual bool continueConsuming() = 0; |
| 49 | 44 |
| 50 virtual void emitSegment(const PathSegmentData&) = 0; | 45 virtual void emitSegment(const PathSegmentData&) = 0; |
| 51 }; | 46 }; |
| 52 | 47 |
| 53 } // namespace blink | 48 } // namespace blink |
| 54 | 49 |
| 55 #endif // SVGPathConsumer_h | 50 #endif // SVGPathConsumer_h |
| OLD | NEW |