summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 22:18:42 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 22:18:42 +0000
commitc0a2ee2bb8bfcc3ade688d43a95cc3404eea3748 (patch)
tree0f5080d1c37b59e703f0ffa7d00b87dd97122d6a /base
parent04f40b3227b881980574fc94b2cfc01bbbeb1dc0 (diff)
downloadchromium_src-c0a2ee2bb8bfcc3ade688d43a95cc3404eea3748.zip
chromium_src-c0a2ee2bb8bfcc3ade688d43a95cc3404eea3748.tar.gz
chromium_src-c0a2ee2bb8bfcc3ade688d43a95cc3404eea3748.tar.bz2
Expose the iostream (logging) interfaces of some gfx:: classes.
This is useful when developing anyway, and the compiler ought to be able to eliminate any dead code if we don't use it. Review URL: http://codereview.chromium.org/39089 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10926 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/gfx/point.h6
-rwxr-xr-xbase/gfx/rect.h8
-rw-r--r--base/gfx/size.h6
3 files changed, 3 insertions, 17 deletions
diff --git a/base/gfx/point.h b/base/gfx/point.h
index c36c1d4d..1dbf5bd 100644
--- a/base/gfx/point.h
+++ b/base/gfx/point.h
@@ -7,9 +7,7 @@
#include "build/build_config.h"
-#ifdef UNIT_TEST
#include <iostream>
-#endif
#if defined(OS_WIN)
typedef struct tagPOINT POINT;
@@ -71,13 +69,9 @@ class Point {
} // namespace gfx
-#ifdef UNIT_TEST
-
inline std::ostream& operator<<(std::ostream& out, const gfx::Point& p) {
return out << p.x() << "," << p.y();
}
-#endif // #ifdef UNIT_TEST
-
#endif // BASE_GFX_POINT_H__
diff --git a/base/gfx/rect.h b/base/gfx/rect.h
index 54e864d..a1759f5 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__
diff --git a/base/gfx/size.h b/base/gfx/size.h
index 175a206..e4666d6 100644
--- a/base/gfx/size.h
+++ b/base/gfx/size.h
@@ -7,9 +7,7 @@
#include "build/build_config.h"
-#ifdef UNIT_TEST
#include <iostream>
-#endif
#if defined(OS_WIN)
typedef struct tagSIZE SIZE;
@@ -70,13 +68,9 @@ class Size {
} // namespace gfx
-#ifdef UNIT_TEST
-
inline std::ostream& operator<<(std::ostream& out, const gfx::Size& s) {
return out << s.width() << "x" << s.height();
}
-#endif // #ifdef UNIT_TEST
-
#endif // BASE_GFX_SIZE_H__