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

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: Adjust tests to work around uninteresting cross-platform differences Created 4 years, 5 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..fac75cb171b1f7eb129d3dd43cdf8a44c0c83cd7 100644
--- a/third_party/WebKit/Source/platform/geometry/IntPoint.h
+++ b/third_party/WebKit/Source/platform/geometry/IntPoint.h
@@ -32,6 +32,7 @@
#include "wtf/Forward.h"
#include "wtf/MathExtras.h"
#include "wtf/VectorTraits.h"
+#include <iosfwd>
#if OS(MACOSX)
typedef struct CGPoint CGPoint;
@@ -101,10 +102,6 @@ public:
#endif
#endif
-#ifndef NDEBUG
- String toString() const;
-#endif
-
private:
int m_x, m_y;
};
@@ -166,6 +163,8 @@ inline int IntPoint::distanceSquaredToPoint(const IntPoint& point) const
return ((*this) - point).diagonalLengthSquared();
}
+PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const IntPoint&);
+
} // namespace blink
WTF_ALLOW_MOVE_INIT_AND_COMPARE_WITH_MEM_FUNCTIONS(blink::IntPoint);

Powered by Google App Engine
This is Rietveld 408576698