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

Unified Diff: mojo/public/bindings/tests/sample_service.mojom

Issue 139613005: Support default values for complex objects in mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 11 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/bindings/tests/sample_service.mojom
diff --git a/mojo/public/bindings/tests/sample_service.mojom b/mojo/public/bindings/tests/sample_service.mojom
index b7d328afe9d6a4e03a0b44adbf27ce87c19d031e..5232cecf39daae819f006c4db7f00f7921a5cb86 100644
--- a/mojo/public/bindings/tests/sample_service.mojom
+++ b/mojo/public/bindings/tests/sample_service.mojom
@@ -34,6 +34,17 @@ struct Foo {
handle<data_pipe_producer>[] output_streams @11;
};
+struct DefaultsTestInner {
+ int32 age @2;
+ string[] names = ["Jim"] @1;
+ int32 height = 6*12 @3;
+};
+
+struct DefaultsTest {
+ DefaultsTestInner[] people = [{32, ["Bob", "Bobby"]}] @1;
+ uint8[] data = [1, 2, 3] @2;
+};
+
[Peer=ServiceClient]
interface Service {
enum BazOptions {
« no previous file with comments | « mojo/public/bindings/pylib/parse/mojo_parser.py ('k') | mojo/public/bindings/tests/sample_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698