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

Unified Diff: third_party/WebKit/Source/platform/geometry/IntRect.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/IntRect.h
diff --git a/third_party/WebKit/Source/platform/geometry/IntRect.h b/third_party/WebKit/Source/platform/geometry/IntRect.h
index a8e5c2d2bd87fd7a4c4c00b2cfdef86fe601f848..7f3d6c12bda459d7f1c5c51674dce2d527faec15 100644
--- a/third_party/WebKit/Source/platform/geometry/IntRect.h
+++ b/third_party/WebKit/Source/platform/geometry/IntRect.h
@@ -32,6 +32,7 @@
#include "wtf/Forward.h"
#include "wtf/Vector.h"
#include "wtf/VectorTraits.h"
+#include <iosfwd>
#if OS(MACOSX)
typedef struct CGRect CGRect;
@@ -179,12 +180,6 @@ public:
operator gfx::Rect() const;
-#ifndef NDEBUG
- // Prints the rect to the screen.
- void show() const;
- String toString() const;
-#endif
-
private:
IntPoint m_location;
IntSize m_size;
@@ -232,9 +227,7 @@ PLATFORM_EXPORT IntRect enclosingIntRect(const NSRect&);
#endif
#endif
-// Redeclared here to avoid ODR issues.
-// See platform/testing/GeometryPrinters.h.
-void PrintTo(const IntRect&, std::ostream*);
+PLATFORM_EXPORT std::ostream& operator<<(std::ostream&, const IntRect&);
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698