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

Unified Diff: ui/gfx/point.h

Issue 8044015: ui/gfx: Add ToString() function to Point 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 | « no previous file | ui/gfx/point.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/point.h
diff --git a/ui/gfx/point.h b/ui/gfx/point.h
index a290f593b56b65f08f5ec70c4acf480cd179a130..5f2a3d42287b8b1fd30fa7aa4f2f4fc7a0e5a564 100644
--- a/ui/gfx/point.h
+++ b/ui/gfx/point.h
@@ -6,10 +6,9 @@
#define UI_GFX_POINT_H_
#pragma once
-#include "build/build_config.h"
-
-#include <iosfwd>
+#include <string>
+#include "build/build_config.h"
#include "ui/base/ui_export.h"
#if defined(OS_WIN)
@@ -91,13 +90,14 @@ class UI_EXPORT Point {
CGPoint ToCGPoint() const;
#endif
+ // Returns a string representation of point.
+ std::string ToString() const;
+
private:
int x_;
int y_;
};
-UI_EXPORT std::ostream& operator<<(std::ostream& out, const gfx::Point& p);
-
} // namespace gfx
#endif // UI_GFX_POINT_H_
« no previous file with comments | « no previous file | ui/gfx/point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698