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

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

Issue 317073005: Mojom: Add 'default' keyword for initializing structs to non-null value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/sample_service.mojom
diff --git a/mojo/public/interfaces/bindings/tests/sample_service.mojom b/mojo/public/interfaces/bindings/tests/sample_service.mojom
index 38a40e40db767c1f9aa1784f8bc69dfadb4f80a0..9a4694b6f8b92639b4bf5b5c8d4c68a5399af210 100644
--- a/mojo/public/interfaces/bindings/tests/sample_service.mojom
+++ b/mojo/public/interfaces/bindings/tests/sample_service.mojom
@@ -50,8 +50,8 @@ struct DefaultsTest {
int32 a4@4 = 123456;
// TODO(vtl): crbug.com/375522
uint32 a5@5 /* = 3456789012 */;
- // TODO(vtl): crbug.com/375522
int64 a6@6 = 111111111111;
+ // TODO(vtl): crbug.com/375522
uint64 a7@7 /* = 9999999999999999999 */;
int32 a8@8 = 0x12345;
int32 a9@9 = -0x12345;
@@ -71,7 +71,7 @@ struct DefaultsTest {
Bar.Type a20@20 = Bar.TYPE_BOTH;
imported.Point a21@21;
- imported.Thing a22@22;
+ imported.Thing a22@22 = default;
};
struct StructWithHoleV1 {

Powered by Google App Engine
This is Rietveld 408576698