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

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

Issue 1524703002: [mojo] Support native types with mojom wire format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bindings-5-pickles
Patch Set: doc Created 5 years 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/test_native_types.mojom
diff --git a/mojo/public/interfaces/bindings/tests/test_native_types.mojom b/mojo/public/interfaces/bindings/tests/test_native_types.mojom
index 0a3a1974913ad9a33e150f5c3b11bb25358e23a5..10127563365e9bf38bf25d87f66dafaf0706b23d 100644
--- a/mojo/public/interfaces/bindings/tests/test_native_types.mojom
+++ b/mojo/public/interfaces/bindings/tests/test_native_types.mojom
@@ -4,6 +4,8 @@
module mojo.test;
+import "mojo/public/interfaces/bindings/tests/rect.mojom";
+
// Used to verify that structs can be declared with no body in mojom.
[native=True]
@@ -12,3 +14,12 @@ struct PickledStruct;
interface PicklePasser {
PassPickle(PickledStruct pickle) => (PickledStruct passed);
};
+
+// Used to verify support for native serialization of mojom-defined structs.
+// This is tested with a typemap applied to the Rect type from rect.mojom.
+
+interface RectService {
+ AddRect(Rect r);
+ GetLargestRect() => (Rect largest);
+};
+

Powered by Google App Engine
This is Rietveld 408576698