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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 parseZoomAndPan(start, start + value.length()); | 72 parseZoomAndPan(start, start + value.length()); |
73 } | 73 } |
74 } | 74 } |
75 return true; | 75 return true; |
76 } | 76 } |
77 | 77 |
78 return false; | 78 return false; |
79 } | 79 } |
80 | 80 |
81 // SVGZoomAndPan JS API. | 81 // SVGZoomAndPan JS API. |
82 static SVGZoomAndPanType zoomAndPan(SVGZoomAndPan* object) { return object->
m_zoomAndPan; } | 82 static SVGZoomAndPanType zoomAndPan(SVGZoomAndPan& object) { return object.m
_zoomAndPan; } |
83 static void setZoomAndPan(SVGZoomAndPan* object, unsigned short value, Excep
tionState&) { object->setZoomAndPan(value); } | 83 static void setZoomAndPan(SVGZoomAndPan& object, unsigned short value, Excep
tionState&) { object.setZoomAndPan(value); } |
84 static void setZoomAndPan(SVGViewSpec*, unsigned short, ExceptionState&); | 84 static void setZoomAndPan(SVGViewSpec&, unsigned short, ExceptionState&); |
85 | 85 |
86 void setZoomAndPan(unsigned short value) { m_zoomAndPan = parseFromNumber(va
lue); } | 86 void setZoomAndPan(unsigned short value) { m_zoomAndPan = parseFromNumber(va
lue); } |
87 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; } | 87 SVGZoomAndPanType zoomAndPan() const { return m_zoomAndPan; } |
88 | 88 |
89 protected: | 89 protected: |
90 SVGZoomAndPan(); | 90 SVGZoomAndPan(); |
91 void resetZoomAndPan(); | 91 void resetZoomAndPan(); |
92 | 92 |
93 private: | 93 private: |
94 SVGZoomAndPanType m_zoomAndPan; | 94 SVGZoomAndPanType m_zoomAndPan; |
95 }; | 95 }; |
96 | 96 |
97 } // namespace WebCore | 97 } // namespace WebCore |
98 | 98 |
99 #endif // SVGZoomAndPan_h | 99 #endif // SVGZoomAndPan_h |
OLD | NEW |