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

Side by Side Diff: third_party/WebKit/Source/platform/geometry/DoublePoint.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DoublePoint_h 5 #ifndef DoublePoint_h
6 #define DoublePoint_h 6 #define DoublePoint_h
7 7
8 #include "platform/geometry/DoubleSize.h" 8 #include "platform/geometry/DoubleSize.h"
9 #include "platform/geometry/FloatPoint.h" 9 #include "platform/geometry/FloatPoint.h"
10 #include "platform/geometry/IntPoint.h" 10 #include "platform/geometry/IntPoint.h"
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 inline FloatPoint toFloatPoint(const DoublePoint& a) 167 inline FloatPoint toFloatPoint(const DoublePoint& a)
168 { 168 {
169 return FloatPoint(a.x(), a.y()); 169 return FloatPoint(a.x(), a.y());
170 } 170 }
171 171
172 inline DoubleSize toDoubleSize(const DoublePoint& a) 172 inline DoubleSize toDoubleSize(const DoublePoint& a)
173 { 173 {
174 return DoubleSize(a.x(), a.y()); 174 return DoubleSize(a.x(), a.y());
175 } 175 }
176 176
177 // Redeclared here to avoid ODR issues. 177 PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const DoublePoint&);
178 // See platform/testing/GeometryPrinters.h.
179 void PrintTo(const DoublePoint&, std::ostream*);
180 178
181 } // namespace blink 179 } // namespace blink
182 180
183 #endif 181 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/blink_platform.gypi ('k') | third_party/WebKit/Source/platform/geometry/DoublePoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698