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

Unified Diff: base/gfx/rect.h

Issue 39089: Expose the iostream (logging) interfaces of some gfx:: classes. (Closed)
Patch Set: Created 11 years, 10 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
« no previous file with comments | « base/gfx/point.h ('k') | base/gfx/size.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/gfx/rect.h
diff --git a/base/gfx/rect.h b/base/gfx/rect.h
index 54e864defec79b89b699bc87c1141de89d9b12e6..a1759f5a31fd41bb350815d23c9eac84d1b6176b 100755
--- a/base/gfx/rect.h
+++ b/base/gfx/rect.h
@@ -12,8 +12,10 @@
#ifndef BASE_GFX_RECT_H__
#define BASE_GFX_RECT_H__
-#include "base/gfx/size.h"
+#include <iostream>
+
#include "base/gfx/point.h"
+#include "base/gfx/size.h"
#if defined(OS_WIN)
typedef struct tagRECT RECT;
@@ -155,13 +157,9 @@ class Rect {
} // namespace gfx
-#ifdef UNIT_TEST
-
inline std::ostream& operator<<(std::ostream& out, const gfx::Rect& r) {
return out << r.origin() << " " << r.size();
}
-#endif // #ifdef UNIT_TEST
-
#endif // BASE_GFX_RECT_H__
« no previous file with comments | « base/gfx/point.h ('k') | base/gfx/size.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698