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

Unified Diff: ui/gfx/geometry/mojo/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: rebase 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/gfx/geometry/mojo/geometry.mojom
diff --git a/ui/gfx/geometry/mojo/geometry.mojom b/ui/gfx/geometry/mojo/geometry.mojom
index 8621f69ced77c2874c9c0aff2081e215a43f3511..89b33a5c3480fbbe409a486d2200c51100fe6b3e 100644
--- a/ui/gfx/geometry/mojo/geometry.mojom
+++ b/ui/gfx/geometry/mojo/geometry.mojom
@@ -20,6 +20,11 @@ struct Size {
int32 height;
};
+struct SizeF {
+ int32 width;
+ int32 height;
+};
+
struct Rect {
int32 x;
int32 y;
@@ -45,3 +50,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