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

Unified Diff: mojo/services/geometry/cpp/formatting.cc

Issue 1782733002: Mozart: The great RectF-ication. (Closed) Base URL: git@github.com:domokit/mojo.git@moz-9
Patch Set: rebase Created 4 years, 9 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 | « mojo/services/geometry/cpp/formatting.h ('k') | mojo/services/geometry/cpp/geometry_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/geometry/cpp/formatting.cc
diff --git a/mojo/services/geometry/cpp/formatting.cc b/mojo/services/geometry/cpp/formatting.cc
index 76162d7a592c7c07936210e497ec1a689675eee7..2913a132bb429f850c79483c06cd3233abd9c50b 100644
--- a/mojo/services/geometry/cpp/formatting.cc
+++ b/mojo/services/geometry/cpp/formatting.cc
@@ -12,8 +12,8 @@ std::ostream& operator<<(std::ostream& os, const mojo::Point& value) {
return os << "{x=" << value.x << ", y=" << value.y << "}";
}
-std::ostream& operator<<(std::ostream& os, const mojo::Size& value) {
- return os << "{width=" << value.width << ", height=" << value.height << "}";
+std::ostream& operator<<(std::ostream& os, const mojo::PointF& value) {
+ return os << "{x=" << value.x << ", y=" << value.y << "}";
}
std::ostream& operator<<(std::ostream& os, const mojo::Rect& value) {
@@ -21,7 +21,12 @@ std::ostream& operator<<(std::ostream& os, const mojo::Rect& value) {
<< ", width=" << value.width << ", height=" << value.height << "}";
}
-std::ostream& operator<<(std::ostream& os, const mojo::RRect& value) {
+std::ostream& operator<<(std::ostream& os, const mojo::RectF& value) {
+ return os << "{x=" << value.x << ", y=" << value.y
+ << ", width=" << value.width << ", height=" << value.height << "}";
+}
+
+std::ostream& operator<<(std::ostream& os, const mojo::RRectF& value) {
return os << "{x=" << value.x << ", y=" << value.y
<< ", width=" << value.width << ", height=" << value.height
<< ", top_left_radius_x=" << value.top_left_radius_x
@@ -34,6 +39,10 @@ std::ostream& operator<<(std::ostream& os, const mojo::RRect& value) {
<< ", bottom_right_radius_y=" << value.bottom_right_radius_y << "}";
}
+std::ostream& operator<<(std::ostream& os, const mojo::Size& value) {
+ return os << "{width=" << value.width << ", height=" << value.height << "}";
+}
+
std::ostream& operator<<(std::ostream& os, const mojo::Transform& value) {
if (value.matrix) {
os << "[";
« no previous file with comments | « mojo/services/geometry/cpp/formatting.h ('k') | mojo/services/geometry/cpp/geometry_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698