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

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

Issue 138143003: Support default values for POD struct fields in mojom IDL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . 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/tests/bindings/sample_service.mojom
diff --git a/mojo/public/tests/bindings/sample_service.mojom b/mojo/public/tests/bindings/sample_service.mojom
index e2ad62cbae9777c230c6f389e8afe77768570cac..267ee624de4f4ec4b7d10339e79b390703d85e6d 100644
--- a/mojo/public/tests/bindings/sample_service.mojom
+++ b/mojo/public/tests/bindings/sample_service.mojom
@@ -12,7 +12,7 @@ enum BarType {
};
struct Bar {
- uint8 alpha @0;
+ uint8 alpha = (0x100 - 1) @0;
uint8 beta @1;
uint8 gamma @2;
int32 type @3;
@@ -20,10 +20,10 @@ struct Bar {
[RequiredFields=7]
struct Foo {
- string name @8;
+ string name = "Fooby" @8;
int32 x @0;
int32 y @1;
- bool a @2;
+ bool a = true @2;
bool b @3;
bool c @4;
Bar bar @5;

Powered by Google App Engine
This is Rietveld 408576698