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

Unified Diff: ui/mojo/geometry/geometry.mojom

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: ui/mojo/geometry/geometry.mojom
diff --git a/ui/mojo/geometry/geometry.mojom b/ui/mojo/geometry/geometry.mojom
index 95a433616749216e10d01dc60d1f0e4be67a035f..771e6f4ec9c493d2152466deb34aebf16f043a74 100644
--- a/ui/mojo/geometry/geometry.mojom
+++ b/ui/mojo/geometry/geometry.mojom
@@ -19,6 +19,11 @@ struct Size {
int32 height;
};
+struct SizeF {
+ int32 width;
+ int32 height;
+};
+
struct Rect {
int32 x;
int32 y;
@@ -44,3 +49,10 @@ struct Insets {
int32 bottom;
int32 right;
};
+
+struct InsetsF {
+ float top;
+ float left;
+ float bottom;
+ float right;
+};

Powered by Google App Engine
This is Rietveld 408576698