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

Unified Diff: ui/gfx/rect.h

Issue 8066006: ui/gfx: Add ToString() function to Rect class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | « printing/page_setup_unittest.cc ('k') | ui/gfx/rect.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/rect.h
diff --git a/ui/gfx/rect.h b/ui/gfx/rect.h
index 21abf40ac454a7d4a71cfd7a03bcc71cc456412b..d77d2f6f721e58baf38fb3c750523db46876bf6f 100644
--- a/ui/gfx/rect.h
+++ b/ui/gfx/rect.h
@@ -13,7 +13,7 @@
#define UI_GFX_RECT_H_
#pragma once
-#include <iosfwd>
+#include <string>
#include "ui/gfx/point.h"
#include "ui/gfx/size.h"
@@ -50,7 +50,7 @@ class UI_EXPORT Rect {
explicit Rect(const gfx::Size& size);
Rect(const gfx::Point& origin, const gfx::Size& size);
- ~Rect() {}
+ ~Rect();
#if defined(OS_WIN)
Rect& operator=(const RECT& r);
@@ -185,13 +185,13 @@ class UI_EXPORT Rect {
// same height) with the given rectangle, and the rectangles do not overlap.
bool SharesEdgeWith(const gfx::Rect& rect) const;
+ std::string ToString() const;
+
private:
gfx::Point origin_;
gfx::Size size_;
};
-UI_EXPORT std::ostream& operator<<(std::ostream& out, const gfx::Rect& r);
-
} // namespace gfx
#endif // UI_GFX_RECT_H_
« no previous file with comments | « printing/page_setup_unittest.cc ('k') | ui/gfx/rect.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698