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

Unified Diff: app/gfx/insets.h

Issue 497004: Add gfx::Insets::ToString(). (Closed)
Patch Set: fix a line break Created 11 years 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 | « app/app_base.gypi ('k') | app/gfx/insets.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: app/gfx/insets.h
diff --git a/app/gfx/insets.h b/app/gfx/insets.h
index f5806ac5fc58b897be51614c9c687b9286b7efa0..70b3683191b8674549dcf2cfae48bbfaaec2a4d9 100644
--- a/app/gfx/insets.h
+++ b/app/gfx/insets.h
@@ -11,6 +11,8 @@
#include <gtk/gtkstyle.h>
#endif
+#include <string>
+
namespace gfx {
//
@@ -76,6 +78,9 @@ class Insets {
return *this;
}
+ // Returns a string representation of the insets.
+ std::string ToString() const;
+
private:
int top_;
int left_;
@@ -83,6 +88,6 @@ class Insets {
int right_;
};
-} // namespace
+} // namespace gfx
#endif // APP_GFX_INSETS_H_
« no previous file with comments | « app/app_base.gypi ('k') | app/gfx/insets.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698