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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/FloatPoint3D.h

Issue 2267183003: Switch from PrintTo to operator<< for platform printers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <wildfox@kde.org> 2 Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <wildfox@kde.org>
3 2004, 2005 Rob Buis <buis@kde.org> 3 2004, 2005 Rob Buis <buis@kde.org>
4 2005 Eric Seidel <eric@webkit.org> 4 2005 Eric Seidel <eric@webkit.org>
5 2010 Zoltan Herczeg <zherczeg@webkit.org> 5 2010 Zoltan Herczeg <zherczeg@webkit.org>
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 inline FloatPoint3D operator*(const FloatPoint3D& v, float k) 186 inline FloatPoint3D operator*(const FloatPoint3D& v, float k)
187 { 187 {
188 return FloatPoint3D(k * v.x(), k * v.y(), k * v.z()); 188 return FloatPoint3D(k * v.x(), k * v.y(), k * v.z());
189 } 189 }
190 190
191 inline float FloatPoint3D::distanceTo(const FloatPoint3D& a) const 191 inline float FloatPoint3D::distanceTo(const FloatPoint3D& a) const
192 { 192 {
193 return (*this - a).length(); 193 return (*this - a).length();
194 } 194 }
195 195
196 // Redeclared here to avoid ODR issues. 196 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const FloatPoint3D&);
197 // See platform/testing/GeometryPrinters.h.
198 void PrintTo(const FloatPoint3D&, std::ostream*);
199 197
200 } // namespace blink 198 } // namespace blink
201 199
202 #endif // FloatPoint3D_h 200 #endif // FloatPoint3D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698