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

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

Issue 171333003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698