From c0a2ee2bb8bfcc3ade688d43a95cc3404eea3748 Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 4 Mar 2009 22:18:42 +0000 Subject: 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 --- base/gfx/point.h | 6 ------ base/gfx/rect.h | 8 +++----- base/gfx/size.h | 6 ------ 3 files changed, 3 insertions(+), 17 deletions(-) (limited to 'base/gfx') 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 -#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 + #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 -#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__ -- cgit v1.1