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

Unified Diff: third_party/WebKit/Source/platform/geometry/IntPoint.h

Issue 2191233002: Add platform/geometry pretty printers for logging and testing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fewer redundant spaces, more toString tests 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/geometry/IntPoint.h
diff --git a/third_party/WebKit/Source/platform/geometry/IntPoint.h b/third_party/WebKit/Source/platform/geometry/IntPoint.h
index 5d7825d636d37e642f8a4e9d9067fdf3a916c276..fef845d94bf3879391a96c75d0b902d6829adb12 100644
--- a/third_party/WebKit/Source/platform/geometry/IntPoint.h
+++ b/third_party/WebKit/Source/platform/geometry/IntPoint.h
@@ -101,9 +101,7 @@ public:
#endif
#endif
-#ifndef NDEBUG
String toString() const;
-#endif
private:
int m_x, m_y;
@@ -166,6 +164,10 @@ inline int IntPoint::distanceSquaredToPoint(const IntPoint& point) const
return ((*this) - point).diagonalLengthSquared();
}
+// Redeclared here to avoid ODR issues.
+// See platform/testing/GeometryPrinters.h.
+void PrintTo(const IntPoint&, std::ostream*);
+
} // namespace blink
WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::IntPoint);
« no previous file with comments | « third_party/WebKit/Source/platform/geometry/FloatSize.cpp ('k') | third_party/WebKit/Source/platform/geometry/IntPoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698