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

Unified Diff: ui/gfx/insets_f.cc

Issue 10025004: Floating point based Point/Size/Rect and Insets (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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/insets_f.h ('k') | ui/gfx/point_f.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/insets_f.cc
diff --git a/ui/gfx/insets_f.cc b/ui/gfx/insets_f.cc
new file mode 100644
index 0000000000000000000000000000000000000000..93c028e43a0147a4db255557ec6eacdb7ccbdc50
--- /dev/null
+++ b/ui/gfx/insets_f.cc
@@ -0,0 +1,16 @@
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/gfx/insets_f.h"
+
+#include "base/stringprintf.h"
+
+namespace gfx {
+
+std::string InsetsF::ToString() const {
+ // Print members in the same order of the constructor parameters.
+ return StringPrintf("%f,%f,%f,%f", top_, left_, bottom_, right_);
+}
+
+} // namespace gfx
« no previous file with comments | « ui/gfx/insets_f.h ('k') | ui/gfx/point_f.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698