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

Unified Diff: mojo/public/interfaces/bindings/tests/rect.mojom

Issue 2259283003: Mojo C++ bindings: share DataView class between chromium and blink variants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@92_change_traits_param
Patch Set: . Created 4 years, 4 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: mojo/public/interfaces/bindings/tests/rect.mojom
diff --git a/mojo/public/interfaces/bindings/tests/rect.mojom b/mojo/public/interfaces/bindings/tests/rect.mojom
index 833c76bb2a45c8b7f8d32b3bec58648ea7b291e4..4ecc4d9660ce705ee937502925b80d68c5001826 100644
--- a/mojo/public/interfaces/bindings/tests/rect.mojom
+++ b/mojo/public/interfaces/bindings/tests/rect.mojom
@@ -12,11 +12,20 @@ struct Rect {
int32 height;
};
-// A copy of Rect that can be typemapped. Arrays of Rect are currently used,
-// which do not support typemapping.
+// A copy of Rect that is typemapped differently in the chromium and blink
+// variants.
struct TypemappedRect {
int32 x;
int32 y;
int32 width;
int32 height;
};
+
+// A copy of Rect that is typemapped to the same custom type in the chromium and
+// blink variants.
+struct SharedTypemappedRect {
+ int32 x;
+ int32 y;
+ int32 width;
+ int32 height;
+};
« no previous file with comments | « mojo/public/cpp/bindings/tests/wtf_types_unittest.cc ('k') | mojo/public/interfaces/bindings/tests/test_native_types.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698