| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2014 Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2014 Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 enum SVGZoomAndPanType { | 32 enum SVGZoomAndPanType { |
| 33 SVGZoomAndPanUnknown = 0, | 33 SVGZoomAndPanUnknown = 0, |
| 34 SVGZoomAndPanDisable, | 34 SVGZoomAndPanDisable, |
| 35 SVGZoomAndPanMagnify | 35 SVGZoomAndPanMagnify |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 class SVGZoomAndPan { | 38 class SVGZoomAndPan { |
| 39 public: | 39 public: |
| 40 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. | 40 // Forward declare enumerations in the W3C naming scheme, for IDL generation
. |
| 41 enum { | 41 enum { |
| 42 SVG_ZOOMANDPAN_UNKNOWN = SVGZoomAndPanUnknown, | 42 kSvgZoomandpanUnknown = SVGZoomAndPanUnknown, |
| 43 SVG_ZOOMANDPAN_DISABLE = SVGZoomAndPanDisable, | 43 kSvgZoomandpanDisable = SVGZoomAndPanDisable, |
| 44 SVG_ZOOMANDPAN_MAGNIFY = SVGZoomAndPanMagnify | 44 kSvgZoomandpanMagnify = SVGZoomAndPanMagnify |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 virtual ~SVGZoomAndPan() { } | 47 virtual ~SVGZoomAndPan() { } |
| 48 | 48 |
| 49 static bool isKnownAttribute(const QualifiedName&); | 49 static bool isKnownAttribute(const QualifiedName&); |
| 50 | 50 |
| 51 static SVGZoomAndPanType parseFromNumber(unsigned short number) | 51 static SVGZoomAndPanType parseFromNumber(unsigned short number) |
| 52 { | 52 { |
| 53 if (!number || number > SVGZoomAndPanMagnify) | 53 if (!number || number > SVGZoomAndPanMagnify) |
| 54 return SVGZoomAndPanUnknown; | 54 return SVGZoomAndPanUnknown; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 SVGZoomAndPan(); | 86 SVGZoomAndPan(); |
| 87 void resetZoomAndPan(); | 87 void resetZoomAndPan(); |
| 88 | 88 |
| 89 private: | 89 private: |
| 90 SVGZoomAndPanType m_zoomAndPan; | 90 SVGZoomAndPanType m_zoomAndPan; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // SVGZoomAndPan_h | 95 #endif // SVGZoomAndPan_h |
| OLD | NEW |