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

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

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 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 view_associates_mojom; 5 library view_associates_mojom;
6 import 'dart:async'; 6 import 'dart:async';
7 import 'package:mojo/bindings.dart' as bindings; 7 import 'package:mojo/bindings.dart' as bindings;
8 import 'package:mojo/core.dart' as core; 8 import 'package:mojo/core.dart' as core;
9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer; 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic e_describer;
10 import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom ; 10 import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom ;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 Map toJson() { 127 Map toJson() {
128 Map map = new Map(); 128 Map map = new Map();
129 map["viewServiceNames"] = viewServiceNames; 129 map["viewServiceNames"] = viewServiceNames;
130 map["viewTreeServiceNames"] = viewTreeServiceNames; 130 map["viewTreeServiceNames"] = viewTreeServiceNames;
131 return map; 131 return map;
132 } 132 }
133 } 133 }
134 134
135 135
136
137
138 class _ViewAssociateConnectParams extends bindings.Struct { 136 class _ViewAssociateConnectParams extends bindings.Struct {
139 static const List<bindings.StructDataHeader> kVersions = const [ 137 static const List<bindings.StructDataHeader> kVersions = const [
140 const bindings.StructDataHeader(16, 0) 138 const bindings.StructDataHeader(16, 0)
141 ]; 139 ];
142 Object inspector = null; 140 Object inspector = null;
143 141
144 _ViewAssociateConnectParams() : super(kVersions.last.size); 142 _ViewAssociateConnectParams() : super(kVersions.last.size);
145 143
146 static _ViewAssociateConnectParams deserialize(bindings.Message message) { 144 static _ViewAssociateConnectParams deserialize(bindings.Message message) {
147 var decoder = new bindings.Decoder(message); 145 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 "inspector: $inspector" ")"; 197 "inspector: $inspector" ")";
200 } 198 }
201 199
202 Map toJson() { 200 Map toJson() {
203 throw new bindings.MojoCodecError( 201 throw new bindings.MojoCodecError(
204 'Object containing handles cannot be encoded to JSON.'); 202 'Object containing handles cannot be encoded to JSON.');
205 } 203 }
206 } 204 }
207 205
208 206
209
210
211 class ViewAssociateConnectResponseParams extends bindings.Struct { 207 class ViewAssociateConnectResponseParams extends bindings.Struct {
212 static const List<bindings.StructDataHeader> kVersions = const [ 208 static const List<bindings.StructDataHeader> kVersions = const [
213 const bindings.StructDataHeader(16, 0) 209 const bindings.StructDataHeader(16, 0)
214 ]; 210 ];
215 ViewAssociateInfo info = null; 211 ViewAssociateInfo info = null;
216 212
217 ViewAssociateConnectResponseParams() : super(kVersions.last.size); 213 ViewAssociateConnectResponseParams() : super(kVersions.last.size);
218 214
219 static ViewAssociateConnectResponseParams deserialize(bindings.Message message ) { 215 static ViewAssociateConnectResponseParams deserialize(bindings.Message message ) {
220 var decoder = new bindings.Decoder(message); 216 var decoder = new bindings.Decoder(message);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 } 270 }
275 271
276 Map toJson() { 272 Map toJson() {
277 Map map = new Map(); 273 Map map = new Map();
278 map["info"] = info; 274 map["info"] = info;
279 return map; 275 return map;
280 } 276 }
281 } 277 }
282 278
283 279
284
285
286 class _ViewAssociateConnectToViewServiceParams extends bindings.Struct { 280 class _ViewAssociateConnectToViewServiceParams extends bindings.Struct {
287 static const List<bindings.StructDataHeader> kVersions = const [ 281 static const List<bindings.StructDataHeader> kVersions = const [
288 const bindings.StructDataHeader(32, 0) 282 const bindings.StructDataHeader(32, 0)
289 ]; 283 ];
290 views_mojom.ViewToken viewToken = null; 284 views_mojom.ViewToken viewToken = null;
291 String serviceName_ = null; 285 String serviceName_ = null;
292 core.MojoMessagePipeEndpoint pipe = null; 286 core.MojoMessagePipeEndpoint pipe = null;
293 287
294 _ViewAssociateConnectToViewServiceParams() : super(kVersions.last.size); 288 _ViewAssociateConnectToViewServiceParams() : super(kVersions.last.size);
295 289
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 "pipe: $pipe" ")"; 368 "pipe: $pipe" ")";
375 } 369 }
376 370
377 Map toJson() { 371 Map toJson() {
378 throw new bindings.MojoCodecError( 372 throw new bindings.MojoCodecError(
379 'Object containing handles cannot be encoded to JSON.'); 373 'Object containing handles cannot be encoded to JSON.');
380 } 374 }
381 } 375 }
382 376
383 377
384
385
386 class _ViewAssociateConnectToViewTreeServiceParams extends bindings.Struct { 378 class _ViewAssociateConnectToViewTreeServiceParams extends bindings.Struct {
387 static const List<bindings.StructDataHeader> kVersions = const [ 379 static const List<bindings.StructDataHeader> kVersions = const [
388 const bindings.StructDataHeader(32, 0) 380 const bindings.StructDataHeader(32, 0)
389 ]; 381 ];
390 view_trees_mojom.ViewTreeToken viewTreeToken = null; 382 view_trees_mojom.ViewTreeToken viewTreeToken = null;
391 String serviceName_ = null; 383 String serviceName_ = null;
392 core.MojoMessagePipeEndpoint pipe = null; 384 core.MojoMessagePipeEndpoint pipe = null;
393 385
394 _ViewAssociateConnectToViewTreeServiceParams() : super(kVersions.last.size); 386 _ViewAssociateConnectToViewTreeServiceParams() : super(kVersions.last.size);
395 387
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 "serviceName_: $serviceName_" ", " 465 "serviceName_: $serviceName_" ", "
474 "pipe: $pipe" ")"; 466 "pipe: $pipe" ")";
475 } 467 }
476 468
477 Map toJson() { 469 Map toJson() {
478 throw new bindings.MojoCodecError( 470 throw new bindings.MojoCodecError(
479 'Object containing handles cannot be encoded to JSON.'); 471 'Object containing handles cannot be encoded to JSON.');
480 } 472 }
481 } 473 }
482 474
483
484
485
486 const int _ViewAssociate_connectName = 0; 475 const int _ViewAssociate_connectName = 0;
487 const int _ViewAssociate_connectToViewServiceName = 1; 476 const int _ViewAssociate_connectToViewServiceName = 1;
488 const int _ViewAssociate_connectToViewTreeServiceName = 2; 477 const int _ViewAssociate_connectToViewTreeServiceName = 2;
489 478
490
491
492 class _ViewAssociateServiceDescription implements service_describer.ServiceDescr iption { 479 class _ViewAssociateServiceDescription implements service_describer.ServiceDescr iption {
493 dynamic getTopLevelInterface([Function responseFactory]) => 480 dynamic getTopLevelInterface([Function responseFactory]) =>
494 responseFactory(null); 481 responseFactory(null);
495 482
496 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 483 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
497 responseFactory(null); 484 responseFactory(null);
498 485
499 dynamic getAllTypeDefinitions([Function responseFactory]) => 486 dynamic getAllTypeDefinitions([Function responseFactory]) =>
500 responseFactory(null); 487 responseFactory(null);
501 } 488 }
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
747 static service_describer.ServiceDescription _cachedServiceDescription; 734 static service_describer.ServiceDescription _cachedServiceDescription;
748 static service_describer.ServiceDescription get serviceDescription { 735 static service_describer.ServiceDescription get serviceDescription {
749 if (_cachedServiceDescription == null) { 736 if (_cachedServiceDescription == null) {
750 _cachedServiceDescription = new _ViewAssociateServiceDescription(); 737 _cachedServiceDescription = new _ViewAssociateServiceDescription();
751 } 738 }
752 return _cachedServiceDescription; 739 return _cachedServiceDescription;
753 } 740 }
754 } 741 }
755 742
756 743
757
758
759 class _ViewInspectorServiceDescription implements service_describer.ServiceDescr iption { 744 class _ViewInspectorServiceDescription implements service_describer.ServiceDescr iption {
760 dynamic getTopLevelInterface([Function responseFactory]) => 745 dynamic getTopLevelInterface([Function responseFactory]) =>
761 responseFactory(null); 746 responseFactory(null);
762 747
763 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 748 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
764 responseFactory(null); 749 responseFactory(null);
765 750
766 dynamic getAllTypeDefinitions([Function responseFactory]) => 751 dynamic getAllTypeDefinitions([Function responseFactory]) =>
767 responseFactory(null); 752 responseFactory(null);
768 } 753 }
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
922 static service_describer.ServiceDescription get serviceDescription { 907 static service_describer.ServiceDescription get serviceDescription {
923 if (_cachedServiceDescription == null) { 908 if (_cachedServiceDescription == null) {
924 _cachedServiceDescription = new _ViewInspectorServiceDescription(); 909 _cachedServiceDescription = new _ViewInspectorServiceDescription();
925 } 910 }
926 return _cachedServiceDescription; 911 return _cachedServiceDescription;
927 } 912 }
928 } 913 }
929 914
930 915
931 916
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698