OLD | NEW |
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 library sample_import2_mojom; | 5 library sample_import2_mojom; |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 import 'dart:typed_data'; |
7 import 'package:mojo/bindings.dart' as bindings; | 8 import 'package:mojo/bindings.dart' as bindings; |
8 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; | 9 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
9 | 10 |
10 import 'package:_mojo_for_test_only/imported/sample_import.mojom.dart' as sample
_import_mojom; | 11 import 'package:_mojo_for_test_only/imported/sample_import.mojom.dart' as sample
_import_mojom; |
11 | 12 |
12 class Color extends bindings.MojoEnum { | 13 class Color extends bindings.MojoEnum { |
13 static const Color red = const Color._(0); | 14 static const Color red = const Color._(0); |
14 static const Color black = const Color._(1); | 15 static const Color black = const Color._(1); |
15 | 16 |
16 const Color._(int v) : super(v); | 17 const Color._(int v) : super(v); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 case black: | 55 case black: |
55 return 'Color.black'; | 56 return 'Color.black'; |
56 default: | 57 default: |
57 return null; | 58 return null; |
58 } | 59 } |
59 } | 60 } |
60 | 61 |
61 int toJson() => mojoEnumValue; | 62 int toJson() => mojoEnumValue; |
62 } | 63 } |
63 | 64 |
64 mojom_types.MojomEnum _sampleImport2Color() { | |
65 return new mojom_types.MojomEnum() | |
66 ..declData = (new mojom_types.DeclarationData() | |
67 ..shortName = 'Color' | |
68 ..fullIdentifier = 'imported.Color') | |
69 ..values = <mojom_types.EnumValue>[ | |
70 new mojom_types.EnumValue() | |
71 ..declData = (new mojom_types.DeclarationData() | |
72 ..shortName = 'Red') | |
73 ..enumTypeKey = 'sample_import2_Color__' | |
74 ..intValue = 0, | |
75 new mojom_types.EnumValue() | |
76 ..declData = (new mojom_types.DeclarationData() | |
77 ..shortName = 'Black') | |
78 ..enumTypeKey = 'sample_import2_Color__' | |
79 ..intValue = 1,]; | |
80 } | |
81 | |
82 | 65 |
83 | 66 |
84 class Size extends bindings.Struct { | 67 class Size extends bindings.Struct { |
85 static const List<bindings.StructDataHeader> kVersions = const [ | 68 static const List<bindings.StructDataHeader> kVersions = const [ |
86 const bindings.StructDataHeader(16, 0) | 69 const bindings.StructDataHeader(16, 0) |
87 ]; | 70 ]; |
88 int width = 0; | 71 int width = 0; |
89 int height = 0; | 72 int height = 0; |
90 | 73 |
91 Size() : super(kVersions.last.size); | 74 Size() : super(kVersions.last.size); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 } | 142 } |
160 | 143 |
161 Map toJson() { | 144 Map toJson() { |
162 Map map = new Map(); | 145 Map map = new Map(); |
163 map["width"] = width; | 146 map["width"] = width; |
164 map["height"] = height; | 147 map["height"] = height; |
165 return map; | 148 return map; |
166 } | 149 } |
167 } | 150 } |
168 | 151 |
169 mojom_types.MojomStruct _sampleImport2Size() { | |
170 return new mojom_types.MojomStruct() | |
171 ..declData = (new mojom_types.DeclarationData() | |
172 ..shortName = 'Size' | |
173 ..fullIdentifier = 'imported.Size') | |
174 ..fields = <mojom_types.StructField>[ | |
175 new mojom_types.StructField() | |
176 ..declData = (new mojom_types.DeclarationData() | |
177 ..shortName = 'Width') | |
178 ..type = (new mojom_types.Type() | |
179 ..simpleType = mojom_types.SimpleType.int32), | |
180 new mojom_types.StructField() | |
181 ..declData = (new mojom_types.DeclarationData() | |
182 ..shortName = 'Height') | |
183 ..type = (new mojom_types.Type() | |
184 ..simpleType = mojom_types.SimpleType.int32),]; | |
185 } | |
186 | |
187 | 152 |
188 class Thing extends bindings.Struct { | 153 class Thing extends bindings.Struct { |
189 static const List<bindings.StructDataHeader> kVersions = const [ | 154 static const List<bindings.StructDataHeader> kVersions = const [ |
190 const bindings.StructDataHeader(32, 0) | 155 const bindings.StructDataHeader(32, 0) |
191 ]; | 156 ]; |
192 sample_import_mojom.Shape shape = new sample_import_mojom.Shape(1); | 157 sample_import_mojom.Shape shape = new sample_import_mojom.Shape(1); |
193 Color color = new Color(1); | 158 Color color = new Color(1); |
194 sample_import_mojom.Point location = null; | 159 sample_import_mojom.Point location = null; |
195 Size size = null; | 160 Size size = null; |
196 | 161 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 Map toJson() { | 266 Map toJson() { |
302 Map map = new Map(); | 267 Map map = new Map(); |
303 map["shape"] = shape; | 268 map["shape"] = shape; |
304 map["color"] = color; | 269 map["color"] = color; |
305 map["location"] = location; | 270 map["location"] = location; |
306 map["size"] = size; | 271 map["size"] = size; |
307 return map; | 272 return map; |
308 } | 273 } |
309 } | 274 } |
310 | 275 |
311 mojom_types.MojomStruct _sampleImport2Thing() { | 276 |
312 return new mojom_types.MojomStruct() | 277 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? |
313 ..declData = (new mojom_types.DeclarationData() | 278 _initRuntimeTypeInfo(); |
314 ..shortName = 'Thing' | 279 |
315 ..fullIdentifier = 'imported.Thing') | 280 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
316 ..fields = <mojom_types.StructField>[ | 281 return getRuntimeTypeInfo().typeMap; |
317 new mojom_types.StructField() | |
318 ..declData = (new mojom_types.DeclarationData() | |
319 ..shortName = 'Shape') | |
320 ..type = (new mojom_types.Type() | |
321 ..typeReference = (new mojom_types.TypeReference() | |
322 ..identifier = 'sample_import_Shape__' | |
323 ..typeKey = 'sample_import_Shape__' | |
324 )), | |
325 new mojom_types.StructField() | |
326 ..declData = (new mojom_types.DeclarationData() | |
327 ..shortName = 'Color') | |
328 ..type = (new mojom_types.Type() | |
329 ..typeReference = (new mojom_types.TypeReference() | |
330 ..identifier = 'sample_import2_Color__' | |
331 ..typeKey = 'sample_import2_Color__' | |
332 )), | |
333 new mojom_types.StructField() | |
334 ..declData = (new mojom_types.DeclarationData() | |
335 ..shortName = 'Location') | |
336 ..type = (new mojom_types.Type() | |
337 ..typeReference = (new mojom_types.TypeReference() | |
338 ..identifier = 'sample_import_Point__' | |
339 ..typeKey = 'sample_import_Point__' | |
340 )), | |
341 new mojom_types.StructField() | |
342 ..declData = (new mojom_types.DeclarationData() | |
343 ..shortName = 'Size') | |
344 ..type = (new mojom_types.Type() | |
345 ..typeReference = (new mojom_types.TypeReference() | |
346 ..identifier = 'sample_import2_Size__' | |
347 ..typeKey = 'sample_import2_Size__' | |
348 )),]; | |
349 } | 282 } |
350 | 283 |
| 284 var _runtimeTypeInfo; |
| 285 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
| 286 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
| 287 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
| 288 // file. |
| 289 var serializedRuntimeTypeInfo = new Uint8List.fromList(const [24,0,0,0,0,0,0,0
,16,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,16,0,0,0,0,
0,0,0,8,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,136,0,0,
0,0,0,0,0,32,0,0,0,3,0,0,0,24,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,30
,0,0,0,22,0,0,0,84,89,80,69,95,75,69,89,58,105,109,112,111,114,116,101,100,46,83
,105,122,101,0,0,31,0,0,0,23,0,0,0,84,89,80,69,95,75,69,89,58,105,109,112,111,11
4,116,101,100,46,84,104,105,110,103,0,31,0,0,0,23,0,0,0,84,89,80,69,95,75,69,89,
58,105,109,112,111,114,116,101,100,46,67,111,108,111,114,0,56,0,0,0,3,0,0,0,16,0
,0,0,1,0,0,0,40,0,0,0,0,0,0,0,16,0,0,0,1,0,0,0,72,3,0,0,0,0,0,0,16,0,0,0,0,0,0,0
,200,10,0,0,0,0,0,0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,
0,56,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,12,0,0,0,4,0,0,0,83,105,122,101,0,0,0,0,21,0,0,0,13,0,0,0,105,109,11
2,111,114,116,101,100,46,83,105,122,101,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,
17,0,0,0,7,0,0,0,91,0,0,0,83,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105
,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,1
08,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103
,115,47,116,101,115,116,115,47,115,97,109,112,108,101,95,105,109,112,111,114,116
,50,46,109,111,106,111,109,0,0,0,0,0,24,0,0,0,2,0,0,0,16,0,0,0,0,0,0,0,16,1,0,0,
0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,5,0,0,0,119,105,100,116,1
04,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,18,0,0,0,8,0,0,0,91,0,0,0,83,0,0,0,47
,104,111,109,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,11
5,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,102,
97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,97
,109,112,108,101,95,105,109,112,111,114,116,50,46,109,111,106,111,109,0,0,0,0,0,
56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,
255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,6,0,0,0,104,101,105,103,104,116,0
,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,19,0,0,0,8,0,0,0,91,0,0,0,83,0,0,0, |
| 290 47,104,111,109,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,
115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,10
2,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,
97,109,112,108,101,95,105,109,112,111,114,116,50,46,109,111,106,111,109,0,0,0,0,
0,32,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,248,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0
,255,255,255,255,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0
,0,5,0,0,0,84,104,105,110,103,0,0,0,22,0,0,0,14,0,0,0,105,109,112,111,114,116,10
1,100,46,84,104,105,110,103,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,22,0,0,0,7,0,0
,0,91,0,0,0,83,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,114,4
7,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47,1
05,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,10
1,115,116,115,47,115,97,109,112,108,101,95,105,109,112,111,114,116,50,46,109,111
,106,111,109,0,0,0,0,0,40,0,0,0,4,0,0,0,32,0,0,0,0,0,0,0,248,1,0,0,0,0,0,0,192,3
,0,0,0,0,0,0,16,5,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,5,0,0,0
,240,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,56,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2
55,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0
,5,0,0,0,115,104,97,112,101,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,23,0,0,0,17,
0,0,0,91,0,0,0,83,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,11
4,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,4
7,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116
,101,115,116,115,47,115,97,109,112,108,101,95,105,109,112,111,114,116,50,46,109,
111,106,111,109,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,32,0
,0,0,0,0,0,0,22,0,0,0,14,0,0,0,105,109,112,111,114,116,101,100,46,83,104,97,112,
101,0,0,31,0,0,0,23,0,0,0,84,89,80,69,95,75,69,89,58,105,109,112,111,114,116,101
,100,46,83,104,97,112,101,0,16,0,0,0,1,0,0,0,8,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,32
,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,0,0,9,0,0,0
,82,69,67,84,65,78,71,76,69,0,0,0,0,0,0,0,41,0,0,0,33,0,0,0,84,89,80,69,95,75,69
,89,58,105,109,112,111,114,116,101,100,46,83,104,97,112,101,46,82,69,67,84,65,78
,71,76,69,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,5,0,0,0,240,0
,0,0,0,0,0,0,16,0,0,0,0,0,0,0,48,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255
,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, |
| 291 13,0,0,0,5,0,0,0,99,111,108,111,114,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,24,0
,0,0,8,0,0,0,91,0,0,0,83,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105,110
,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,1
05,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115
,47,116,101,115,116,115,47,115,97,109,112,108,101,95,105,109,112,111,114,116,50,
46,109,111,106,111,109,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0
,0,24,0,0,0,0,0,0,0,13,0,0,0,5,0,0,0,67,111,108,111,114,0,0,0,31,0,0,0,23,0,0,0,
84,89,80,69,95,75,69,89,58,105,109,112,111,114,116,101,100,46,67,111,108,111,114
,0,16,0,0,0,1,0,0,0,8,0,0,0,0,0,0,0,40,0,0,0,0,0,0,0,32,0,0,0,0,0,0,0,48,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,19,0,0,0,11,0,0,0,67,111,108,111,114,46,6
6,76,65,67,75,0,0,0,0,0,37,0,0,0,29,0,0,0,84,89,80,69,95,75,69,89,58,105,109,112
,111,114,116,101,100,46,67,111,108,111,114,46,66,76,65,67,75,0,0,0,56,0,0,0,0,0,
0,0,48,0,0,0,0,0,0,0,16,0,0,0,5,0,0,0,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255
,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,8,0,0,0,108,111,99,97,116,105,111,110,24,0,0
,0,0,0,0,0,16,0,0,0,0,0,0,0,25,0,0,0,8,0,0,0,91,0,0,0,83,0,0,0,47,104,111,109,10
1,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109
,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,4
7,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,115,97,109,112,108,10
1,95,105,109,112,111,114,116,50,46,109,111,106,111,109,0,0,0,0,0,32,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,24,0,0,0,0,0,0,0,13,0,0,0,5,0,0,0,80,111,105,
110,116,0,0,0,31,0,0,0,23,0,0,0,84,89,80,69,95,75,69,89,58,105,109,112,111,114,1
16,101,100,46,80,111,105,110,116,0,56,0,0,0,0,0,0,0,48,0,0,0,0,0,0,0,16,0,0,0,5,
0,0,0,240,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0,0,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,255,255,255,255,0,0,0,0,40,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,
0,0,4,0,0,0,115,105,122,101,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,26,0,0,0,7
,0,0,0,91,0,0,0,83,0,0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,1
14,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,
47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,11
6,101,115,116,115,47,115,97,109,112,108,101,95,105,109,112,111,114,116,50,46,109
,111,106,111,109,0,0,0,0,0,32,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,24,
0,0,0,0,0,0,0,12,0,0,0,4,0,0,0,83,105,122,101,0,0,0,0,30,0,0,0,22,0,0,0, |
| 292 84,89,80,69,95,75,69,89,58,105,109,112,111,114,116,101,100,46,83,105,122,101,0,0
,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,240,0,0,0,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,56,0,0,0,0,0,0,0,255,255,255,255,
0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,5,0,0,0,67,111
,108,111,114,0,0,0,22,0,0,0,14,0,0,0,105,109,112,111,114,116,101,100,46,67,111,1
08,111,114,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,12,0,0,0,5,0,0,0,91,0,0,0,83,0,
0,0,47,104,111,109,101,47,114,117,100,111,109,105,110,101,114,47,109,111,106,111
,47,115,114,99,47,109,111,106,111,47,112,117,98,108,105,99,47,105,110,116,101,11
4,102,97,99,101,115,47,98,105,110,100,105,110,103,115,47,116,101,115,116,115,47,
115,97,109,112,108,101,95,105,109,112,111,114,116,50,46,109,111,106,111,109,0,0,
0,0,0,24,0,0,0,2,0,0,0,16,0,0,0,0,0,0,0,72,1,0,0,0,0,0,0,48,0,0,0,0,0,0,0,40,0,0
,0,0,0,0,0,16,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,72,0
,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,56,0,0,0,0
,0,0,0,255,255,255,255,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
11,0,0,0,3,0,0,0,82,69,68,0,0,0,0,0,26,0,0,0,18,0,0,0,105,109,112,111,114,116,10
1,100,46,67,111,108,111,114,46,82,69,68,0,0,0,0,0,0,24,0,0,0,0,0,0,0,16,0,0,0,0,
0,0,0,13,0,0,0,2,0,0,0,91,0,0,0,83,0,0,0,47,104,111,109,101,47,114,117,100,111,1
09,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,111,47,112,11
7,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,110,100,105,1
10,103,115,47,116,101,115,116,115,47,115,97,109,112,108,101,95,105,109,112,111,1
14,116,50,46,109,111,106,111,109,0,0,0,0,0,31,0,0,0,23,0,0,0,84,89,80,69,95,75,6
9,89,58,105,109,112,111,114,116,101,100,46,67,111,108,111,114,0,48,0,0,0,0,0,0,0
,40,0,0,0,0,0,0,0,16,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0
,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,48,0,0,0,0,0,0,0,56,
0,0,0,0,0,0,0,255,255,255,255,0,0,0,0,72,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
,0,0,0,13,0,0,0,5,0,0,0,66,76,65,67,75,0,0,0,28,0,0,0,20,0,0,0,105,109,112,111,1
14,116,101,100,46,67,111,108,111,114,46,66,76,65,67,75,0,0,0,0,24,0,0,0,0,0,0,0,
16,0,0,0,0,0,0,0,14,0,0,0,2,0,0,0,91,0,0,0,83,0,0,0,47,104,111,109,101,47,114,11
7,100,111,109,105,110,101,114,47,109,111,106,111,47,115,114,99,47,109,111,106,11
1,47,112,117,98,108,105,99,47,105,110,116,101,114,102,97,99,101,115,47,98,105,11
0,100,105,110,103,115,47,116,101,115,116,115,47,115,97,109,112,108,101,95,105,10
9,112,111,114,116,50,46,109,111,106,111,109,0,0,0,0,0,31,0,0,0,23,0,0,0,84,89,80
,69,95,75,69,89,58,105,109,112,111,114,116,101,100,46,67,111,108,111,114,0]); |
351 | 293 |
352 | 294 // Deserialize RuntimeTypeInfo |
353 Map<String, mojom_types.UserDefinedType> _initDescriptions() { | 295 var bdata = new ByteData.view(serializedRuntimeTypeInfo.buffer); |
354 var map = new HashMap<String, mojom_types.UserDefinedType>(); | 296 var message = new bindings.Message(bdata, null, serializedRuntimeTypeInfo.leng
th, 0); |
355 map["sample_import2_Color__"] = | 297 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
356 new mojom_types.UserDefinedType() | 298 return _runtimeTypeInfo; |
357 ..enumType = _sampleImport2Color(); | |
358 map["sample_import2_Size__"] = | |
359 new mojom_types.UserDefinedType() | |
360 ..structType = _sampleImport2Size(); | |
361 map["sample_import2_Thing__"] = | |
362 new mojom_types.UserDefinedType() | |
363 ..structType = _sampleImport2Thing(); | |
364 sample_import_mojom.getAllMojomTypeDefinitions() | |
365 .forEach((String s, mojom_types.UserDefinedType udt) { | |
366 map[s] = udt; | |
367 }); | |
368 | |
369 return map; | |
370 } | 299 } |
371 | |
372 var _mojomDesc; | |
373 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | |
374 if (_mojomDesc == null) { | |
375 _mojomDesc = _initDescriptions(); | |
376 } | |
377 return _mojomDesc; | |
378 } | |
379 | |
OLD | NEW |