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

Side by Side Diff: mojo/public/interfaces/bindings/tests/test_unions.mojom

Issue 1218023006: Implement python mojo bindings unions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojo.test; 5 module mojo.test;
6 6
7 enum AnEnum { 7 enum AnEnum {
8 FIRST, SECOND 8 FIRST, SECOND
9 }; 9 };
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 map<string, PodUnion>? pod_union_map; 62 map<string, PodUnion>? pod_union_map;
63 map<string, PodUnion?>? nullable_pod_union_map; 63 map<string, PodUnion?>? nullable_pod_union_map;
64 }; 64 };
65 65
66 struct SmallStructNonNullableUnion { 66 struct SmallStructNonNullableUnion {
67 PodUnion pod_union; 67 PodUnion pod_union;
68 }; 68 };
69 69
70 struct SmallObjStruct { 70 struct SmallObjStruct {
71 ObjectUnion obj_union; 71 ObjectUnion obj_union;
72 int8 f_int8;
72 }; 73 };
73 74
74 interface SmallCache { 75 interface SmallCache {
75 SetIntValue(int64 int_value); 76 SetIntValue(int64 int_value);
76 GetIntValue() => (int64 int_value); 77 GetIntValue() => (int64 int_value);
77 }; 78 };
78 79
79 interface UnionInterface { 80 interface UnionInterface {
80 Echo(PodUnion in_val) => (PodUnion out_val); 81 Echo(PodUnion in_val) => (PodUnion out_val);
81 }; 82 };
82 83
83 struct TryNonNullStruct { 84 struct TryNonNullStruct {
84 DummyStruct? nullable; 85 DummyStruct? nullable;
85 DummyStruct non_nullable; 86 DummyStruct non_nullable;
86 }; 87 };
OLDNEW
« no previous file with comments | « no previous file | mojo/public/python/mojo_bindings/descriptor.py » ('j') | mojo/public/python/mojo_bindings/reflection.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698