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

Side by Side Diff: mojo/dart/packages/_mojo_for_test_only/lib/regression_tests/regression_tests.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 10 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 library regression_tests_mojom; 5 library regression_tests_mojom;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection';
8 9
9 import 'package:mojo/bindings.dart' as bindings; 10 import 'package:mojo/bindings.dart' as bindings;
10 import 'package:mojo/core.dart' as core; 11 import 'package:mojo/core.dart' as core;
12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
11 14
12 class EnumWithReference extends bindings.MojoEnum { 15 class EnumWithReference extends bindings.MojoEnum {
13 static const EnumWithReference kStereoAndKeyboardMic = const EnumWithReference ._(30); 16 static const EnumWithReference kStereoAndKeyboardMic = const EnumWithReference ._(30);
14 static const EnumWithReference kMax = const EnumWithReference._(30); 17 static const EnumWithReference kMax = const EnumWithReference._(30);
15 18
16 const EnumWithReference._(int v) : super(v); 19 const EnumWithReference._(int v) : super(v);
17 20
18 static const Map<String, EnumWithReference> valuesMap = const { 21 static const Map<String, EnumWithReference> valuesMap = const {
19 "kStereoAndKeyboardMic": kStereoAndKeyboardMic, 22 "kStereoAndKeyboardMic": kStereoAndKeyboardMic,
20 "kMax": kMax, 23 "kMax": kMax,
(...skipping 25 matching lines...) Expand all
46 } 49 }
47 return result; 50 return result;
48 } 51 }
49 52
50 String toString() { 53 String toString() {
51 switch(this) { 54 switch(this) {
52 case kStereoAndKeyboardMic: 55 case kStereoAndKeyboardMic:
53 return 'EnumWithReference.kStereoAndKeyboardMic'; 56 return 'EnumWithReference.kStereoAndKeyboardMic';
54 case kMax: 57 case kMax:
55 return 'EnumWithReference.kMax'; 58 return 'EnumWithReference.kMax';
59 default:
60 return null;
56 } 61 }
57 } 62 }
58 63
59 int toJson() => mojoEnumValue; 64 int toJson() => mojoEnumValue;
60 } 65 }
61 66
67 mojom_types.MojomEnum _regressionTestsEnumWithReference() {
68 return new mojom_types.MojomEnum()
69 ..declData = (new mojom_types.DeclarationData()
70 ..shortName = 'EnumWithReference'
71 ..fullIdentifier = 'regression_tests.EnumWithReference')
72 ..values = <mojom_types.EnumValue>[
73 new mojom_types.EnumValue()
74 ..declData = (new mojom_types.DeclarationData()
75 ..shortName = 'KStereoAndKeyboardMic')
76 ..enumTypeKey = 'regression_tests_EnumWithReference__'
77 ..intValue = 30,
78 new mojom_types.EnumValue()
79 ..declData = (new mojom_types.DeclarationData()
80 ..shortName = 'KMax')
81 ..enumTypeKey = 'regression_tests_EnumWithReference__'
82 ..intValue = 30,];
83 }
84
62 class EnumWithLowercase extends bindings.MojoEnum { 85 class EnumWithLowercase extends bindings.MojoEnum {
63 static const EnumWithLowercase planarF16 = const EnumWithLowercase._(0); 86 static const EnumWithLowercase planarF16 = const EnumWithLowercase._(0);
64 static const EnumWithLowercase planarF32 = const EnumWithLowercase._(1); 87 static const EnumWithLowercase planarF32 = const EnumWithLowercase._(1);
65 88
66 const EnumWithLowercase._(int v) : super(v); 89 const EnumWithLowercase._(int v) : super(v);
67 90
68 static const Map<String, EnumWithLowercase> valuesMap = const { 91 static const Map<String, EnumWithLowercase> valuesMap = const {
69 "planarF16": planarF16, 92 "planarF16": planarF16,
70 "planarF32": planarF32, 93 "planarF32": planarF32,
71 }; 94 };
(...skipping 24 matching lines...) Expand all
96 } 119 }
97 return result; 120 return result;
98 } 121 }
99 122
100 String toString() { 123 String toString() {
101 switch(this) { 124 switch(this) {
102 case planarF16: 125 case planarF16:
103 return 'EnumWithLowercase.planarF16'; 126 return 'EnumWithLowercase.planarF16';
104 case planarF32: 127 case planarF32:
105 return 'EnumWithLowercase.planarF32'; 128 return 'EnumWithLowercase.planarF32';
129 default:
130 return null;
106 } 131 }
107 } 132 }
108 133
109 int toJson() => mojoEnumValue; 134 int toJson() => mojoEnumValue;
110 } 135 }
111 136
137 mojom_types.MojomEnum _regressionTestsEnumWithLowercase() {
138 return new mojom_types.MojomEnum()
139 ..declData = (new mojom_types.DeclarationData()
140 ..shortName = 'EnumWithLowercase'
141 ..fullIdentifier = 'regression_tests.EnumWithLowercase')
142 ..values = <mojom_types.EnumValue>[
143 new mojom_types.EnumValue()
144 ..declData = (new mojom_types.DeclarationData()
145 ..shortName = 'PlanarF16')
146 ..enumTypeKey = 'regression_tests_EnumWithLowercase__'
147 ..intValue = 0,
148 new mojom_types.EnumValue()
149 ..declData = (new mojom_types.DeclarationData()
150 ..shortName = 'PlanarF32')
151 ..enumTypeKey = 'regression_tests_EnumWithLowercase__'
152 ..intValue = 1,];
153 }
154
112 class EnumWithNumbers extends bindings.MojoEnum { 155 class EnumWithNumbers extends bindings.MojoEnum {
113 static const EnumWithNumbers k21 = const EnumWithNumbers._(4); 156 static const EnumWithNumbers k21 = const EnumWithNumbers._(4);
114 157
115 const EnumWithNumbers._(int v) : super(v); 158 const EnumWithNumbers._(int v) : super(v);
116 159
117 static const Map<String, EnumWithNumbers> valuesMap = const { 160 static const Map<String, EnumWithNumbers> valuesMap = const {
118 "k21": k21, 161 "k21": k21,
119 }; 162 };
120 static const List<EnumWithNumbers> values = const [ 163 static const List<EnumWithNumbers> values = const [
121 k21, 164 k21,
(...skipping 17 matching lines...) Expand all
139 throw new bindings.MojoCodecError( 182 throw new bindings.MojoCodecError(
140 'Bad value $v for enum EnumWithNumbers.'); 183 'Bad value $v for enum EnumWithNumbers.');
141 } 184 }
142 return result; 185 return result;
143 } 186 }
144 187
145 String toString() { 188 String toString() {
146 switch(this) { 189 switch(this) {
147 case k21: 190 case k21:
148 return 'EnumWithNumbers.k21'; 191 return 'EnumWithNumbers.k21';
192 default:
193 return null;
149 } 194 }
150 } 195 }
151 196
152 int toJson() => mojoEnumValue; 197 int toJson() => mojoEnumValue;
153 } 198 }
154 199
200 mojom_types.MojomEnum _regressionTestsEnumWithNumbers() {
201 return new mojom_types.MojomEnum()
202 ..declData = (new mojom_types.DeclarationData()
203 ..shortName = 'EnumWithNumbers'
204 ..fullIdentifier = 'regression_tests.EnumWithNumbers')
205 ..values = <mojom_types.EnumValue>[
206 new mojom_types.EnumValue()
207 ..declData = (new mojom_types.DeclarationData()
208 ..shortName = 'K21')
209 ..enumTypeKey = 'regression_tests_EnumWithNumbers__'
210 ..intValue = 4,];
211 }
212
155 class EnumWithK extends bindings.MojoEnum { 213 class EnumWithK extends bindings.MojoEnum {
156 static const EnumWithK k = const EnumWithK._(0); 214 static const EnumWithK k = const EnumWithK._(0);
157 215
158 const EnumWithK._(int v) : super(v); 216 const EnumWithK._(int v) : super(v);
159 217
160 static const Map<String, EnumWithK> valuesMap = const { 218 static const Map<String, EnumWithK> valuesMap = const {
161 "k": k, 219 "k": k,
162 }; 220 };
163 static const List<EnumWithK> values = const [ 221 static const List<EnumWithK> values = const [
164 k, 222 k,
(...skipping 17 matching lines...) Expand all
182 throw new bindings.MojoCodecError( 240 throw new bindings.MojoCodecError(
183 'Bad value $v for enum EnumWithK.'); 241 'Bad value $v for enum EnumWithK.');
184 } 242 }
185 return result; 243 return result;
186 } 244 }
187 245
188 String toString() { 246 String toString() {
189 switch(this) { 247 switch(this) {
190 case k: 248 case k:
191 return 'EnumWithK.k'; 249 return 'EnumWithK.k';
250 default:
251 return null;
192 } 252 }
193 } 253 }
194 254
195 int toJson() => mojoEnumValue; 255 int toJson() => mojoEnumValue;
196 } 256 }
197 257
258 mojom_types.MojomEnum _regressionTestsEnumWithK() {
259 return new mojom_types.MojomEnum()
260 ..declData = (new mojom_types.DeclarationData()
261 ..shortName = 'EnumWithK'
262 ..fullIdentifier = 'regression_tests.EnumWithK')
263 ..values = <mojom_types.EnumValue>[
264 new mojom_types.EnumValue()
265 ..declData = (new mojom_types.DeclarationData()
266 ..shortName = 'K')
267 ..enumTypeKey = 'regression_tests_EnumWithK__'
268 ..intValue = 0,];
269 }
270
198 class EnumWithInternalAllCaps extends bindings.MojoEnum { 271 class EnumWithInternalAllCaps extends bindings.MojoEnum {
199 static const EnumWithInternalAllCaps standard = const EnumWithInternalAllCaps. _(0); 272 static const EnumWithInternalAllCaps standard = const EnumWithInternalAllCaps. _(0);
200 static const EnumWithInternalAllCaps fullscreen = const EnumWithInternalAllCap s._(1); 273 static const EnumWithInternalAllCaps fullscreen = const EnumWithInternalAllCap s._(1);
201 static const EnumWithInternalAllCaps immersive = const EnumWithInternalAllCaps ._(2); 274 static const EnumWithInternalAllCaps immersive = const EnumWithInternalAllCaps ._(2);
202 275
203 const EnumWithInternalAllCaps._(int v) : super(v); 276 const EnumWithInternalAllCaps._(int v) : super(v);
204 277
205 static const Map<String, EnumWithInternalAllCaps> valuesMap = const { 278 static const Map<String, EnumWithInternalAllCaps> valuesMap = const {
206 "standard": standard, 279 "standard": standard,
207 "fullscreen": fullscreen, 280 "fullscreen": fullscreen,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 } 312 }
240 313
241 String toString() { 314 String toString() {
242 switch(this) { 315 switch(this) {
243 case standard: 316 case standard:
244 return 'EnumWithInternalAllCaps.standard'; 317 return 'EnumWithInternalAllCaps.standard';
245 case fullscreen: 318 case fullscreen:
246 return 'EnumWithInternalAllCaps.fullscreen'; 319 return 'EnumWithInternalAllCaps.fullscreen';
247 case immersive: 320 case immersive:
248 return 'EnumWithInternalAllCaps.immersive'; 321 return 'EnumWithInternalAllCaps.immersive';
322 default:
323 return null;
249 } 324 }
250 } 325 }
251 326
252 int toJson() => mojoEnumValue; 327 int toJson() => mojoEnumValue;
253 } 328 }
254 329
330 mojom_types.MojomEnum _regressionTestsEnumWithInternalAllCaps() {
331 return new mojom_types.MojomEnum()
332 ..declData = (new mojom_types.DeclarationData()
333 ..shortName = 'EnumWithInternalAllCaps'
334 ..fullIdentifier = 'regression_tests.EnumWithINTERNALAllCaps')
335 ..values = <mojom_types.EnumValue>[
336 new mojom_types.EnumValue()
337 ..declData = (new mojom_types.DeclarationData()
338 ..shortName = 'Standard')
339 ..enumTypeKey = 'regression_tests_EnumWithINTERNALAllCaps__'
340 ..intValue = 0,
341 new mojom_types.EnumValue()
342 ..declData = (new mojom_types.DeclarationData()
343 ..shortName = 'Fullscreen')
344 ..enumTypeKey = 'regression_tests_EnumWithINTERNALAllCaps__'
345 ..intValue = 1,
346 new mojom_types.EnumValue()
347 ..declData = (new mojom_types.DeclarationData()
348 ..shortName = 'Immersive')
349 ..enumTypeKey = 'regression_tests_EnumWithINTERNALAllCaps__'
350 ..intValue = 2,];
351 }
352
255 class NormalEnum extends bindings.MojoEnum { 353 class NormalEnum extends bindings.MojoEnum {
256 static const NormalEnum first = const NormalEnum._(0); 354 static const NormalEnum first = const NormalEnum._(0);
257 static const NormalEnum second = const NormalEnum._(1); 355 static const NormalEnum second = const NormalEnum._(1);
258 356
259 const NormalEnum._(int v) : super(v); 357 const NormalEnum._(int v) : super(v);
260 358
261 static const Map<String, NormalEnum> valuesMap = const { 359 static const Map<String, NormalEnum> valuesMap = const {
262 "first": first, 360 "first": first,
263 "second": second, 361 "second": second,
264 }; 362 };
(...skipping 24 matching lines...) Expand all
289 } 387 }
290 return result; 388 return result;
291 } 389 }
292 390
293 String toString() { 391 String toString() {
294 switch(this) { 392 switch(this) {
295 case first: 393 case first:
296 return 'NormalEnum.first'; 394 return 'NormalEnum.first';
297 case second: 395 case second:
298 return 'NormalEnum.second'; 396 return 'NormalEnum.second';
397 default:
398 return null;
299 } 399 }
300 } 400 }
301 401
302 int toJson() => mojoEnumValue; 402 int toJson() => mojoEnumValue;
303 } 403 }
304 404
405 mojom_types.MojomEnum _regressionTestsNormalEnum() {
406 return new mojom_types.MojomEnum()
407 ..declData = (new mojom_types.DeclarationData()
408 ..shortName = 'NormalEnum'
409 ..fullIdentifier = 'regression_tests.NormalEnum')
410 ..values = <mojom_types.EnumValue>[
411 new mojom_types.EnumValue()
412 ..declData = (new mojom_types.DeclarationData()
413 ..shortName = 'First')
414 ..enumTypeKey = 'regression_tests_NormalEnum__'
415 ..intValue = 0,
416 new mojom_types.EnumValue()
417 ..declData = (new mojom_types.DeclarationData()
418 ..shortName = 'Second')
419 ..enumTypeKey = 'regression_tests_NormalEnum__'
420 ..intValue = 1,];
421 }
422
305 class CamelCaseTestEnum extends bindings.MojoEnum { 423 class CamelCaseTestEnum extends bindings.MojoEnum {
306 static const CamelCaseTestEnum boolThing = const CamelCaseTestEnum._(0); 424 static const CamelCaseTestEnum boolThing = const CamelCaseTestEnum._(0);
307 static const CamelCaseTestEnum doubleThing = const CamelCaseTestEnum._(1); 425 static const CamelCaseTestEnum doubleThing = const CamelCaseTestEnum._(1);
308 static const CamelCaseTestEnum floatThing = const CamelCaseTestEnum._(2); 426 static const CamelCaseTestEnum floatThing = const CamelCaseTestEnum._(2);
309 static const CamelCaseTestEnum int8Thing = const CamelCaseTestEnum._(3); 427 static const CamelCaseTestEnum int8Thing = const CamelCaseTestEnum._(3);
310 static const CamelCaseTestEnum int16Thing = const CamelCaseTestEnum._(4); 428 static const CamelCaseTestEnum int16Thing = const CamelCaseTestEnum._(4);
311 static const CamelCaseTestEnum int32Th1Ng = const CamelCaseTestEnum._(5); 429 static const CamelCaseTestEnum int32Th1Ng = const CamelCaseTestEnum._(5);
312 static const CamelCaseTestEnum int64Th1ng = const CamelCaseTestEnum._(6); 430 static const CamelCaseTestEnum int64Th1ng = const CamelCaseTestEnum._(6);
313 static const CamelCaseTestEnum uint8TH1ng = const CamelCaseTestEnum._(7); 431 static const CamelCaseTestEnum uint8TH1ng = const CamelCaseTestEnum._(7);
314 static const CamelCaseTestEnum uint16tH1Ng = const CamelCaseTestEnum._(8); 432 static const CamelCaseTestEnum uint16tH1Ng = const CamelCaseTestEnum._(8);
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
402 case int64Th1ng: 520 case int64Th1ng:
403 return 'CamelCaseTestEnum.int64Th1ng'; 521 return 'CamelCaseTestEnum.int64Th1ng';
404 case uint8TH1ng: 522 case uint8TH1ng:
405 return 'CamelCaseTestEnum.uint8TH1ng'; 523 return 'CamelCaseTestEnum.uint8TH1ng';
406 case uint16tH1Ng: 524 case uint16tH1Ng:
407 return 'CamelCaseTestEnum.uint16tH1Ng'; 525 return 'CamelCaseTestEnum.uint16tH1Ng';
408 case uint32Th1ng: 526 case uint32Th1ng:
409 return 'CamelCaseTestEnum.uint32Th1ng'; 527 return 'CamelCaseTestEnum.uint32Th1ng';
410 case uint64Th1Ng: 528 case uint64Th1Ng:
411 return 'CamelCaseTestEnum.uint64Th1Ng'; 529 return 'CamelCaseTestEnum.uint64Th1Ng';
530 default:
531 return null;
412 } 532 }
413 } 533 }
414 534
415 int toJson() => mojoEnumValue; 535 int toJson() => mojoEnumValue;
416 } 536 }
417 537
538 mojom_types.MojomEnum _regressionTestsCamelCaseTestEnum() {
539 return new mojom_types.MojomEnum()
540 ..declData = (new mojom_types.DeclarationData()
541 ..shortName = 'CamelCaseTestEnum'
542 ..fullIdentifier = 'regression_tests.CamelCaseTestEnum')
543 ..values = <mojom_types.EnumValue>[
544 new mojom_types.EnumValue()
545 ..declData = (new mojom_types.DeclarationData()
546 ..shortName = 'BoolThing')
547 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
548 ..intValue = 0,
549 new mojom_types.EnumValue()
550 ..declData = (new mojom_types.DeclarationData()
551 ..shortName = 'DoubleThing')
552 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
553 ..intValue = 1,
554 new mojom_types.EnumValue()
555 ..declData = (new mojom_types.DeclarationData()
556 ..shortName = 'FloatThing')
557 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
558 ..intValue = 2,
559 new mojom_types.EnumValue()
560 ..declData = (new mojom_types.DeclarationData()
561 ..shortName = 'Int8Thing')
562 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
563 ..intValue = 3,
564 new mojom_types.EnumValue()
565 ..declData = (new mojom_types.DeclarationData()
566 ..shortName = 'Int16Thing')
567 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
568 ..intValue = 4,
569 new mojom_types.EnumValue()
570 ..declData = (new mojom_types.DeclarationData()
571 ..shortName = 'Int32Th1Ng')
572 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
573 ..intValue = 5,
574 new mojom_types.EnumValue()
575 ..declData = (new mojom_types.DeclarationData()
576 ..shortName = 'Int64Th1ng')
577 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
578 ..intValue = 6,
579 new mojom_types.EnumValue()
580 ..declData = (new mojom_types.DeclarationData()
581 ..shortName = 'Uint8TH1ng')
582 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
583 ..intValue = 7,
584 new mojom_types.EnumValue()
585 ..declData = (new mojom_types.DeclarationData()
586 ..shortName = 'Uint16tH1Ng')
587 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
588 ..intValue = 8,
589 new mojom_types.EnumValue()
590 ..declData = (new mojom_types.DeclarationData()
591 ..shortName = 'Uint32Th1ng')
592 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
593 ..intValue = 9,
594 new mojom_types.EnumValue()
595 ..declData = (new mojom_types.DeclarationData()
596 ..shortName = 'Uint64Th1Ng')
597 ..enumTypeKey = 'regression_tests_CamelCaseTestEnum__'
598 ..intValue = 10,];
599 }
600
418 601
419 602
420 class Edge extends bindings.Struct { 603 class Edge extends bindings.Struct {
421 static const List<bindings.StructDataHeader> kVersions = const [ 604 static const List<bindings.StructDataHeader> kVersions = const [
422 const bindings.StructDataHeader(16, 0) 605 const bindings.StructDataHeader(16, 0)
423 ]; 606 ];
424 Vertex v = null; 607 Vertex v = null;
425 608
426 Edge() : super(kVersions.last.size); 609 Edge() : super(kVersions.last.size);
427 610
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 "v: $v" ")"; 660 "v: $v" ")";
478 } 661 }
479 662
480 Map toJson() { 663 Map toJson() {
481 Map map = new Map(); 664 Map map = new Map();
482 map["v"] = v; 665 map["v"] = v;
483 return map; 666 return map;
484 } 667 }
485 } 668 }
486 669
670 mojom_types.MojomStruct _regressionTestsEdge() {
671 return new mojom_types.MojomStruct()
672 ..declData = (new mojom_types.DeclarationData()
673 ..shortName = 'Edge'
674 ..fullIdentifier = 'regression_tests.Edge')
675 ..fields = <mojom_types.StructField>[
676 new mojom_types.StructField()
677 ..declData = (new mojom_types.DeclarationData()
678 ..shortName = 'V')
679 ..type = (new mojom_types.Type()
680 ..typeReference = (new mojom_types.TypeReference()
681 ..nullable = true
682
683 ..identifier = 'regression_tests_Vertex__'
684 ..typeKey = 'regression_tests_Vertex__'
685 )),];
686 }
687
487 688
488 class Vertex extends bindings.Struct { 689 class Vertex extends bindings.Struct {
489 static const List<bindings.StructDataHeader> kVersions = const [ 690 static const List<bindings.StructDataHeader> kVersions = const [
490 const bindings.StructDataHeader(16, 0) 691 const bindings.StructDataHeader(16, 0)
491 ]; 692 ];
492 EmptyStruct e = null; 693 EmptyStruct e = null;
493 694
494 Vertex() : super(kVersions.last.size); 695 Vertex() : super(kVersions.last.size);
495 696
496 static Vertex deserialize(bindings.Message message) { 697 static Vertex deserialize(bindings.Message message) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 "e: $e" ")"; 746 "e: $e" ")";
546 } 747 }
547 748
548 Map toJson() { 749 Map toJson() {
549 Map map = new Map(); 750 Map map = new Map();
550 map["e"] = e; 751 map["e"] = e;
551 return map; 752 return map;
552 } 753 }
553 } 754 }
554 755
756 mojom_types.MojomStruct _regressionTestsVertex() {
757 return new mojom_types.MojomStruct()
758 ..declData = (new mojom_types.DeclarationData()
759 ..shortName = 'Vertex'
760 ..fullIdentifier = 'regression_tests.Vertex')
761 ..fields = <mojom_types.StructField>[
762 new mojom_types.StructField()
763 ..declData = (new mojom_types.DeclarationData()
764 ..shortName = 'E')
765 ..type = (new mojom_types.Type()
766 ..typeReference = (new mojom_types.TypeReference()
767 ..nullable = true
768
769 ..identifier = 'regression_tests_EmptyStruct__'
770 ..typeKey = 'regression_tests_EmptyStruct__'
771 )),];
772 }
773
555 774
556 class EmptyStruct extends bindings.Struct { 775 class EmptyStruct extends bindings.Struct {
557 static const List<bindings.StructDataHeader> kVersions = const [ 776 static const List<bindings.StructDataHeader> kVersions = const [
558 const bindings.StructDataHeader(8, 0) 777 const bindings.StructDataHeader(8, 0)
559 ]; 778 ];
560 779
561 EmptyStruct() : super(kVersions.last.size); 780 EmptyStruct() : super(kVersions.last.size);
562 781
563 static EmptyStruct deserialize(bindings.Message message) { 782 static EmptyStruct deserialize(bindings.Message message) {
564 var decoder = new bindings.Decoder(message); 783 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 String toString() { 822 String toString() {
604 return "EmptyStruct("")"; 823 return "EmptyStruct("")";
605 } 824 }
606 825
607 Map toJson() { 826 Map toJson() {
608 Map map = new Map(); 827 Map map = new Map();
609 return map; 828 return map;
610 } 829 }
611 } 830 }
612 831
832 mojom_types.MojomStruct _regressionTestsEmptyStruct() {
833 return new mojom_types.MojomStruct()
834 ..declData = (new mojom_types.DeclarationData()
835 ..shortName = 'EmptyStruct'
836 ..fullIdentifier = 'regression_tests.EmptyStruct')
837 ..fields = <mojom_types.StructField>[];
838 }
839
613 840
614 class A extends bindings.Struct { 841 class A extends bindings.Struct {
615 static const List<bindings.StructDataHeader> kVersions = const [ 842 static const List<bindings.StructDataHeader> kVersions = const [
616 const bindings.StructDataHeader(16, 0) 843 const bindings.StructDataHeader(16, 0)
617 ]; 844 ];
618 B b = null; 845 B b = null;
619 846
620 A() : super(kVersions.last.size); 847 A() : super(kVersions.last.size);
621 848
622 static A deserialize(bindings.Message message) { 849 static A deserialize(bindings.Message message) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
671 "b: $b" ")"; 898 "b: $b" ")";
672 } 899 }
673 900
674 Map toJson() { 901 Map toJson() {
675 Map map = new Map(); 902 Map map = new Map();
676 map["b"] = b; 903 map["b"] = b;
677 return map; 904 return map;
678 } 905 }
679 } 906 }
680 907
908 mojom_types.MojomStruct _regressionTestsA() {
909 return new mojom_types.MojomStruct()
910 ..declData = (new mojom_types.DeclarationData()
911 ..shortName = 'A'
912 ..fullIdentifier = 'regression_tests.A')
913 ..fields = <mojom_types.StructField>[
914 new mojom_types.StructField()
915 ..declData = (new mojom_types.DeclarationData()
916 ..shortName = 'B')
917 ..type = (new mojom_types.Type()
918 ..typeReference = (new mojom_types.TypeReference()
919 ..nullable = true
920
921 ..identifier = 'regression_tests_B__'
922 ..typeKey = 'regression_tests_B__'
923 )),];
924 }
925
681 926
682 class B extends bindings.Struct { 927 class B extends bindings.Struct {
683 static const List<bindings.StructDataHeader> kVersions = const [ 928 static const List<bindings.StructDataHeader> kVersions = const [
684 const bindings.StructDataHeader(16, 0) 929 const bindings.StructDataHeader(16, 0)
685 ]; 930 ];
686 A a = null; 931 A a = null;
687 932
688 B() : super(kVersions.last.size); 933 B() : super(kVersions.last.size);
689 934
690 static B deserialize(bindings.Message message) { 935 static B deserialize(bindings.Message message) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 "a: $a" ")"; 984 "a: $a" ")";
740 } 985 }
741 986
742 Map toJson() { 987 Map toJson() {
743 Map map = new Map(); 988 Map map = new Map();
744 map["a"] = a; 989 map["a"] = a;
745 return map; 990 return map;
746 } 991 }
747 } 992 }
748 993
994 mojom_types.MojomStruct _regressionTestsB() {
995 return new mojom_types.MojomStruct()
996 ..declData = (new mojom_types.DeclarationData()
997 ..shortName = 'B'
998 ..fullIdentifier = 'regression_tests.B')
999 ..fields = <mojom_types.StructField>[
1000 new mojom_types.StructField()
1001 ..declData = (new mojom_types.DeclarationData()
1002 ..shortName = 'A')
1003 ..type = (new mojom_types.Type()
1004 ..typeReference = (new mojom_types.TypeReference()
1005 ..nullable = true
1006
1007 ..identifier = 'regression_tests_A__'
1008 ..typeKey = 'regression_tests_A__'
1009 )),];
1010 }
1011
749 1012
750 class StructWithHandleCalledHandles extends bindings.Struct { 1013 class StructWithHandleCalledHandles extends bindings.Struct {
751 static const List<bindings.StructDataHeader> kVersions = const [ 1014 static const List<bindings.StructDataHeader> kVersions = const [
752 const bindings.StructDataHeader(16, 0) 1015 const bindings.StructDataHeader(16, 0)
753 ]; 1016 ];
754 core.MojoHandle handles = null; 1017 core.MojoHandle handles = null;
755 1018
756 StructWithHandleCalledHandles() : super(kVersions.last.size); 1019 StructWithHandleCalledHandles() : super(kVersions.last.size);
757 1020
758 static StructWithHandleCalledHandles deserialize(bindings.Message message) { 1021 static StructWithHandleCalledHandles deserialize(bindings.Message message) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 return "StructWithHandleCalledHandles(" 1068 return "StructWithHandleCalledHandles("
806 "handles: $handles" ")"; 1069 "handles: $handles" ")";
807 } 1070 }
808 1071
809 Map toJson() { 1072 Map toJson() {
810 throw new bindings.MojoCodecError( 1073 throw new bindings.MojoCodecError(
811 'Object containing handles cannot be encoded to JSON.'); 1074 'Object containing handles cannot be encoded to JSON.');
812 } 1075 }
813 } 1076 }
814 1077
1078 mojom_types.MojomStruct _regressionTestsStructWithHandleCalledHandles() {
1079 return new mojom_types.MojomStruct()
1080 ..declData = (new mojom_types.DeclarationData()
1081 ..shortName = 'StructWithHandleCalledHandles'
1082 ..fullIdentifier = 'regression_tests.StructWithHandleCalledHandles')
1083 ..fields = <mojom_types.StructField>[
1084 new mojom_types.StructField()
1085 ..declData = (new mojom_types.DeclarationData()
1086 ..shortName = 'Handles')
1087 ..type = (new mojom_types.Type()
1088 ..handleType = (new mojom_types.HandleType()
1089 ..kind = mojom_types.HandleTypeKind.unspecified)),];
1090 }
1091
815 1092
816 class StructWithArrayOfHandlesCalledHandles extends bindings.Struct { 1093 class StructWithArrayOfHandlesCalledHandles extends bindings.Struct {
817 static const List<bindings.StructDataHeader> kVersions = const [ 1094 static const List<bindings.StructDataHeader> kVersions = const [
818 const bindings.StructDataHeader(16, 0) 1095 const bindings.StructDataHeader(16, 0)
819 ]; 1096 ];
820 List<core.MojoHandle> handles = null; 1097 List<core.MojoHandle> handles = null;
821 1098
822 StructWithArrayOfHandlesCalledHandles() : super(kVersions.last.size); 1099 StructWithArrayOfHandlesCalledHandles() : super(kVersions.last.size);
823 1100
824 static StructWithArrayOfHandlesCalledHandles deserialize(bindings.Message mess age) { 1101 static StructWithArrayOfHandlesCalledHandles deserialize(bindings.Message mess age) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
871 return "StructWithArrayOfHandlesCalledHandles(" 1148 return "StructWithArrayOfHandlesCalledHandles("
872 "handles: $handles" ")"; 1149 "handles: $handles" ")";
873 } 1150 }
874 1151
875 Map toJson() { 1152 Map toJson() {
876 throw new bindings.MojoCodecError( 1153 throw new bindings.MojoCodecError(
877 'Object containing handles cannot be encoded to JSON.'); 1154 'Object containing handles cannot be encoded to JSON.');
878 } 1155 }
879 } 1156 }
880 1157
1158 mojom_types.MojomStruct _regressionTestsStructWithArrayOfHandlesCalledHandles() {
1159 return new mojom_types.MojomStruct()
1160 ..declData = (new mojom_types.DeclarationData()
1161 ..shortName = 'StructWithArrayOfHandlesCalledHandles'
1162 ..fullIdentifier = 'regression_tests.StructWithArrayOfHandlesCalledHandles ')
1163 ..fields = <mojom_types.StructField>[
1164 new mojom_types.StructField()
1165 ..declData = (new mojom_types.DeclarationData()
1166 ..shortName = 'Handles')
1167 ..type = (new mojom_types.Type()
1168 ..arrayType = (new mojom_types.ArrayType()
1169 ..elementType = (new mojom_types.Type()
1170 ..handleType = (new mojom_types.HandleType()
1171 ..kind = mojom_types.HandleTypeKind.unspecified)))),];
1172 }
1173
881 1174
882 class StructWithInterfaceCalledHandles extends bindings.Struct { 1175 class StructWithInterfaceCalledHandles extends bindings.Struct {
883 static const List<bindings.StructDataHeader> kVersions = const [ 1176 static const List<bindings.StructDataHeader> kVersions = const [
884 const bindings.StructDataHeader(16, 0) 1177 const bindings.StructDataHeader(16, 0)
885 ]; 1178 ];
886 Object handles = null; 1179 Object handles = null;
887 1180
888 StructWithInterfaceCalledHandles() : super(kVersions.last.size); 1181 StructWithInterfaceCalledHandles() : super(kVersions.last.size);
889 1182
890 static StructWithInterfaceCalledHandles deserialize(bindings.Message message) { 1183 static StructWithInterfaceCalledHandles deserialize(bindings.Message message) {
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 return "StructWithInterfaceCalledHandles(" 1230 return "StructWithInterfaceCalledHandles("
938 "handles: $handles" ")"; 1231 "handles: $handles" ")";
939 } 1232 }
940 1233
941 Map toJson() { 1234 Map toJson() {
942 throw new bindings.MojoCodecError( 1235 throw new bindings.MojoCodecError(
943 'Object containing handles cannot be encoded to JSON.'); 1236 'Object containing handles cannot be encoded to JSON.');
944 } 1237 }
945 } 1238 }
946 1239
1240 mojom_types.MojomStruct _regressionTestsStructWithInterfaceCalledHandles() {
1241 return new mojom_types.MojomStruct()
1242 ..declData = (new mojom_types.DeclarationData()
1243 ..shortName = 'StructWithInterfaceCalledHandles'
1244 ..fullIdentifier = 'regression_tests.StructWithInterfaceCalledHandles')
1245 ..fields = <mojom_types.StructField>[
1246 new mojom_types.StructField()
1247 ..declData = (new mojom_types.DeclarationData()
1248 ..shortName = 'Handles')
1249 ..type = (new mojom_types.Type()
1250 ..typeReference = (new mojom_types.TypeReference()
1251 ..identifier = 'regression_tests_TestInterface__'
1252 ..typeKey = 'regression_tests_TestInterface__'
1253 )),];
1254 }
1255
947 1256
948 class ContainsArrayOfEnum extends bindings.Struct { 1257 class ContainsArrayOfEnum extends bindings.Struct {
949 static const List<bindings.StructDataHeader> kVersions = const [ 1258 static const List<bindings.StructDataHeader> kVersions = const [
950 const bindings.StructDataHeader(16, 0) 1259 const bindings.StructDataHeader(16, 0)
951 ]; 1260 ];
952 List<NormalEnum> arrayOfEnums = null; 1261 List<NormalEnum> arrayOfEnums = null;
953 1262
954 ContainsArrayOfEnum() : super(kVersions.last.size); 1263 ContainsArrayOfEnum() : super(kVersions.last.size);
955 1264
956 static ContainsArrayOfEnum deserialize(bindings.Message message) { 1265 static ContainsArrayOfEnum deserialize(bindings.Message message) {
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 "arrayOfEnums: $arrayOfEnums" ")"; 1325 "arrayOfEnums: $arrayOfEnums" ")";
1017 } 1326 }
1018 1327
1019 Map toJson() { 1328 Map toJson() {
1020 Map map = new Map(); 1329 Map map = new Map();
1021 map["arrayOfEnums"] = arrayOfEnums; 1330 map["arrayOfEnums"] = arrayOfEnums;
1022 return map; 1331 return map;
1023 } 1332 }
1024 } 1333 }
1025 1334
1335 mojom_types.MojomStruct _regressionTestsContainsArrayOfEnum() {
1336 return new mojom_types.MojomStruct()
1337 ..declData = (new mojom_types.DeclarationData()
1338 ..shortName = 'ContainsArrayOfEnum'
1339 ..fullIdentifier = 'regression_tests.ContainsArrayOfEnum')
1340 ..fields = <mojom_types.StructField>[
1341 new mojom_types.StructField()
1342 ..declData = (new mojom_types.DeclarationData()
1343 ..shortName = 'ArrayOfEnums')
1344 ..type = (new mojom_types.Type()
1345 ..arrayType = (new mojom_types.ArrayType()
1346 ..elementType = (new mojom_types.Type()
1347 ..typeReference = (new mojom_types.TypeReference()
1348 ..identifier = 'regression_tests_NormalEnum__'
1349 ..typeKey = 'regression_tests_NormalEnum__'
1350 )))),];
1351 }
1352
1026 1353
1027 class _CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams extend s bindings.Struct { 1354 class _CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams extend s bindings.Struct {
1028 static const List<bindings.StructDataHeader> kVersions = const [ 1355 static const List<bindings.StructDataHeader> kVersions = const [
1029 const bindings.StructDataHeader(8, 0) 1356 const bindings.StructDataHeader(8, 0)
1030 ]; 1357 ];
1031 1358
1032 _CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams() : super( kVersions.last.size); 1359 _CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams() : super( kVersions.last.size);
1033 1360
1034 static _CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams des erialize(bindings.Message message) { 1361 static _CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams des erialize(bindings.Message message) {
1035 var decoder = new bindings.Decoder(message); 1362 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1074 String toString() { 1401 String toString() {
1075 return "_CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams( "")"; 1402 return "_CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseParams( "")";
1076 } 1403 }
1077 1404
1078 Map toJson() { 1405 Map toJson() {
1079 Map map = new Map(); 1406 Map map = new Map();
1080 return map; 1407 return map;
1081 } 1408 }
1082 } 1409 }
1083 1410
1411 mojom_types.MojomStruct _regressionTestsCheckMethodWithEmptyResponseWithoutParam eterAndEmptyResponseParams() {
1412 return new mojom_types.MojomStruct()
1413 ..declData = (new mojom_types.DeclarationData()
1414 ..shortName = 'CheckMethodWithEmptyResponseWithoutParameterAndEmptyRespons eParams'
1415 ..fullIdentifier = 'regression_tests.CheckMethodWithEmptyResponse_WithoutP arameterAndEmptyResponse_Params')
1416 ..fields = <mojom_types.StructField>[];
1417 }
1418
1084 1419
1085 class CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponseParams extends bindings.Struct { 1420 class CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponseParams extends bindings.Struct {
1086 static const List<bindings.StructDataHeader> kVersions = const [ 1421 static const List<bindings.StructDataHeader> kVersions = const [
1087 const bindings.StructDataHeader(8, 0) 1422 const bindings.StructDataHeader(8, 0)
1088 ]; 1423 ];
1089 1424
1090 CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponseParams() : super(kVersions.last.size); 1425 CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponseParams() : super(kVersions.last.size);
1091 1426
1092 static CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponsePar ams deserialize(bindings.Message message) { 1427 static CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponsePar ams deserialize(bindings.Message message) {
1093 var decoder = new bindings.Decoder(message); 1428 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1132 String toString() { 1467 String toString() {
1133 return "CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponse Params("")"; 1468 return "CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResponse Params("")";
1134 } 1469 }
1135 1470
1136 Map toJson() { 1471 Map toJson() {
1137 Map map = new Map(); 1472 Map map = new Map();
1138 return map; 1473 return map;
1139 } 1474 }
1140 } 1475 }
1141 1476
1477 mojom_types.MojomStruct _regressionTestsCheckMethodWithEmptyResponseWithoutParam eterAndEmptyResponseResponseParams() {
1478 return new mojom_types.MojomStruct()
1479 ..declData = (new mojom_types.DeclarationData()
1480 ..shortName = 'CheckMethodWithEmptyResponseWithoutParameterAndEmptyRespons eResponseParams'
1481 ..fullIdentifier = 'regression_tests.CheckMethodWithEmptyResponse_WithoutP arameterAndEmptyResponse_ResponseParams')
1482 ..fields = <mojom_types.StructField>[];
1483 }
1484
1142 1485
1143 class _CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams extends b indings.Struct { 1486 class _CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams extends b indings.Struct {
1144 static const List<bindings.StructDataHeader> kVersions = const [ 1487 static const List<bindings.StructDataHeader> kVersions = const [
1145 const bindings.StructDataHeader(16, 0) 1488 const bindings.StructDataHeader(16, 0)
1146 ]; 1489 ];
1147 bool b = false; 1490 bool b = false;
1148 1491
1149 _CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams() : super(kVe rsions.last.size); 1492 _CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams() : super(kVe rsions.last.size);
1150 1493
1151 static _CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams deseri alize(bindings.Message message) { 1494 static _CheckMethodWithEmptyResponseWithParameterAndEmptyResponseParams deseri alize(bindings.Message message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1199 "b: $b" ")"; 1542 "b: $b" ")";
1200 } 1543 }
1201 1544
1202 Map toJson() { 1545 Map toJson() {
1203 Map map = new Map(); 1546 Map map = new Map();
1204 map["b"] = b; 1547 map["b"] = b;
1205 return map; 1548 return map;
1206 } 1549 }
1207 } 1550 }
1208 1551
1552 mojom_types.MojomStruct _regressionTestsCheckMethodWithEmptyResponseWithParamete rAndEmptyResponseParams() {
1553 return new mojom_types.MojomStruct()
1554 ..declData = (new mojom_types.DeclarationData()
1555 ..shortName = 'CheckMethodWithEmptyResponseWithParameterAndEmptyResponsePa rams'
1556 ..fullIdentifier = 'regression_tests.CheckMethodWithEmptyResponse_WithPara meterAndEmptyResponse_Params')
1557 ..fields = <mojom_types.StructField>[
1558 new mojom_types.StructField()
1559 ..declData = (new mojom_types.DeclarationData()
1560 ..shortName = 'B')
1561 ..type = (new mojom_types.Type()
1562 ..simpleType = mojom_types.SimpleType.bool),];
1563 }
1564
1209 1565
1210 class CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams ex tends bindings.Struct { 1566 class CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams ex tends bindings.Struct {
1211 static const List<bindings.StructDataHeader> kVersions = const [ 1567 static const List<bindings.StructDataHeader> kVersions = const [
1212 const bindings.StructDataHeader(8, 0) 1568 const bindings.StructDataHeader(8, 0)
1213 ]; 1569 ];
1214 1570
1215 CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams() : su per(kVersions.last.size); 1571 CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams() : su per(kVersions.last.size);
1216 1572
1217 static CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams deserialize(bindings.Message message) { 1573 static CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponseParams deserialize(bindings.Message message) {
1218 var decoder = new bindings.Decoder(message); 1574 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1257 String toString() { 1613 String toString() {
1258 return "CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponsePar ams("")"; 1614 return "CheckMethodWithEmptyResponseWithParameterAndEmptyResponseResponsePar ams("")";
1259 } 1615 }
1260 1616
1261 Map toJson() { 1617 Map toJson() {
1262 Map map = new Map(); 1618 Map map = new Map();
1263 return map; 1619 return map;
1264 } 1620 }
1265 } 1621 }
1266 1622
1623 mojom_types.MojomStruct _regressionTestsCheckMethodWithEmptyResponseWithParamete rAndEmptyResponseResponseParams() {
1624 return new mojom_types.MojomStruct()
1625 ..declData = (new mojom_types.DeclarationData()
1626 ..shortName = 'CheckMethodWithEmptyResponseWithParameterAndEmptyResponseRe sponseParams'
1627 ..fullIdentifier = 'regression_tests.CheckMethodWithEmptyResponse_WithPara meterAndEmptyResponse_ResponseParams')
1628 ..fields = <mojom_types.StructField>[];
1629 }
1630
1267 1631
1268 class _CheckNameCollisionWithNameCollisionParams extends bindings.Struct { 1632 class _CheckNameCollisionWithNameCollisionParams extends bindings.Struct {
1269 static const List<bindings.StructDataHeader> kVersions = const [ 1633 static const List<bindings.StructDataHeader> kVersions = const [
1270 const bindings.StructDataHeader(16, 0) 1634 const bindings.StructDataHeader(16, 0)
1271 ]; 1635 ];
1272 bool message = false; 1636 bool message = false;
1273 bool response = false; 1637 bool response = false;
1274 1638
1275 _CheckNameCollisionWithNameCollisionParams() : super(kVersions.last.size); 1639 _CheckNameCollisionWithNameCollisionParams() : super(kVersions.last.size);
1276 1640
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1333 } 1697 }
1334 1698
1335 Map toJson() { 1699 Map toJson() {
1336 Map map = new Map(); 1700 Map map = new Map();
1337 map["message"] = message; 1701 map["message"] = message;
1338 map["response"] = response; 1702 map["response"] = response;
1339 return map; 1703 return map;
1340 } 1704 }
1341 } 1705 }
1342 1706
1707 mojom_types.MojomStruct _regressionTestsCheckNameCollisionWithNameCollisionParam s() {
1708 return new mojom_types.MojomStruct()
1709 ..declData = (new mojom_types.DeclarationData()
1710 ..shortName = 'CheckNameCollisionWithNameCollisionParams'
1711 ..fullIdentifier = 'regression_tests.CheckNameCollision_WithNameCollision_ Params')
1712 ..fields = <mojom_types.StructField>[
1713 new mojom_types.StructField()
1714 ..declData = (new mojom_types.DeclarationData()
1715 ..shortName = 'Message')
1716 ..type = (new mojom_types.Type()
1717 ..simpleType = mojom_types.SimpleType.bool),
1718 new mojom_types.StructField()
1719 ..declData = (new mojom_types.DeclarationData()
1720 ..shortName = 'Response')
1721 ..type = (new mojom_types.Type()
1722 ..simpleType = mojom_types.SimpleType.bool),];
1723 }
1724
1343 1725
1344 class CheckNameCollisionWithNameCollisionResponseParams extends bindings.Struct { 1726 class CheckNameCollisionWithNameCollisionResponseParams extends bindings.Struct {
1345 static const List<bindings.StructDataHeader> kVersions = const [ 1727 static const List<bindings.StructDataHeader> kVersions = const [
1346 const bindings.StructDataHeader(16, 0) 1728 const bindings.StructDataHeader(16, 0)
1347 ]; 1729 ];
1348 bool message = false; 1730 bool message = false;
1349 bool response = false; 1731 bool response = false;
1350 1732
1351 CheckNameCollisionWithNameCollisionResponseParams() : super(kVersions.last.siz e); 1733 CheckNameCollisionWithNameCollisionResponseParams() : super(kVersions.last.siz e);
1352 1734
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1409 } 1791 }
1410 1792
1411 Map toJson() { 1793 Map toJson() {
1412 Map map = new Map(); 1794 Map map = new Map();
1413 map["message"] = message; 1795 map["message"] = message;
1414 map["response"] = response; 1796 map["response"] = response;
1415 return map; 1797 return map;
1416 } 1798 }
1417 } 1799 }
1418 1800
1801 mojom_types.MojomStruct _regressionTestsCheckNameCollisionWithNameCollisionRespo nseParams() {
1802 return new mojom_types.MojomStruct()
1803 ..declData = (new mojom_types.DeclarationData()
1804 ..shortName = 'CheckNameCollisionWithNameCollisionResponseParams'
1805 ..fullIdentifier = 'regression_tests.CheckNameCollision_WithNameCollision_ ResponseParams')
1806 ..fields = <mojom_types.StructField>[
1807 new mojom_types.StructField()
1808 ..declData = (new mojom_types.DeclarationData()
1809 ..shortName = 'Message')
1810 ..type = (new mojom_types.Type()
1811 ..simpleType = mojom_types.SimpleType.bool),
1812 new mojom_types.StructField()
1813 ..declData = (new mojom_types.DeclarationData()
1814 ..shortName = 'Response')
1815 ..type = (new mojom_types.Type()
1816 ..simpleType = mojom_types.SimpleType.bool),];
1817 }
1818
1419 1819
1420 class _CheckEnumCapsSetEnumWithInternalAllCapsParams extends bindings.Struct { 1820 class _CheckEnumCapsSetEnumWithInternalAllCapsParams extends bindings.Struct {
1421 static const List<bindings.StructDataHeader> kVersions = const [ 1821 static const List<bindings.StructDataHeader> kVersions = const [
1422 const bindings.StructDataHeader(16, 0) 1822 const bindings.StructDataHeader(16, 0)
1423 ]; 1823 ];
1424 EnumWithInternalAllCaps e = null; 1824 EnumWithInternalAllCaps e = null;
1425 1825
1426 _CheckEnumCapsSetEnumWithInternalAllCapsParams() : super(kVersions.last.size); 1826 _CheckEnumCapsSetEnumWithInternalAllCapsParams() : super(kVersions.last.size);
1427 1827
1428 static _CheckEnumCapsSetEnumWithInternalAllCapsParams deserialize(bindings.Mes sage message) { 1828 static _CheckEnumCapsSetEnumWithInternalAllCapsParams deserialize(bindings.Mes sage message) {
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1480 "e: $e" ")"; 1880 "e: $e" ")";
1481 } 1881 }
1482 1882
1483 Map toJson() { 1883 Map toJson() {
1484 Map map = new Map(); 1884 Map map = new Map();
1485 map["e"] = e; 1885 map["e"] = e;
1486 return map; 1886 return map;
1487 } 1887 }
1488 } 1888 }
1489 1889
1890 mojom_types.MojomStruct _regressionTestsCheckEnumCapsSetEnumWithInternalAllCapsP arams() {
1891 return new mojom_types.MojomStruct()
1892 ..declData = (new mojom_types.DeclarationData()
1893 ..shortName = 'CheckEnumCapsSetEnumWithInternalAllCapsParams'
1894 ..fullIdentifier = 'regression_tests.CheckEnumCaps_SetEnumWithINTERNALAllC aps_Params')
1895 ..fields = <mojom_types.StructField>[
1896 new mojom_types.StructField()
1897 ..declData = (new mojom_types.DeclarationData()
1898 ..shortName = 'E')
1899 ..type = (new mojom_types.Type()
1900 ..typeReference = (new mojom_types.TypeReference()
1901 ..identifier = 'regression_tests_EnumWithINTERNALAllCaps__'
1902 ..typeKey = 'regression_tests_EnumWithINTERNALAllCaps__'
1903 )),];
1904 }
1905
1490 1906
1491 class _TestInterfaceSomeMessageParams extends bindings.Struct { 1907 class _TestInterfaceSomeMessageParams extends bindings.Struct {
1492 static const List<bindings.StructDataHeader> kVersions = const [ 1908 static const List<bindings.StructDataHeader> kVersions = const [
1493 const bindings.StructDataHeader(8, 0) 1909 const bindings.StructDataHeader(8, 0)
1494 ]; 1910 ];
1495 1911
1496 _TestInterfaceSomeMessageParams() : super(kVersions.last.size); 1912 _TestInterfaceSomeMessageParams() : super(kVersions.last.size);
1497 1913
1498 static _TestInterfaceSomeMessageParams deserialize(bindings.Message message) { 1914 static _TestInterfaceSomeMessageParams deserialize(bindings.Message message) {
1499 var decoder = new bindings.Decoder(message); 1915 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1538 String toString() { 1954 String toString() {
1539 return "_TestInterfaceSomeMessageParams("")"; 1955 return "_TestInterfaceSomeMessageParams("")";
1540 } 1956 }
1541 1957
1542 Map toJson() { 1958 Map toJson() {
1543 Map map = new Map(); 1959 Map map = new Map();
1544 return map; 1960 return map;
1545 } 1961 }
1546 } 1962 }
1547 1963
1964 mojom_types.MojomStruct _regressionTestsTestInterfaceSomeMessageParams() {
1965 return new mojom_types.MojomStruct()
1966 ..declData = (new mojom_types.DeclarationData()
1967 ..shortName = 'TestInterfaceSomeMessageParams'
1968 ..fullIdentifier = 'regression_tests.TestInterface_SomeMessage_Params')
1969 ..fields = <mojom_types.StructField>[];
1970 }
1971
1548 1972
1549 class _Regression551GetParams extends bindings.Struct { 1973 class _Regression551GetParams extends bindings.Struct {
1550 static const List<bindings.StructDataHeader> kVersions = const [ 1974 static const List<bindings.StructDataHeader> kVersions = const [
1551 const bindings.StructDataHeader(16, 0) 1975 const bindings.StructDataHeader(16, 0)
1552 ]; 1976 ];
1553 List<String> keyPrefixes = null; 1977 List<String> keyPrefixes = null;
1554 1978
1555 _Regression551GetParams() : super(kVersions.last.size); 1979 _Regression551GetParams() : super(kVersions.last.size);
1556 1980
1557 static _Regression551GetParams deserialize(bindings.Message message) { 1981 static _Regression551GetParams deserialize(bindings.Message message) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1621 "keyPrefixes: $keyPrefixes" ")"; 2045 "keyPrefixes: $keyPrefixes" ")";
1622 } 2046 }
1623 2047
1624 Map toJson() { 2048 Map toJson() {
1625 Map map = new Map(); 2049 Map map = new Map();
1626 map["keyPrefixes"] = keyPrefixes; 2050 map["keyPrefixes"] = keyPrefixes;
1627 return map; 2051 return map;
1628 } 2052 }
1629 } 2053 }
1630 2054
2055 mojom_types.MojomStruct _regressionTestsRegression551GetParams() {
2056 return new mojom_types.MojomStruct()
2057 ..declData = (new mojom_types.DeclarationData()
2058 ..shortName = 'Regression551GetParams'
2059 ..fullIdentifier = 'regression_tests.Regression551_Get_Params')
2060 ..fields = <mojom_types.StructField>[
2061 new mojom_types.StructField()
2062 ..declData = (new mojom_types.DeclarationData()
2063 ..shortName = 'KeyPrefixes')
2064 ..type = (new mojom_types.Type()
2065 ..arrayType = (new mojom_types.ArrayType()
2066 ..elementType = (new mojom_types.Type()
2067 ..stringType = (new mojom_types.StringType())))),];
2068 }
2069
1631 2070
1632 class Regression551GetResponseParams extends bindings.Struct { 2071 class Regression551GetResponseParams extends bindings.Struct {
1633 static const List<bindings.StructDataHeader> kVersions = const [ 2072 static const List<bindings.StructDataHeader> kVersions = const [
1634 const bindings.StructDataHeader(16, 0) 2073 const bindings.StructDataHeader(16, 0)
1635 ]; 2074 ];
1636 int result = 0; 2075 int result = 0;
1637 2076
1638 Regression551GetResponseParams() : super(kVersions.last.size); 2077 Regression551GetResponseParams() : super(kVersions.last.size);
1639 2078
1640 static Regression551GetResponseParams deserialize(bindings.Message message) { 2079 static Regression551GetResponseParams deserialize(bindings.Message message) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 "result: $result" ")"; 2127 "result: $result" ")";
1689 } 2128 }
1690 2129
1691 Map toJson() { 2130 Map toJson() {
1692 Map map = new Map(); 2131 Map map = new Map();
1693 map["result"] = result; 2132 map["result"] = result;
1694 return map; 2133 return map;
1695 } 2134 }
1696 } 2135 }
1697 2136
2137 mojom_types.MojomStruct _regressionTestsRegression551GetResponseParams() {
2138 return new mojom_types.MojomStruct()
2139 ..declData = (new mojom_types.DeclarationData()
2140 ..shortName = 'Regression551GetResponseParams'
2141 ..fullIdentifier = 'regression_tests.Regression551_Get_ResponseParams')
2142 ..fields = <mojom_types.StructField>[
2143 new mojom_types.StructField()
2144 ..declData = (new mojom_types.DeclarationData()
2145 ..shortName = 'Result')
2146 ..type = (new mojom_types.Type()
2147 ..simpleType = mojom_types.SimpleType.int32),];
2148 }
2149
1698 2150
1699 class _ServiceNameServiceNameParams extends bindings.Struct { 2151 class _ServiceNameServiceNameParams extends bindings.Struct {
1700 static const List<bindings.StructDataHeader> kVersions = const [ 2152 static const List<bindings.StructDataHeader> kVersions = const [
1701 const bindings.StructDataHeader(8, 0) 2153 const bindings.StructDataHeader(8, 0)
1702 ]; 2154 ];
1703 2155
1704 _ServiceNameServiceNameParams() : super(kVersions.last.size); 2156 _ServiceNameServiceNameParams() : super(kVersions.last.size);
1705 2157
1706 static _ServiceNameServiceNameParams deserialize(bindings.Message message) { 2158 static _ServiceNameServiceNameParams deserialize(bindings.Message message) {
1707 var decoder = new bindings.Decoder(message); 2159 var decoder = new bindings.Decoder(message);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 String toString() { 2198 String toString() {
1747 return "_ServiceNameServiceNameParams("")"; 2199 return "_ServiceNameServiceNameParams("")";
1748 } 2200 }
1749 2201
1750 Map toJson() { 2202 Map toJson() {
1751 Map map = new Map(); 2203 Map map = new Map();
1752 return map; 2204 return map;
1753 } 2205 }
1754 } 2206 }
1755 2207
2208 mojom_types.MojomStruct _regressionTestsServiceNameServiceNameParams() {
2209 return new mojom_types.MojomStruct()
2210 ..declData = (new mojom_types.DeclarationData()
2211 ..shortName = 'ServiceNameServiceNameParams'
2212 ..fullIdentifier = 'regression_tests.ServiceName_serviceName_Params')
2213 ..fields = <mojom_types.StructField>[];
2214 }
2215
1756 2216
1757 class ServiceNameServiceNameResponseParams extends bindings.Struct { 2217 class ServiceNameServiceNameResponseParams extends bindings.Struct {
1758 static const List<bindings.StructDataHeader> kVersions = const [ 2218 static const List<bindings.StructDataHeader> kVersions = const [
1759 const bindings.StructDataHeader(16, 0) 2219 const bindings.StructDataHeader(16, 0)
1760 ]; 2220 ];
1761 String serviceName_ = null; 2221 String serviceName_ = null;
1762 2222
1763 ServiceNameServiceNameResponseParams() : super(kVersions.last.size); 2223 ServiceNameServiceNameResponseParams() : super(kVersions.last.size);
1764 2224
1765 static ServiceNameServiceNameResponseParams deserialize(bindings.Message messa ge) { 2225 static ServiceNameServiceNameResponseParams deserialize(bindings.Message messa ge) {
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
1813 "serviceName_: $serviceName_" ")"; 2273 "serviceName_: $serviceName_" ")";
1814 } 2274 }
1815 2275
1816 Map toJson() { 2276 Map toJson() {
1817 Map map = new Map(); 2277 Map map = new Map();
1818 map["serviceName_"] = serviceName_; 2278 map["serviceName_"] = serviceName_;
1819 return map; 2279 return map;
1820 } 2280 }
1821 } 2281 }
1822 2282
2283 mojom_types.MojomStruct _regressionTestsServiceNameServiceNameResponseParams() {
2284 return new mojom_types.MojomStruct()
2285 ..declData = (new mojom_types.DeclarationData()
2286 ..shortName = 'ServiceNameServiceNameResponseParams'
2287 ..fullIdentifier = 'regression_tests.ServiceName_serviceName_ResponseParam s')
2288 ..fields = <mojom_types.StructField>[
2289 new mojom_types.StructField()
2290 ..declData = (new mojom_types.DeclarationData()
2291 ..shortName = 'ServiceName')
2292 ..type = (new mojom_types.Type()
2293 ..stringType = (new mojom_types.StringType())),];
2294 }
2295
2296
1823 const int _CheckMethodWithEmptyResponse_withoutParameterAndEmptyResponseName = 0 ; 2297 const int _CheckMethodWithEmptyResponse_withoutParameterAndEmptyResponseName = 0 ;
1824 const int _CheckMethodWithEmptyResponse_withParameterAndEmptyResponseName = 1; 2298 const int _CheckMethodWithEmptyResponse_withParameterAndEmptyResponseName = 1;
1825 2299
2300 mojom_types.MojomInterface _regressionTestsCheckMethodWithEmptyResponse() {
2301 return new mojom_types.MojomInterface()
2302 ..declData = (new mojom_types.DeclarationData()
2303 ..shortName = 'CheckMethodWithEmptyResponse'
2304 ..fullIdentifier = 'regression_tests.CheckMethodWithEmptyResponse')
2305 ..interfaceName = 'CheckMethodWithEmptyResponse'
2306 ..methods = <int, mojom_types.MojomMethod>{
2307 _CheckMethodWithEmptyResponse_withoutParameterAndEmptyResponseName: new mo jom_types.MojomMethod()
2308 ..declData = (new mojom_types.DeclarationData()
2309 ..shortName = 'WithoutParameterAndEmptyResponse')
2310 ..ordinal = _CheckMethodWithEmptyResponse_withoutParameterAndEmptyRespon seName
2311 ..responseParams = _regressionTestsCheckMethodWithEmptyResponseWithoutPa rameterAndEmptyResponseResponseParams()
2312 ..parameters = _regressionTestsCheckMethodWithEmptyResponseWithoutParame terAndEmptyResponseParams(),
2313 _CheckMethodWithEmptyResponse_withParameterAndEmptyResponseName: new mojom _types.MojomMethod()
2314 ..declData = (new mojom_types.DeclarationData()
2315 ..shortName = 'WithParameterAndEmptyResponse')
2316 ..ordinal = _CheckMethodWithEmptyResponse_withParameterAndEmptyResponseN ame
2317 ..responseParams = _regressionTestsCheckMethodWithEmptyResponseWithParam eterAndEmptyResponseResponseParams()
2318 ..parameters = _regressionTestsCheckMethodWithEmptyResponseWithParameter AndEmptyResponseParams(),
2319 };
2320 }
2321
2322 class _CheckMethodWithEmptyResponseServiceDescription implements service_describ er.ServiceDescription {
2323 dynamic getTopLevelInterface([Function responseFactory]) =>
2324 _regressionTestsCheckMethodWithEmptyResponse();
2325
2326 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
2327 getAllMojomTypeDefinitions()[typeKey];
2328
2329 dynamic getAllTypeDefinitions([Function responseFactory]) =>
2330 getAllMojomTypeDefinitions();
2331 }
2332
1826 abstract class CheckMethodWithEmptyResponse { 2333 abstract class CheckMethodWithEmptyResponse {
1827 static const String serviceName = null; 2334 static const String serviceName = null;
1828 dynamic withoutParameterAndEmptyResponse([Function responseFactory = null]); 2335 dynamic withoutParameterAndEmptyResponse([Function responseFactory = null]);
1829 dynamic withParameterAndEmptyResponse(bool b,[Function responseFactory = null] ); 2336 dynamic withParameterAndEmptyResponse(bool b,[Function responseFactory = null] );
1830 } 2337 }
1831 2338
1832 2339
1833 class _CheckMethodWithEmptyResponseProxyImpl extends bindings.Proxy { 2340 class _CheckMethodWithEmptyResponseProxyImpl extends bindings.Proxy {
1834 _CheckMethodWithEmptyResponseProxyImpl.fromEndpoint( 2341 _CheckMethodWithEmptyResponseProxyImpl.fromEndpoint(
1835 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 2342 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
1836 2343
1837 _CheckMethodWithEmptyResponseProxyImpl.fromHandle(core.MojoHandle handle) : 2344 _CheckMethodWithEmptyResponseProxyImpl.fromHandle(core.MojoHandle handle) :
1838 super.fromHandle(handle); 2345 super.fromHandle(handle);
1839 2346
1840 _CheckMethodWithEmptyResponseProxyImpl.unbound() : super.unbound(); 2347 _CheckMethodWithEmptyResponseProxyImpl.unbound() : super.unbound();
1841 2348
1842 static _CheckMethodWithEmptyResponseProxyImpl newFromEndpoint( 2349 static _CheckMethodWithEmptyResponseProxyImpl newFromEndpoint(
1843 core.MojoMessagePipeEndpoint endpoint) { 2350 core.MojoMessagePipeEndpoint endpoint) {
1844 assert(endpoint.setDescription("For _CheckMethodWithEmptyResponseProxyImpl") ); 2351 assert(endpoint.setDescription("For _CheckMethodWithEmptyResponseProxyImpl") );
1845 return new _CheckMethodWithEmptyResponseProxyImpl.fromEndpoint(endpoint); 2352 return new _CheckMethodWithEmptyResponseProxyImpl.fromEndpoint(endpoint);
1846 } 2353 }
1847 2354
2355 service_describer.ServiceDescription get serviceDescription =>
2356 new _CheckMethodWithEmptyResponseServiceDescription();
2357
1848 void handleResponse(bindings.ServiceMessage message) { 2358 void handleResponse(bindings.ServiceMessage message) {
1849 switch (message.header.type) { 2359 switch (message.header.type) {
1850 case _CheckMethodWithEmptyResponse_withoutParameterAndEmptyResponseName: 2360 case _CheckMethodWithEmptyResponse_withoutParameterAndEmptyResponseName:
1851 var r = CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResp onseParams.deserialize( 2361 var r = CheckMethodWithEmptyResponseWithoutParameterAndEmptyResponseResp onseParams.deserialize(
1852 message.payload); 2362 message.payload);
1853 if (!message.header.hasRequestId) { 2363 if (!message.header.hasRequestId) {
1854 proxyError("Expected a message with a valid request Id."); 2364 proxyError("Expected a message with a valid request Id.");
1855 return; 2365 return;
1856 } 2366 }
1857 Completer c = completerMap[message.header.requestId]; 2367 Completer c = completerMap[message.header.requestId];
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 assert(_impl == null); 2586 assert(_impl == null);
2077 _impl = d; 2587 _impl = d;
2078 } 2588 }
2079 2589
2080 String toString() { 2590 String toString() {
2081 var superString = super.toString(); 2591 var superString = super.toString();
2082 return "CheckMethodWithEmptyResponseStub($superString)"; 2592 return "CheckMethodWithEmptyResponseStub($superString)";
2083 } 2593 }
2084 2594
2085 int get version => 0; 2595 int get version => 0;
2596
2597 service_describer.ServiceDescription get serviceDescription =>
2598 new _CheckMethodWithEmptyResponseServiceDescription();
2086 } 2599 }
2087 2600
2088 const int _CheckNameCollision_withNameCollisionName = 0; 2601 const int _CheckNameCollision_withNameCollisionName = 0;
2089 2602
2603 mojom_types.MojomInterface _regressionTestsCheckNameCollision() {
2604 return new mojom_types.MojomInterface()
2605 ..declData = (new mojom_types.DeclarationData()
2606 ..shortName = 'CheckNameCollision'
2607 ..fullIdentifier = 'regression_tests.CheckNameCollision')
2608 ..interfaceName = 'CheckNameCollision'
2609 ..methods = <int, mojom_types.MojomMethod>{
2610 _CheckNameCollision_withNameCollisionName: new mojom_types.MojomMethod()
2611 ..declData = (new mojom_types.DeclarationData()
2612 ..shortName = 'WithNameCollision')
2613 ..ordinal = _CheckNameCollision_withNameCollisionName
2614 ..responseParams = _regressionTestsCheckNameCollisionWithNameCollisionRe sponseParams()
2615 ..parameters = _regressionTestsCheckNameCollisionWithNameCollisionParams (),
2616 };
2617 }
2618
2619 class _CheckNameCollisionServiceDescription implements service_describer.Service Description {
2620 dynamic getTopLevelInterface([Function responseFactory]) =>
2621 _regressionTestsCheckNameCollision();
2622
2623 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
2624 getAllMojomTypeDefinitions()[typeKey];
2625
2626 dynamic getAllTypeDefinitions([Function responseFactory]) =>
2627 getAllMojomTypeDefinitions();
2628 }
2629
2090 abstract class CheckNameCollision { 2630 abstract class CheckNameCollision {
2091 static const String serviceName = null; 2631 static const String serviceName = null;
2092 dynamic withNameCollision(bool message,bool response,[Function responseFactory = null]); 2632 dynamic withNameCollision(bool message,bool response,[Function responseFactory = null]);
2093 } 2633 }
2094 2634
2095 2635
2096 class _CheckNameCollisionProxyImpl extends bindings.Proxy { 2636 class _CheckNameCollisionProxyImpl extends bindings.Proxy {
2097 _CheckNameCollisionProxyImpl.fromEndpoint( 2637 _CheckNameCollisionProxyImpl.fromEndpoint(
2098 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 2638 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
2099 2639
2100 _CheckNameCollisionProxyImpl.fromHandle(core.MojoHandle handle) : 2640 _CheckNameCollisionProxyImpl.fromHandle(core.MojoHandle handle) :
2101 super.fromHandle(handle); 2641 super.fromHandle(handle);
2102 2642
2103 _CheckNameCollisionProxyImpl.unbound() : super.unbound(); 2643 _CheckNameCollisionProxyImpl.unbound() : super.unbound();
2104 2644
2105 static _CheckNameCollisionProxyImpl newFromEndpoint( 2645 static _CheckNameCollisionProxyImpl newFromEndpoint(
2106 core.MojoMessagePipeEndpoint endpoint) { 2646 core.MojoMessagePipeEndpoint endpoint) {
2107 assert(endpoint.setDescription("For _CheckNameCollisionProxyImpl")); 2647 assert(endpoint.setDescription("For _CheckNameCollisionProxyImpl"));
2108 return new _CheckNameCollisionProxyImpl.fromEndpoint(endpoint); 2648 return new _CheckNameCollisionProxyImpl.fromEndpoint(endpoint);
2109 } 2649 }
2110 2650
2651 service_describer.ServiceDescription get serviceDescription =>
2652 new _CheckNameCollisionServiceDescription();
2653
2111 void handleResponse(bindings.ServiceMessage message) { 2654 void handleResponse(bindings.ServiceMessage message) {
2112 switch (message.header.type) { 2655 switch (message.header.type) {
2113 case _CheckNameCollision_withNameCollisionName: 2656 case _CheckNameCollision_withNameCollisionName:
2114 var r = CheckNameCollisionWithNameCollisionResponseParams.deserialize( 2657 var r = CheckNameCollisionWithNameCollisionResponseParams.deserialize(
2115 message.payload); 2658 message.payload);
2116 if (!message.header.hasRequestId) { 2659 if (!message.header.hasRequestId) {
2117 proxyError("Expected a message with a valid request Id."); 2660 proxyError("Expected a message with a valid request Id.");
2118 return; 2661 return;
2119 } 2662 }
2120 Completer c = completerMap[message.header.requestId]; 2663 Completer c = completerMap[message.header.requestId];
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
2288 assert(_impl == null); 2831 assert(_impl == null);
2289 _impl = d; 2832 _impl = d;
2290 } 2833 }
2291 2834
2292 String toString() { 2835 String toString() {
2293 var superString = super.toString(); 2836 var superString = super.toString();
2294 return "CheckNameCollisionStub($superString)"; 2837 return "CheckNameCollisionStub($superString)";
2295 } 2838 }
2296 2839
2297 int get version => 0; 2840 int get version => 0;
2841
2842 service_describer.ServiceDescription get serviceDescription =>
2843 new _CheckNameCollisionServiceDescription();
2298 } 2844 }
2299 2845
2300 const int _CheckEnumCaps_setEnumWithInternalAllCapsName = 0; 2846 const int _CheckEnumCaps_setEnumWithInternalAllCapsName = 0;
2301 2847
2848 mojom_types.MojomInterface _regressionTestsCheckEnumCaps() {
2849 return new mojom_types.MojomInterface()
2850 ..declData = (new mojom_types.DeclarationData()
2851 ..shortName = 'CheckEnumCaps'
2852 ..fullIdentifier = 'regression_tests.CheckEnumCaps')
2853 ..interfaceName = 'CheckEnumCaps'
2854 ..methods = <int, mojom_types.MojomMethod>{
2855 _CheckEnumCaps_setEnumWithInternalAllCapsName: new mojom_types.MojomMethod ()
2856 ..declData = (new mojom_types.DeclarationData()
2857 ..shortName = 'SetEnumWithInternalAllCaps')
2858 ..ordinal = _CheckEnumCaps_setEnumWithInternalAllCapsName
2859 ..parameters = _regressionTestsCheckEnumCapsSetEnumWithInternalAllCapsPa rams(),
2860 };
2861 }
2862
2863 class _CheckEnumCapsServiceDescription implements service_describer.ServiceDescr iption {
2864 dynamic getTopLevelInterface([Function responseFactory]) =>
2865 _regressionTestsCheckEnumCaps();
2866
2867 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
2868 getAllMojomTypeDefinitions()[typeKey];
2869
2870 dynamic getAllTypeDefinitions([Function responseFactory]) =>
2871 getAllMojomTypeDefinitions();
2872 }
2873
2302 abstract class CheckEnumCaps { 2874 abstract class CheckEnumCaps {
2303 static const String serviceName = null; 2875 static const String serviceName = null;
2304 void setEnumWithInternalAllCaps(EnumWithInternalAllCaps e); 2876 void setEnumWithInternalAllCaps(EnumWithInternalAllCaps e);
2305 } 2877 }
2306 2878
2307 2879
2308 class _CheckEnumCapsProxyImpl extends bindings.Proxy { 2880 class _CheckEnumCapsProxyImpl extends bindings.Proxy {
2309 _CheckEnumCapsProxyImpl.fromEndpoint( 2881 _CheckEnumCapsProxyImpl.fromEndpoint(
2310 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 2882 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
2311 2883
2312 _CheckEnumCapsProxyImpl.fromHandle(core.MojoHandle handle) : 2884 _CheckEnumCapsProxyImpl.fromHandle(core.MojoHandle handle) :
2313 super.fromHandle(handle); 2885 super.fromHandle(handle);
2314 2886
2315 _CheckEnumCapsProxyImpl.unbound() : super.unbound(); 2887 _CheckEnumCapsProxyImpl.unbound() : super.unbound();
2316 2888
2317 static _CheckEnumCapsProxyImpl newFromEndpoint( 2889 static _CheckEnumCapsProxyImpl newFromEndpoint(
2318 core.MojoMessagePipeEndpoint endpoint) { 2890 core.MojoMessagePipeEndpoint endpoint) {
2319 assert(endpoint.setDescription("For _CheckEnumCapsProxyImpl")); 2891 assert(endpoint.setDescription("For _CheckEnumCapsProxyImpl"));
2320 return new _CheckEnumCapsProxyImpl.fromEndpoint(endpoint); 2892 return new _CheckEnumCapsProxyImpl.fromEndpoint(endpoint);
2321 } 2893 }
2322 2894
2895 service_describer.ServiceDescription get serviceDescription =>
2896 new _CheckEnumCapsServiceDescription();
2897
2323 void handleResponse(bindings.ServiceMessage message) { 2898 void handleResponse(bindings.ServiceMessage message) {
2324 switch (message.header.type) { 2899 switch (message.header.type) {
2325 default: 2900 default:
2326 proxyError("Unexpected message type: ${message.header.type}"); 2901 proxyError("Unexpected message type: ${message.header.type}");
2327 close(immediate: true); 2902 close(immediate: true);
2328 break; 2903 break;
2329 } 2904 }
2330 } 2905 }
2331 2906
2332 String toString() { 2907 String toString() {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2456 assert(_impl == null); 3031 assert(_impl == null);
2457 _impl = d; 3032 _impl = d;
2458 } 3033 }
2459 3034
2460 String toString() { 3035 String toString() {
2461 var superString = super.toString(); 3036 var superString = super.toString();
2462 return "CheckEnumCapsStub($superString)"; 3037 return "CheckEnumCapsStub($superString)";
2463 } 3038 }
2464 3039
2465 int get version => 0; 3040 int get version => 0;
3041
3042 service_describer.ServiceDescription get serviceDescription =>
3043 new _CheckEnumCapsServiceDescription();
2466 } 3044 }
2467 3045
2468 const int _TestInterface_someMessageName = 0; 3046 const int _TestInterface_someMessageName = 0;
2469 3047
3048 mojom_types.MojomInterface _regressionTestsTestInterface() {
3049 return new mojom_types.MojomInterface()
3050 ..declData = (new mojom_types.DeclarationData()
3051 ..shortName = 'TestInterface'
3052 ..fullIdentifier = 'regression_tests.TestInterface')
3053 ..interfaceName = 'TestInterface'
3054 ..methods = <int, mojom_types.MojomMethod>{
3055 _TestInterface_someMessageName: new mojom_types.MojomMethod()
3056 ..declData = (new mojom_types.DeclarationData()
3057 ..shortName = 'SomeMessage')
3058 ..ordinal = _TestInterface_someMessageName
3059 ..parameters = _regressionTestsTestInterfaceSomeMessageParams(),
3060 };
3061 }
3062
3063 class _TestInterfaceServiceDescription implements service_describer.ServiceDescr iption {
3064 dynamic getTopLevelInterface([Function responseFactory]) =>
3065 _regressionTestsTestInterface();
3066
3067 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
3068 getAllMojomTypeDefinitions()[typeKey];
3069
3070 dynamic getAllTypeDefinitions([Function responseFactory]) =>
3071 getAllMojomTypeDefinitions();
3072 }
3073
2470 abstract class TestInterface { 3074 abstract class TestInterface {
2471 static const String serviceName = null; 3075 static const String serviceName = null;
2472 void someMessage(); 3076 void someMessage();
2473 } 3077 }
2474 3078
2475 3079
2476 class _TestInterfaceProxyImpl extends bindings.Proxy { 3080 class _TestInterfaceProxyImpl extends bindings.Proxy {
2477 _TestInterfaceProxyImpl.fromEndpoint( 3081 _TestInterfaceProxyImpl.fromEndpoint(
2478 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 3082 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
2479 3083
2480 _TestInterfaceProxyImpl.fromHandle(core.MojoHandle handle) : 3084 _TestInterfaceProxyImpl.fromHandle(core.MojoHandle handle) :
2481 super.fromHandle(handle); 3085 super.fromHandle(handle);
2482 3086
2483 _TestInterfaceProxyImpl.unbound() : super.unbound(); 3087 _TestInterfaceProxyImpl.unbound() : super.unbound();
2484 3088
2485 static _TestInterfaceProxyImpl newFromEndpoint( 3089 static _TestInterfaceProxyImpl newFromEndpoint(
2486 core.MojoMessagePipeEndpoint endpoint) { 3090 core.MojoMessagePipeEndpoint endpoint) {
2487 assert(endpoint.setDescription("For _TestInterfaceProxyImpl")); 3091 assert(endpoint.setDescription("For _TestInterfaceProxyImpl"));
2488 return new _TestInterfaceProxyImpl.fromEndpoint(endpoint); 3092 return new _TestInterfaceProxyImpl.fromEndpoint(endpoint);
2489 } 3093 }
2490 3094
3095 service_describer.ServiceDescription get serviceDescription =>
3096 new _TestInterfaceServiceDescription();
3097
2491 void handleResponse(bindings.ServiceMessage message) { 3098 void handleResponse(bindings.ServiceMessage message) {
2492 switch (message.header.type) { 3099 switch (message.header.type) {
2493 default: 3100 default:
2494 proxyError("Unexpected message type: ${message.header.type}"); 3101 proxyError("Unexpected message type: ${message.header.type}");
2495 close(immediate: true); 3102 close(immediate: true);
2496 break; 3103 break;
2497 } 3104 }
2498 } 3105 }
2499 3106
2500 String toString() { 3107 String toString() {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
2623 assert(_impl == null); 3230 assert(_impl == null);
2624 _impl = d; 3231 _impl = d;
2625 } 3232 }
2626 3233
2627 String toString() { 3234 String toString() {
2628 var superString = super.toString(); 3235 var superString = super.toString();
2629 return "TestInterfaceStub($superString)"; 3236 return "TestInterfaceStub($superString)";
2630 } 3237 }
2631 3238
2632 int get version => 0; 3239 int get version => 0;
3240
3241 service_describer.ServiceDescription get serviceDescription =>
3242 new _TestInterfaceServiceDescription();
2633 } 3243 }
2634 3244
2635 const int _Regression551_getName = 0; 3245 const int _Regression551_getName = 0;
2636 3246
3247 mojom_types.MojomInterface _regressionTestsRegression551() {
3248 return new mojom_types.MojomInterface()
3249 ..declData = (new mojom_types.DeclarationData()
3250 ..shortName = 'Regression551'
3251 ..fullIdentifier = 'regression_tests.Regression551')
3252 ..interfaceName = 'Regression551'
3253 ..methods = <int, mojom_types.MojomMethod>{
3254 _Regression551_getName: new mojom_types.MojomMethod()
3255 ..declData = (new mojom_types.DeclarationData()
3256 ..shortName = 'Get')
3257 ..ordinal = _Regression551_getName
3258 ..responseParams = _regressionTestsRegression551GetResponseParams()
3259 ..parameters = _regressionTestsRegression551GetParams(),
3260 };
3261 }
3262
3263 class _Regression551ServiceDescription implements service_describer.ServiceDescr iption {
3264 dynamic getTopLevelInterface([Function responseFactory]) =>
3265 _regressionTestsRegression551();
3266
3267 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
3268 getAllMojomTypeDefinitions()[typeKey];
3269
3270 dynamic getAllTypeDefinitions([Function responseFactory]) =>
3271 getAllMojomTypeDefinitions();
3272 }
3273
2637 abstract class Regression551 { 3274 abstract class Regression551 {
2638 static const String serviceName = null; 3275 static const String serviceName = null;
2639 dynamic get(List<String> keyPrefixes,[Function responseFactory = null]); 3276 dynamic get(List<String> keyPrefixes,[Function responseFactory = null]);
2640 } 3277 }
2641 3278
2642 3279
2643 class _Regression551ProxyImpl extends bindings.Proxy { 3280 class _Regression551ProxyImpl extends bindings.Proxy {
2644 _Regression551ProxyImpl.fromEndpoint( 3281 _Regression551ProxyImpl.fromEndpoint(
2645 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 3282 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
2646 3283
2647 _Regression551ProxyImpl.fromHandle(core.MojoHandle handle) : 3284 _Regression551ProxyImpl.fromHandle(core.MojoHandle handle) :
2648 super.fromHandle(handle); 3285 super.fromHandle(handle);
2649 3286
2650 _Regression551ProxyImpl.unbound() : super.unbound(); 3287 _Regression551ProxyImpl.unbound() : super.unbound();
2651 3288
2652 static _Regression551ProxyImpl newFromEndpoint( 3289 static _Regression551ProxyImpl newFromEndpoint(
2653 core.MojoMessagePipeEndpoint endpoint) { 3290 core.MojoMessagePipeEndpoint endpoint) {
2654 assert(endpoint.setDescription("For _Regression551ProxyImpl")); 3291 assert(endpoint.setDescription("For _Regression551ProxyImpl"));
2655 return new _Regression551ProxyImpl.fromEndpoint(endpoint); 3292 return new _Regression551ProxyImpl.fromEndpoint(endpoint);
2656 } 3293 }
2657 3294
3295 service_describer.ServiceDescription get serviceDescription =>
3296 new _Regression551ServiceDescription();
3297
2658 void handleResponse(bindings.ServiceMessage message) { 3298 void handleResponse(bindings.ServiceMessage message) {
2659 switch (message.header.type) { 3299 switch (message.header.type) {
2660 case _Regression551_getName: 3300 case _Regression551_getName:
2661 var r = Regression551GetResponseParams.deserialize( 3301 var r = Regression551GetResponseParams.deserialize(
2662 message.payload); 3302 message.payload);
2663 if (!message.header.hasRequestId) { 3303 if (!message.header.hasRequestId) {
2664 proxyError("Expected a message with a valid request Id."); 3304 proxyError("Expected a message with a valid request Id.");
2665 return; 3305 return;
2666 } 3306 }
2667 Completer c = completerMap[message.header.requestId]; 3307 Completer c = completerMap[message.header.requestId];
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
2833 assert(_impl == null); 3473 assert(_impl == null);
2834 _impl = d; 3474 _impl = d;
2835 } 3475 }
2836 3476
2837 String toString() { 3477 String toString() {
2838 var superString = super.toString(); 3478 var superString = super.toString();
2839 return "Regression551Stub($superString)"; 3479 return "Regression551Stub($superString)";
2840 } 3480 }
2841 3481
2842 int get version => 0; 3482 int get version => 0;
3483
3484 service_describer.ServiceDescription get serviceDescription =>
3485 new _Regression551ServiceDescription();
2843 } 3486 }
2844 3487
2845 const int _ServiceName_serviceName_Name = 0; 3488 const int _ServiceName_serviceName_Name = 0;
2846 3489
3490 mojom_types.MojomInterface _regressionTestsServiceName() {
3491 return new mojom_types.MojomInterface()
3492 ..declData = (new mojom_types.DeclarationData()
3493 ..shortName = 'ServiceName'
3494 ..fullIdentifier = 'regression_tests.ServiceName')
3495 ..interfaceName = 'ServiceName'
3496 ..methods = <int, mojom_types.MojomMethod>{
3497 _ServiceName_serviceName_Name: new mojom_types.MojomMethod()
3498 ..declData = (new mojom_types.DeclarationData()
3499 ..shortName = 'ServiceName')
3500 ..ordinal = _ServiceName_serviceName_Name
3501 ..responseParams = _regressionTestsServiceNameServiceNameResponseParams( )
3502 ..parameters = _regressionTestsServiceNameServiceNameParams(),
3503 };
3504 }
3505
3506 class _ServiceNameServiceDescription implements service_describer.ServiceDescrip tion {
3507 dynamic getTopLevelInterface([Function responseFactory]) =>
3508 _regressionTestsServiceName();
3509
3510 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
3511 getAllMojomTypeDefinitions()[typeKey];
3512
3513 dynamic getAllTypeDefinitions([Function responseFactory]) =>
3514 getAllMojomTypeDefinitions();
3515 }
3516
2847 abstract class ServiceName { 3517 abstract class ServiceName {
2848 static const String serviceName = null; 3518 static const String serviceName = null;
2849 dynamic serviceName_([Function responseFactory = null]); 3519 dynamic serviceName_([Function responseFactory = null]);
2850 } 3520 }
2851 3521
2852 3522
2853 class _ServiceNameProxyImpl extends bindings.Proxy { 3523 class _ServiceNameProxyImpl extends bindings.Proxy {
2854 _ServiceNameProxyImpl.fromEndpoint( 3524 _ServiceNameProxyImpl.fromEndpoint(
2855 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 3525 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
2856 3526
2857 _ServiceNameProxyImpl.fromHandle(core.MojoHandle handle) : 3527 _ServiceNameProxyImpl.fromHandle(core.MojoHandle handle) :
2858 super.fromHandle(handle); 3528 super.fromHandle(handle);
2859 3529
2860 _ServiceNameProxyImpl.unbound() : super.unbound(); 3530 _ServiceNameProxyImpl.unbound() : super.unbound();
2861 3531
2862 static _ServiceNameProxyImpl newFromEndpoint( 3532 static _ServiceNameProxyImpl newFromEndpoint(
2863 core.MojoMessagePipeEndpoint endpoint) { 3533 core.MojoMessagePipeEndpoint endpoint) {
2864 assert(endpoint.setDescription("For _ServiceNameProxyImpl")); 3534 assert(endpoint.setDescription("For _ServiceNameProxyImpl"));
2865 return new _ServiceNameProxyImpl.fromEndpoint(endpoint); 3535 return new _ServiceNameProxyImpl.fromEndpoint(endpoint);
2866 } 3536 }
2867 3537
3538 service_describer.ServiceDescription get serviceDescription =>
3539 new _ServiceNameServiceDescription();
3540
2868 void handleResponse(bindings.ServiceMessage message) { 3541 void handleResponse(bindings.ServiceMessage message) {
2869 switch (message.header.type) { 3542 switch (message.header.type) {
2870 case _ServiceName_serviceName_Name: 3543 case _ServiceName_serviceName_Name:
2871 var r = ServiceNameServiceNameResponseParams.deserialize( 3544 var r = ServiceNameServiceNameResponseParams.deserialize(
2872 message.payload); 3545 message.payload);
2873 if (!message.header.hasRequestId) { 3546 if (!message.header.hasRequestId) {
2874 proxyError("Expected a message with a valid request Id."); 3547 proxyError("Expected a message with a valid request Id.");
2875 return; 3548 return;
2876 } 3549 }
2877 Completer c = completerMap[message.header.requestId]; 3550 Completer c = completerMap[message.header.requestId];
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
3042 assert(_impl == null); 3715 assert(_impl == null);
3043 _impl = d; 3716 _impl = d;
3044 } 3717 }
3045 3718
3046 String toString() { 3719 String toString() {
3047 var superString = super.toString(); 3720 var superString = super.toString();
3048 return "ServiceNameStub($superString)"; 3721 return "ServiceNameStub($superString)";
3049 } 3722 }
3050 3723
3051 int get version => 0; 3724 int get version => 0;
3725
3726 service_describer.ServiceDescription get serviceDescription =>
3727 new _ServiceNameServiceDescription();
3052 } 3728 }
3053 3729
3054 3730
3731 Map<String, mojom_types.UserDefinedType> _initDescriptions() {
3732 var map = new HashMap<String, mojom_types.UserDefinedType>();
3733 map["regression_tests_EnumWithReference__"] =
3734 new mojom_types.UserDefinedType()
3735 ..enumType = _regressionTestsEnumWithReference();
3736 map["regression_tests_EnumWithLowercase__"] =
3737 new mojom_types.UserDefinedType()
3738 ..enumType = _regressionTestsEnumWithLowercase();
3739 map["regression_tests_EnumWithNumbers__"] =
3740 new mojom_types.UserDefinedType()
3741 ..enumType = _regressionTestsEnumWithNumbers();
3742 map["regression_tests_EnumWithK__"] =
3743 new mojom_types.UserDefinedType()
3744 ..enumType = _regressionTestsEnumWithK();
3745 map["regression_tests_EnumWithINTERNALAllCaps__"] =
3746 new mojom_types.UserDefinedType()
3747 ..enumType = _regressionTestsEnumWithInternalAllCaps();
3748 map["regression_tests_NormalEnum__"] =
3749 new mojom_types.UserDefinedType()
3750 ..enumType = _regressionTestsNormalEnum();
3751 map["regression_tests_CamelCaseTestEnum__"] =
3752 new mojom_types.UserDefinedType()
3753 ..enumType = _regressionTestsCamelCaseTestEnum();
3754 map["regression_tests_Edge__"] =
3755 new mojom_types.UserDefinedType()
3756 ..structType = _regressionTestsEdge();
3757 map["regression_tests_Vertex__"] =
3758 new mojom_types.UserDefinedType()
3759 ..structType = _regressionTestsVertex();
3760 map["regression_tests_EmptyStruct__"] =
3761 new mojom_types.UserDefinedType()
3762 ..structType = _regressionTestsEmptyStruct();
3763 map["regression_tests_A__"] =
3764 new mojom_types.UserDefinedType()
3765 ..structType = _regressionTestsA();
3766 map["regression_tests_B__"] =
3767 new mojom_types.UserDefinedType()
3768 ..structType = _regressionTestsB();
3769 map["regression_tests_StructWithHandleCalledHandles__"] =
3770 new mojom_types.UserDefinedType()
3771 ..structType = _regressionTestsStructWithHandleCalledHandles();
3772 map["regression_tests_StructWithArrayOfHandlesCalledHandles__"] =
3773 new mojom_types.UserDefinedType()
3774 ..structType = _regressionTestsStructWithArrayOfHandlesCalledHandles();
3775 map["regression_tests_StructWithInterfaceCalledHandles__"] =
3776 new mojom_types.UserDefinedType()
3777 ..structType = _regressionTestsStructWithInterfaceCalledHandles();
3778 map["regression_tests_ContainsArrayOfEnum__"] =
3779 new mojom_types.UserDefinedType()
3780 ..structType = _regressionTestsContainsArrayOfEnum();
3781 map["regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyRes ponse_Params__"] =
3782 new mojom_types.UserDefinedType()
3783 ..structType = _regressionTestsCheckMethodWithEmptyResponseWithoutParamete rAndEmptyResponseParams();
3784 map["regression_tests_CheckMethodWithEmptyResponse_WithoutParameterAndEmptyRes ponse_ResponseParams__"] =
3785 new mojom_types.UserDefinedType()
3786 ..structType = _regressionTestsCheckMethodWithEmptyResponseWithoutParamete rAndEmptyResponseResponseParams();
3787 map["regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyRespon se_Params__"] =
3788 new mojom_types.UserDefinedType()
3789 ..structType = _regressionTestsCheckMethodWithEmptyResponseWithParameterAn dEmptyResponseParams();
3790 map["regression_tests_CheckMethodWithEmptyResponse_WithParameterAndEmptyRespon se_ResponseParams__"] =
3791 new mojom_types.UserDefinedType()
3792 ..structType = _regressionTestsCheckMethodWithEmptyResponseWithParameterAn dEmptyResponseResponseParams();
3793 map["regression_tests_CheckNameCollision_WithNameCollision_Params__"] =
3794 new mojom_types.UserDefinedType()
3795 ..structType = _regressionTestsCheckNameCollisionWithNameCollisionParams() ;
3796 map["regression_tests_CheckNameCollision_WithNameCollision_ResponseParams__"] =
3797 new mojom_types.UserDefinedType()
3798 ..structType = _regressionTestsCheckNameCollisionWithNameCollisionResponse Params();
3799 map["regression_tests_CheckEnumCaps_SetEnumWithINTERNALAllCaps_Params__"] =
3800 new mojom_types.UserDefinedType()
3801 ..structType = _regressionTestsCheckEnumCapsSetEnumWithInternalAllCapsPara ms();
3802 map["regression_tests_TestInterface_SomeMessage_Params__"] =
3803 new mojom_types.UserDefinedType()
3804 ..structType = _regressionTestsTestInterfaceSomeMessageParams();
3805 map["regression_tests_Regression551_Get_Params__"] =
3806 new mojom_types.UserDefinedType()
3807 ..structType = _regressionTestsRegression551GetParams();
3808 map["regression_tests_Regression551_Get_ResponseParams__"] =
3809 new mojom_types.UserDefinedType()
3810 ..structType = _regressionTestsRegression551GetResponseParams();
3811 map["regression_tests_ServiceName_serviceName_Params__"] =
3812 new mojom_types.UserDefinedType()
3813 ..structType = _regressionTestsServiceNameServiceNameParams();
3814 map["regression_tests_ServiceName_serviceName_ResponseParams__"] =
3815 new mojom_types.UserDefinedType()
3816 ..structType = _regressionTestsServiceNameServiceNameResponseParams();
3817 map["regression_tests_CheckMethodWithEmptyResponse__"] =
3818 new mojom_types.UserDefinedType()
3819 ..interfaceType = _regressionTestsCheckMethodWithEmptyResponse();
3820 map["regression_tests_CheckNameCollision__"] =
3821 new mojom_types.UserDefinedType()
3822 ..interfaceType = _regressionTestsCheckNameCollision();
3823 map["regression_tests_CheckEnumCaps__"] =
3824 new mojom_types.UserDefinedType()
3825 ..interfaceType = _regressionTestsCheckEnumCaps();
3826 map["regression_tests_TestInterface__"] =
3827 new mojom_types.UserDefinedType()
3828 ..interfaceType = _regressionTestsTestInterface();
3829 map["regression_tests_Regression551__"] =
3830 new mojom_types.UserDefinedType()
3831 ..interfaceType = _regressionTestsRegression551();
3832 map["regression_tests_ServiceName__"] =
3833 new mojom_types.UserDefinedType()
3834 ..interfaceType = _regressionTestsServiceName();
3835 return map;
3836 }
3837
3838 var _mojomDesc;
3839 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
3840 if (_mojomDesc == null) {
3841 _mojomDesc = _initDescriptions();
3842 }
3843 return _mojomDesc;
3844 }
3845
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698