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

Unified Diff: ui/gfx/size.h

Issue 8038024: ui/gfx: Add ToString() function to Size 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 | « ui/gfx/rect.cc ('k') | ui/gfx/size.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/size.h
diff --git a/ui/gfx/size.h b/ui/gfx/size.h
index a237a5e443dde7ec51d4fd77f4b0eec2ad49f750..8e5436042138ddef5a4de13c62ed526e8cc4e63e 100644
--- a/ui/gfx/size.h
+++ b/ui/gfx/size.h
@@ -6,7 +6,7 @@
#define UI_GFX_SIZE_H_
#pragma once
-#include <iosfwd>
+#include <string>
#include "build/build_config.h"
#include "ui/base/ui_export.h"
@@ -22,7 +22,7 @@ namespace gfx {
// A size has width and height values.
class UI_EXPORT Size {
public:
- Size() : width_(0), height_(0) {}
+ Size();
Size(int width, int height);
#if defined(OS_MACOSX)
explicit Size(const CGSize& s);
@@ -71,13 +71,13 @@ class UI_EXPORT Size {
CGSize ToCGSize() const;
#endif
+ std::string ToString() const;
+
private:
int width_;
int height_;
};
-UI_EXPORT std::ostream& operator<<(std::ostream& out, const gfx::Size& s);
-
} // namespace gfx
#endif // UI_GFX_SIZE_H_
« no previous file with comments | « ui/gfx/rect.cc ('k') | ui/gfx/size.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698