Index: ui/gfx/vector2d.cc |
diff --git a/ui/gfx/insets_f.cc b/ui/gfx/vector2d.cc |
similarity index 51% |
copy from ui/gfx/insets_f.cc |
copy to ui/gfx/vector2d.cc |
index 54aa131bbf9330b6e393ee0e5b4d70c70392bbf0..0e4fe0741409511af2f371b26a4bd4bd80e7d0c7 100644 |
--- a/ui/gfx/insets_f.cc |
+++ b/ui/gfx/vector2d.cc |
@@ -2,15 +2,23 @@ |
// 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" |
+#include "ui/gfx/vector2d.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_); |
+Vector2d::Vector2d() |
+ : x_(0), |
+ y_(0) { |
+} |
+ |
+Vector2d::Vector2d(int x, int y) |
+ : x_(x), |
+ y_(y) { |
+} |
+ |
+std::string Vector2d::ToString() const { |
+ return base::StringPrintf("[%d %d]", x_, y_); |
} |
} // namespace gfx |