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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/tracing/tracing.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View 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 tracing_mojom; 5 library tracing_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 15
13 16
14 class _TraceProviderStartTracingParams extends bindings.Struct { 17 class _TraceProviderStartTracingParams extends bindings.Struct {
15 static const List<bindings.StructDataHeader> kVersions = const [ 18 static const List<bindings.StructDataHeader> kVersions = const [
16 const bindings.StructDataHeader(24, 0) 19 const bindings.StructDataHeader(24, 0)
17 ]; 20 ];
18 String categories = null; 21 String categories = null;
19 Object recorder = null; 22 Object recorder = null;
20 23
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 return "_TraceProviderStartTracingParams(" 79 return "_TraceProviderStartTracingParams("
77 "categories: $categories" ", " 80 "categories: $categories" ", "
78 "recorder: $recorder" ")"; 81 "recorder: $recorder" ")";
79 } 82 }
80 83
81 Map toJson() { 84 Map toJson() {
82 throw new bindings.MojoCodecError( 85 throw new bindings.MojoCodecError(
83 'Object containing handles cannot be encoded to JSON.'); 86 'Object containing handles cannot be encoded to JSON.');
84 } 87 }
85 } 88 }
89 mojom_types.MojomStruct _tracing_TraceProvider_StartTracing_Params__() {
90 return new mojom_types.MojomStruct()
91 ..declData = (new mojom_types.DeclarationData()
92 ..shortName = '_TraceProviderStartTracingParams'
93 ..fullIdentifier = 'tracing._TraceProviderStartTracingParams')
94 ..fields = <mojom_types.StructField>[
95 new mojom_types.StructField()
96 ..declData = (new mojom_types.DeclarationData()..shortName = 'Categories ')
97 ..type = (new mojom_types.Type()
98 ..stringType = (new mojom_types.StringType()..nullable = false)),
99
100 new mojom_types.StructField()
101 ..declData = (new mojom_types.DeclarationData()..shortName = 'Recorder')
102 ..type = (new mojom_types.Type()
103 ..typeReference = (new mojom_types.TypeReference()
104
105 ..identifier = '_tracing_TraceRecorder__'
106 ..typeKey = '_tracing_TraceRecorder__'
107 )),
108 ];
109 }
86 110
87 111
88 class _TraceProviderStopTracingParams extends bindings.Struct { 112 class _TraceProviderStopTracingParams extends bindings.Struct {
89 static const List<bindings.StructDataHeader> kVersions = const [ 113 static const List<bindings.StructDataHeader> kVersions = const [
90 const bindings.StructDataHeader(8, 0) 114 const bindings.StructDataHeader(8, 0)
91 ]; 115 ];
92 116
93 _TraceProviderStopTracingParams() : super(kVersions.last.size); 117 _TraceProviderStopTracingParams() : super(kVersions.last.size);
94 118
95 static _TraceProviderStopTracingParams deserialize(bindings.Message message) { 119 static _TraceProviderStopTracingParams deserialize(bindings.Message message) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 158
135 String toString() { 159 String toString() {
136 return "_TraceProviderStopTracingParams("")"; 160 return "_TraceProviderStopTracingParams("")";
137 } 161 }
138 162
139 Map toJson() { 163 Map toJson() {
140 Map map = new Map(); 164 Map map = new Map();
141 return map; 165 return map;
142 } 166 }
143 } 167 }
168 mojom_types.MojomStruct _tracing_TraceProvider_StopTracing_Params__() {
169 return new mojom_types.MojomStruct()
170 ..declData = (new mojom_types.DeclarationData()
171 ..shortName = '_TraceProviderStopTracingParams'
172 ..fullIdentifier = 'tracing._TraceProviderStopTracingParams')
173 ..fields = <mojom_types.StructField>[];
174 }
144 175
145 176
146 class _TraceRecorderRecordParams extends bindings.Struct { 177 class _TraceRecorderRecordParams extends bindings.Struct {
147 static const List<bindings.StructDataHeader> kVersions = const [ 178 static const List<bindings.StructDataHeader> kVersions = const [
148 const bindings.StructDataHeader(16, 0) 179 const bindings.StructDataHeader(16, 0)
149 ]; 180 ];
150 String json = null; 181 String json = null;
151 182
152 _TraceRecorderRecordParams() : super(kVersions.last.size); 183 _TraceRecorderRecordParams() : super(kVersions.last.size);
153 184
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 return "_TraceRecorderRecordParams(" 232 return "_TraceRecorderRecordParams("
202 "json: $json" ")"; 233 "json: $json" ")";
203 } 234 }
204 235
205 Map toJson() { 236 Map toJson() {
206 Map map = new Map(); 237 Map map = new Map();
207 map["json"] = json; 238 map["json"] = json;
208 return map; 239 return map;
209 } 240 }
210 } 241 }
242 mojom_types.MojomStruct _tracing_TraceRecorder_Record_Params__() {
243 return new mojom_types.MojomStruct()
244 ..declData = (new mojom_types.DeclarationData()
245 ..shortName = '_TraceRecorderRecordParams'
246 ..fullIdentifier = 'tracing._TraceRecorderRecordParams')
247 ..fields = <mojom_types.StructField>[
248 new mojom_types.StructField()
249 ..declData = (new mojom_types.DeclarationData()..shortName = 'Json')
250 ..type = (new mojom_types.Type()
251 ..stringType = (new mojom_types.StringType()..nullable = false)),
252 ];
253 }
211 254
212 255
213 class _TraceCollectorStartParams extends bindings.Struct { 256 class _TraceCollectorStartParams extends bindings.Struct {
214 static const List<bindings.StructDataHeader> kVersions = const [ 257 static const List<bindings.StructDataHeader> kVersions = const [
215 const bindings.StructDataHeader(24, 0) 258 const bindings.StructDataHeader(24, 0)
216 ]; 259 ];
217 core.MojoDataPipeProducer stream = null; 260 core.MojoDataPipeProducer stream = null;
218 String categories = null; 261 String categories = null;
219 262
220 _TraceCollectorStartParams() : super(kVersions.last.size); 263 _TraceCollectorStartParams() : super(kVersions.last.size);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 return "_TraceCollectorStartParams(" 318 return "_TraceCollectorStartParams("
276 "stream: $stream" ", " 319 "stream: $stream" ", "
277 "categories: $categories" ")"; 320 "categories: $categories" ")";
278 } 321 }
279 322
280 Map toJson() { 323 Map toJson() {
281 throw new bindings.MojoCodecError( 324 throw new bindings.MojoCodecError(
282 'Object containing handles cannot be encoded to JSON.'); 325 'Object containing handles cannot be encoded to JSON.');
283 } 326 }
284 } 327 }
328 mojom_types.MojomStruct _tracing_TraceCollector_Start_Params__() {
329 return new mojom_types.MojomStruct()
330 ..declData = (new mojom_types.DeclarationData()
331 ..shortName = '_TraceCollectorStartParams'
332 ..fullIdentifier = 'tracing._TraceCollectorStartParams')
333 ..fields = <mojom_types.StructField>[
334 new mojom_types.StructField()
335 ..declData = (new mojom_types.DeclarationData()..shortName = 'Stream')
336 ..type = (new mojom_types.Type()
337 ..handleType = (new mojom_types.HandleType()
338 ..kind = mojom_types.HandleTypeKind.dataPipeProducer
339 ..nullable = false)),
340
341 new mojom_types.StructField()
342 ..declData = (new mojom_types.DeclarationData()..shortName = 'Categories ')
343 ..type = (new mojom_types.Type()
344 ..stringType = (new mojom_types.StringType()..nullable = false)),
345 ];
346 }
285 347
286 348
287 class _TraceCollectorStopAndFlushParams extends bindings.Struct { 349 class _TraceCollectorStopAndFlushParams extends bindings.Struct {
288 static const List<bindings.StructDataHeader> kVersions = const [ 350 static const List<bindings.StructDataHeader> kVersions = const [
289 const bindings.StructDataHeader(8, 0) 351 const bindings.StructDataHeader(8, 0)
290 ]; 352 ];
291 353
292 _TraceCollectorStopAndFlushParams() : super(kVersions.last.size); 354 _TraceCollectorStopAndFlushParams() : super(kVersions.last.size);
293 355
294 static _TraceCollectorStopAndFlushParams deserialize(bindings.Message message) { 356 static _TraceCollectorStopAndFlushParams deserialize(bindings.Message message) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 395
334 String toString() { 396 String toString() {
335 return "_TraceCollectorStopAndFlushParams("")"; 397 return "_TraceCollectorStopAndFlushParams("")";
336 } 398 }
337 399
338 Map toJson() { 400 Map toJson() {
339 Map map = new Map(); 401 Map map = new Map();
340 return map; 402 return map;
341 } 403 }
342 } 404 }
405 mojom_types.MojomStruct _tracing_TraceCollector_StopAndFlush_Params__() {
406 return new mojom_types.MojomStruct()
407 ..declData = (new mojom_types.DeclarationData()
408 ..shortName = '_TraceCollectorStopAndFlushParams'
409 ..fullIdentifier = 'tracing._TraceCollectorStopAndFlushParams')
410 ..fields = <mojom_types.StructField>[];
411 }
412
343 413
344 const int _TraceProvider_startTracingName = 0; 414 const int _TraceProvider_startTracingName = 0;
345 const int _TraceProvider_stopTracingName = 1; 415 const int _TraceProvider_stopTracingName = 1;
346 416
417 mojom_types.MojomInterface _tracing_TraceProvider__() {
418 return new mojom_types.MojomInterface()
419 ..declData = (new mojom_types.DeclarationData()
420 ..shortName = 'TraceProvider'
421 ..fullIdentifier = 'tracing.TraceProvider')
422 ..interfaceName = 'TraceProvider'
423 ..methods = <int, mojom_types.MojomMethod>{
424 _TraceProvider_startTracingName: new mojom_types.MojomMethod()
425 ..declData = (new mojom_types.DeclarationData()..shortName = 'StartTraci ng')
426 ..ordinal = _TraceProvider_startTracingName..parameters = _tracing_Trace Provider_StartTracing_Params__(),_TraceProvider_stopTracingName: new mojom_types .MojomMethod()
427 ..declData = (new mojom_types.DeclarationData()..shortName = 'StopTracin g')
428 ..ordinal = _TraceProvider_stopTracingName..parameters = _tracing_TraceP rovider_StopTracing_Params__(),
429 };
430 }
431
432 class _TraceProviderServiceDescription implements service_describer.ServiceDescr iption {
433 dynamic getTopLevelInterface([Function responseFactory = null]) {
434 return _tracing_TraceProvider__();
435 }
436 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
437 return getAllMojomTypeDefinitions()[typeKey];
438 }
439 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
440 return getAllMojomTypeDefinitions();
441 }
442 }
443
347 abstract class TraceProvider { 444 abstract class TraceProvider {
348 static const String serviceName = "tracing::TraceProvider"; 445 static const String serviceName = "tracing::TraceProvider";
349 void startTracing(String categories, Object recorder); 446 void startTracing(String categories, Object recorder);
350 void stopTracing(); 447 void stopTracing();
351 } 448 }
352 449
353 450
354 class _TraceProviderProxyImpl extends bindings.Proxy { 451 class _TraceProviderProxyImpl extends bindings.Proxy {
355 _TraceProviderProxyImpl.fromEndpoint( 452 _TraceProviderProxyImpl.fromEndpoint(
356 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 453 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
357 454
358 _TraceProviderProxyImpl.fromHandle(core.MojoHandle handle) : 455 _TraceProviderProxyImpl.fromHandle(core.MojoHandle handle) :
359 super.fromHandle(handle); 456 super.fromHandle(handle);
360 457
361 _TraceProviderProxyImpl.unbound() : super.unbound(); 458 _TraceProviderProxyImpl.unbound() : super.unbound();
362 459
363 static _TraceProviderProxyImpl newFromEndpoint( 460 static _TraceProviderProxyImpl newFromEndpoint(
364 core.MojoMessagePipeEndpoint endpoint) { 461 core.MojoMessagePipeEndpoint endpoint) {
365 assert(endpoint.setDescription("For _TraceProviderProxyImpl")); 462 assert(endpoint.setDescription("For _TraceProviderProxyImpl"));
366 return new _TraceProviderProxyImpl.fromEndpoint(endpoint); 463 return new _TraceProviderProxyImpl.fromEndpoint(endpoint);
367 } 464 }
368 465
466 service_describer.ServiceDescription get serviceDescription =>
467 new _TraceProviderServiceDescription();
468
369 void handleResponse(bindings.ServiceMessage message) { 469 void handleResponse(bindings.ServiceMessage message) {
370 switch (message.header.type) { 470 switch (message.header.type) {
371 default: 471 default:
372 proxyError("Unexpected message type: ${message.header.type}"); 472 proxyError("Unexpected message type: ${message.header.type}");
373 close(immediate: true); 473 close(immediate: true);
374 break; 474 break;
375 } 475 }
376 } 476 }
377 477
378 String toString() { 478 String toString() {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 assert(_impl == null); 616 assert(_impl == null);
517 _impl = d; 617 _impl = d;
518 } 618 }
519 619
520 String toString() { 620 String toString() {
521 var superString = super.toString(); 621 var superString = super.toString();
522 return "TraceProviderStub($superString)"; 622 return "TraceProviderStub($superString)";
523 } 623 }
524 624
525 int get version => 0; 625 int get version => 0;
626
627
628 service_describer.ServiceDescription get serviceDescription =>
629 new _TraceProviderServiceDescription();
526 } 630 }
527 631
528 const int _TraceRecorder_recordName = 0; 632 const int _TraceRecorder_recordName = 0;
529 633
634 mojom_types.MojomInterface _tracing_TraceRecorder__() {
635 return new mojom_types.MojomInterface()
636 ..declData = (new mojom_types.DeclarationData()
637 ..shortName = 'TraceRecorder'
638 ..fullIdentifier = 'tracing.TraceRecorder')
639 ..interfaceName = 'TraceRecorder'
640 ..methods = <int, mojom_types.MojomMethod>{
641 _TraceRecorder_recordName: new mojom_types.MojomMethod()
642 ..declData = (new mojom_types.DeclarationData()..shortName = 'Record')
643 ..ordinal = _TraceRecorder_recordName..parameters = _tracing_TraceRecord er_Record_Params__(),
644 };
645 }
646
647 class _TraceRecorderServiceDescription implements service_describer.ServiceDescr iption {
648 dynamic getTopLevelInterface([Function responseFactory = null]) {
649 return _tracing_TraceRecorder__();
650 }
651 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
652 return getAllMojomTypeDefinitions()[typeKey];
653 }
654 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
655 return getAllMojomTypeDefinitions();
656 }
657 }
658
530 abstract class TraceRecorder { 659 abstract class TraceRecorder {
531 static const String serviceName = null; 660 static const String serviceName = null;
532 void record(String json); 661 void record(String json);
533 } 662 }
534 663
535 664
536 class _TraceRecorderProxyImpl extends bindings.Proxy { 665 class _TraceRecorderProxyImpl extends bindings.Proxy {
537 _TraceRecorderProxyImpl.fromEndpoint( 666 _TraceRecorderProxyImpl.fromEndpoint(
538 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 667 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
539 668
540 _TraceRecorderProxyImpl.fromHandle(core.MojoHandle handle) : 669 _TraceRecorderProxyImpl.fromHandle(core.MojoHandle handle) :
541 super.fromHandle(handle); 670 super.fromHandle(handle);
542 671
543 _TraceRecorderProxyImpl.unbound() : super.unbound(); 672 _TraceRecorderProxyImpl.unbound() : super.unbound();
544 673
545 static _TraceRecorderProxyImpl newFromEndpoint( 674 static _TraceRecorderProxyImpl newFromEndpoint(
546 core.MojoMessagePipeEndpoint endpoint) { 675 core.MojoMessagePipeEndpoint endpoint) {
547 assert(endpoint.setDescription("For _TraceRecorderProxyImpl")); 676 assert(endpoint.setDescription("For _TraceRecorderProxyImpl"));
548 return new _TraceRecorderProxyImpl.fromEndpoint(endpoint); 677 return new _TraceRecorderProxyImpl.fromEndpoint(endpoint);
549 } 678 }
550 679
680 service_describer.ServiceDescription get serviceDescription =>
681 new _TraceRecorderServiceDescription();
682
551 void handleResponse(bindings.ServiceMessage message) { 683 void handleResponse(bindings.ServiceMessage message) {
552 switch (message.header.type) { 684 switch (message.header.type) {
553 default: 685 default:
554 proxyError("Unexpected message type: ${message.header.type}"); 686 proxyError("Unexpected message type: ${message.header.type}");
555 close(immediate: true); 687 close(immediate: true);
556 break; 688 break;
557 } 689 }
558 } 690 }
559 691
560 String toString() { 692 String toString() {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 assert(_impl == null); 816 assert(_impl == null);
685 _impl = d; 817 _impl = d;
686 } 818 }
687 819
688 String toString() { 820 String toString() {
689 var superString = super.toString(); 821 var superString = super.toString();
690 return "TraceRecorderStub($superString)"; 822 return "TraceRecorderStub($superString)";
691 } 823 }
692 824
693 int get version => 0; 825 int get version => 0;
826
827
828 service_describer.ServiceDescription get serviceDescription =>
829 new _TraceRecorderServiceDescription();
694 } 830 }
695 831
696 const int _TraceCollector_startName = 0; 832 const int _TraceCollector_startName = 0;
697 const int _TraceCollector_stopAndFlushName = 1; 833 const int _TraceCollector_stopAndFlushName = 1;
698 834
835 mojom_types.MojomInterface _tracing_TraceCollector__() {
836 return new mojom_types.MojomInterface()
837 ..declData = (new mojom_types.DeclarationData()
838 ..shortName = 'TraceCollector'
839 ..fullIdentifier = 'tracing.TraceCollector')
840 ..interfaceName = 'TraceCollector'
841 ..methods = <int, mojom_types.MojomMethod>{
842 _TraceCollector_startName: new mojom_types.MojomMethod()
843 ..declData = (new mojom_types.DeclarationData()..shortName = 'Start')
844 ..ordinal = _TraceCollector_startName..parameters = _tracing_TraceCollec tor_Start_Params__(),_TraceCollector_stopAndFlushName: new mojom_types.MojomMeth od()
845 ..declData = (new mojom_types.DeclarationData()..shortName = 'StopAndFlu sh')
846 ..ordinal = _TraceCollector_stopAndFlushName..parameters = _tracing_Trac eCollector_StopAndFlush_Params__(),
847 };
848 }
849
850 class _TraceCollectorServiceDescription implements service_describer.ServiceDesc ription {
851 dynamic getTopLevelInterface([Function responseFactory = null]) {
852 return _tracing_TraceCollector__();
853 }
854 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
855 return getAllMojomTypeDefinitions()[typeKey];
856 }
857 dynamic getAllTypeDefinitions([Function responseFactory = null]) {
858 return getAllMojomTypeDefinitions();
859 }
860 }
861
699 abstract class TraceCollector { 862 abstract class TraceCollector {
700 static const String serviceName = "tracing::TraceCollector"; 863 static const String serviceName = "tracing::TraceCollector";
701 void start(core.MojoDataPipeProducer stream, String categories); 864 void start(core.MojoDataPipeProducer stream, String categories);
702 void stopAndFlush(); 865 void stopAndFlush();
703 } 866 }
704 867
705 868
706 class _TraceCollectorProxyImpl extends bindings.Proxy { 869 class _TraceCollectorProxyImpl extends bindings.Proxy {
707 _TraceCollectorProxyImpl.fromEndpoint( 870 _TraceCollectorProxyImpl.fromEndpoint(
708 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 871 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
709 872
710 _TraceCollectorProxyImpl.fromHandle(core.MojoHandle handle) : 873 _TraceCollectorProxyImpl.fromHandle(core.MojoHandle handle) :
711 super.fromHandle(handle); 874 super.fromHandle(handle);
712 875
713 _TraceCollectorProxyImpl.unbound() : super.unbound(); 876 _TraceCollectorProxyImpl.unbound() : super.unbound();
714 877
715 static _TraceCollectorProxyImpl newFromEndpoint( 878 static _TraceCollectorProxyImpl newFromEndpoint(
716 core.MojoMessagePipeEndpoint endpoint) { 879 core.MojoMessagePipeEndpoint endpoint) {
717 assert(endpoint.setDescription("For _TraceCollectorProxyImpl")); 880 assert(endpoint.setDescription("For _TraceCollectorProxyImpl"));
718 return new _TraceCollectorProxyImpl.fromEndpoint(endpoint); 881 return new _TraceCollectorProxyImpl.fromEndpoint(endpoint);
719 } 882 }
720 883
884 service_describer.ServiceDescription get serviceDescription =>
885 new _TraceCollectorServiceDescription();
886
721 void handleResponse(bindings.ServiceMessage message) { 887 void handleResponse(bindings.ServiceMessage message) {
722 switch (message.header.type) { 888 switch (message.header.type) {
723 default: 889 default:
724 proxyError("Unexpected message type: ${message.header.type}"); 890 proxyError("Unexpected message type: ${message.header.type}");
725 close(immediate: true); 891 close(immediate: true);
726 break; 892 break;
727 } 893 }
728 } 894 }
729 895
730 String toString() { 896 String toString() {
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 assert(_impl == null); 1034 assert(_impl == null);
869 _impl = d; 1035 _impl = d;
870 } 1036 }
871 1037
872 String toString() { 1038 String toString() {
873 var superString = super.toString(); 1039 var superString = super.toString();
874 return "TraceCollectorStub($superString)"; 1040 return "TraceCollectorStub($superString)";
875 } 1041 }
876 1042
877 int get version => 0; 1043 int get version => 0;
1044
1045
1046 service_describer.ServiceDescription get serviceDescription =>
1047 new _TraceCollectorServiceDescription();
878 } 1048 }
879 1049
880 1050
1051
1052
1053
1054
1055
1056 Map<String, mojom_types.UserDefinedType> _initDescriptions() {
1057 var map = new HashMap<String, mojom_types.UserDefinedType>();
1058 map["_tracing_TraceProvider_StartTracing_Params__"] =
1059 new mojom_types.UserDefinedType()
1060 ..structType = _tracing_TraceProvider_StartTracing_Params__();
1061 map["_tracing_TraceProvider_StopTracing_Params__"] =
1062 new mojom_types.UserDefinedType()
1063 ..structType = _tracing_TraceProvider_StopTracing_Params__();
1064 map["_tracing_TraceRecorder_Record_Params__"] =
1065 new mojom_types.UserDefinedType()
1066 ..structType = _tracing_TraceRecorder_Record_Params__();
1067 map["_tracing_TraceCollector_Start_Params__"] =
1068 new mojom_types.UserDefinedType()
1069 ..structType = _tracing_TraceCollector_Start_Params__();
1070 map["_tracing_TraceCollector_StopAndFlush_Params__"] =
1071 new mojom_types.UserDefinedType()
1072 ..structType = _tracing_TraceCollector_StopAndFlush_Params__();
1073 map["_tracing_TraceProvider__"] =
1074 new mojom_types.UserDefinedType()
1075 ..interfaceType = _tracing_TraceProvider__();
1076 map["_tracing_TraceRecorder__"] =
1077 new mojom_types.UserDefinedType()
1078 ..interfaceType = _tracing_TraceRecorder__();
1079 map["_tracing_TraceCollector__"] =
1080 new mojom_types.UserDefinedType()
1081 ..interfaceType = _tracing_TraceCollector__();
1082
1083 return map;
1084 }
1085
1086 var _MojomDesc;
1087 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
1088 if (_MojomDesc == null) {
1089 _MojomDesc = _initDescriptions();
1090 }
1091 return _MojomDesc;
1092 }
1093
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698