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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/ui/view_trees.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_trees_mojom; 5 library view_trees_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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 Map toJson() { 80 Map toJson() {
81 Map map = new Map(); 81 Map map = new Map();
82 map["value"] = value; 82 map["value"] = value;
83 return map; 83 return map;
84 } 84 }
85 } 85 }
86 86
87 87
88
89
90 class _ViewTreeGetTokenParams extends bindings.Struct { 88 class _ViewTreeGetTokenParams extends bindings.Struct {
91 static const List<bindings.StructDataHeader> kVersions = const [ 89 static const List<bindings.StructDataHeader> kVersions = const [
92 const bindings.StructDataHeader(8, 0) 90 const bindings.StructDataHeader(8, 0)
93 ]; 91 ];
94 92
95 _ViewTreeGetTokenParams() : super(kVersions.last.size); 93 _ViewTreeGetTokenParams() : super(kVersions.last.size);
96 94
97 static _ViewTreeGetTokenParams deserialize(bindings.Message message) { 95 static _ViewTreeGetTokenParams deserialize(bindings.Message message) {
98 var decoder = new bindings.Decoder(message); 96 var decoder = new bindings.Decoder(message);
99 var result = decode(decoder); 97 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 return "_ViewTreeGetTokenParams("")"; 136 return "_ViewTreeGetTokenParams("")";
139 } 137 }
140 138
141 Map toJson() { 139 Map toJson() {
142 Map map = new Map(); 140 Map map = new Map();
143 return map; 141 return map;
144 } 142 }
145 } 143 }
146 144
147 145
148
149
150 class ViewTreeGetTokenResponseParams extends bindings.Struct { 146 class ViewTreeGetTokenResponseParams extends bindings.Struct {
151 static const List<bindings.StructDataHeader> kVersions = const [ 147 static const List<bindings.StructDataHeader> kVersions = const [
152 const bindings.StructDataHeader(16, 0) 148 const bindings.StructDataHeader(16, 0)
153 ]; 149 ];
154 ViewTreeToken token = null; 150 ViewTreeToken token = null;
155 151
156 ViewTreeGetTokenResponseParams() : super(kVersions.last.size); 152 ViewTreeGetTokenResponseParams() : super(kVersions.last.size);
157 153
158 static ViewTreeGetTokenResponseParams deserialize(bindings.Message message) { 154 static ViewTreeGetTokenResponseParams deserialize(bindings.Message message) {
159 var decoder = new bindings.Decoder(message); 155 var decoder = new bindings.Decoder(message);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 } 209 }
214 210
215 Map toJson() { 211 Map toJson() {
216 Map map = new Map(); 212 Map map = new Map();
217 map["token"] = token; 213 map["token"] = token;
218 return map; 214 return map;
219 } 215 }
220 } 216 }
221 217
222 218
223
224
225 class _ViewTreeGetServiceProviderParams extends bindings.Struct { 219 class _ViewTreeGetServiceProviderParams extends bindings.Struct {
226 static const List<bindings.StructDataHeader> kVersions = const [ 220 static const List<bindings.StructDataHeader> kVersions = const [
227 const bindings.StructDataHeader(16, 0) 221 const bindings.StructDataHeader(16, 0)
228 ]; 222 ];
229 Object serviceProvider = null; 223 Object serviceProvider = null;
230 224
231 _ViewTreeGetServiceProviderParams() : super(kVersions.last.size); 225 _ViewTreeGetServiceProviderParams() : super(kVersions.last.size);
232 226
233 static _ViewTreeGetServiceProviderParams deserialize(bindings.Message message) { 227 static _ViewTreeGetServiceProviderParams deserialize(bindings.Message message) {
234 var decoder = new bindings.Decoder(message); 228 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 "serviceProvider: $serviceProvider" ")"; 280 "serviceProvider: $serviceProvider" ")";
287 } 281 }
288 282
289 Map toJson() { 283 Map toJson() {
290 throw new bindings.MojoCodecError( 284 throw new bindings.MojoCodecError(
291 'Object containing handles cannot be encoded to JSON.'); 285 'Object containing handles cannot be encoded to JSON.');
292 } 286 }
293 } 287 }
294 288
295 289
296
297
298 class _ViewTreeRequestLayoutParams extends bindings.Struct { 290 class _ViewTreeRequestLayoutParams extends bindings.Struct {
299 static const List<bindings.StructDataHeader> kVersions = const [ 291 static const List<bindings.StructDataHeader> kVersions = const [
300 const bindings.StructDataHeader(8, 0) 292 const bindings.StructDataHeader(8, 0)
301 ]; 293 ];
302 294
303 _ViewTreeRequestLayoutParams() : super(kVersions.last.size); 295 _ViewTreeRequestLayoutParams() : super(kVersions.last.size);
304 296
305 static _ViewTreeRequestLayoutParams deserialize(bindings.Message message) { 297 static _ViewTreeRequestLayoutParams deserialize(bindings.Message message) {
306 var decoder = new bindings.Decoder(message); 298 var decoder = new bindings.Decoder(message);
307 var result = decode(decoder); 299 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 return "_ViewTreeRequestLayoutParams("")"; 338 return "_ViewTreeRequestLayoutParams("")";
347 } 339 }
348 340
349 Map toJson() { 341 Map toJson() {
350 Map map = new Map(); 342 Map map = new Map();
351 return map; 343 return map;
352 } 344 }
353 } 345 }
354 346
355 347
356
357
358 class _ViewTreeSetRootParams extends bindings.Struct { 348 class _ViewTreeSetRootParams extends bindings.Struct {
359 static const List<bindings.StructDataHeader> kVersions = const [ 349 static const List<bindings.StructDataHeader> kVersions = const [
360 const bindings.StructDataHeader(24, 0) 350 const bindings.StructDataHeader(24, 0)
361 ]; 351 ];
362 int rootKey = 0; 352 int rootKey = 0;
363 Object rootViewOwner = null; 353 Object rootViewOwner = null;
364 354
365 _ViewTreeSetRootParams() : super(kVersions.last.size); 355 _ViewTreeSetRootParams() : super(kVersions.last.size);
366 356
367 static _ViewTreeSetRootParams deserialize(bindings.Message message) { 357 static _ViewTreeSetRootParams deserialize(bindings.Message message) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 "rootViewOwner: $rootViewOwner" ")"; 422 "rootViewOwner: $rootViewOwner" ")";
433 } 423 }
434 424
435 Map toJson() { 425 Map toJson() {
436 throw new bindings.MojoCodecError( 426 throw new bindings.MojoCodecError(
437 'Object containing handles cannot be encoded to JSON.'); 427 'Object containing handles cannot be encoded to JSON.');
438 } 428 }
439 } 429 }
440 430
441 431
442
443
444 class _ViewTreeResetRootParams extends bindings.Struct { 432 class _ViewTreeResetRootParams extends bindings.Struct {
445 static const List<bindings.StructDataHeader> kVersions = const [ 433 static const List<bindings.StructDataHeader> kVersions = const [
446 const bindings.StructDataHeader(16, 0) 434 const bindings.StructDataHeader(16, 0)
447 ]; 435 ];
448 Object transferredViewOwner = null; 436 Object transferredViewOwner = null;
449 437
450 _ViewTreeResetRootParams() : super(kVersions.last.size); 438 _ViewTreeResetRootParams() : super(kVersions.last.size);
451 439
452 static _ViewTreeResetRootParams deserialize(bindings.Message message) { 440 static _ViewTreeResetRootParams deserialize(bindings.Message message) {
453 var decoder = new bindings.Decoder(message); 441 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 "transferredViewOwner: $transferredViewOwner" ")"; 493 "transferredViewOwner: $transferredViewOwner" ")";
506 } 494 }
507 495
508 Map toJson() { 496 Map toJson() {
509 throw new bindings.MojoCodecError( 497 throw new bindings.MojoCodecError(
510 'Object containing handles cannot be encoded to JSON.'); 498 'Object containing handles cannot be encoded to JSON.');
511 } 499 }
512 } 500 }
513 501
514 502
515
516
517 class _ViewTreeLayoutRootParams extends bindings.Struct { 503 class _ViewTreeLayoutRootParams extends bindings.Struct {
518 static const List<bindings.StructDataHeader> kVersions = const [ 504 static const List<bindings.StructDataHeader> kVersions = const [
519 const bindings.StructDataHeader(16, 0) 505 const bindings.StructDataHeader(16, 0)
520 ]; 506 ];
521 layouts_mojom.ViewLayoutParams rootLayoutParams = null; 507 layouts_mojom.ViewLayoutParams rootLayoutParams = null;
522 508
523 _ViewTreeLayoutRootParams() : super(kVersions.last.size); 509 _ViewTreeLayoutRootParams() : super(kVersions.last.size);
524 510
525 static _ViewTreeLayoutRootParams deserialize(bindings.Message message) { 511 static _ViewTreeLayoutRootParams deserialize(bindings.Message message) {
526 var decoder = new bindings.Decoder(message); 512 var decoder = new bindings.Decoder(message);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 } 566 }
581 567
582 Map toJson() { 568 Map toJson() {
583 Map map = new Map(); 569 Map map = new Map();
584 map["rootLayoutParams"] = rootLayoutParams; 570 map["rootLayoutParams"] = rootLayoutParams;
585 return map; 571 return map;
586 } 572 }
587 } 573 }
588 574
589 575
590
591
592 class ViewTreeLayoutRootResponseParams extends bindings.Struct { 576 class ViewTreeLayoutRootResponseParams extends bindings.Struct {
593 static const List<bindings.StructDataHeader> kVersions = const [ 577 static const List<bindings.StructDataHeader> kVersions = const [
594 const bindings.StructDataHeader(16, 0) 578 const bindings.StructDataHeader(16, 0)
595 ]; 579 ];
596 layouts_mojom.ViewLayoutInfo info = null; 580 layouts_mojom.ViewLayoutInfo info = null;
597 581
598 ViewTreeLayoutRootResponseParams() : super(kVersions.last.size); 582 ViewTreeLayoutRootResponseParams() : super(kVersions.last.size);
599 583
600 static ViewTreeLayoutRootResponseParams deserialize(bindings.Message message) { 584 static ViewTreeLayoutRootResponseParams deserialize(bindings.Message message) {
601 var decoder = new bindings.Decoder(message); 585 var decoder = new bindings.Decoder(message);
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 } 639 }
656 640
657 Map toJson() { 641 Map toJson() {
658 Map map = new Map(); 642 Map map = new Map();
659 map["info"] = info; 643 map["info"] = info;
660 return map; 644 return map;
661 } 645 }
662 } 646 }
663 647
664 648
665
666
667 class _ViewTreeListenerOnLayoutParams extends bindings.Struct { 649 class _ViewTreeListenerOnLayoutParams extends bindings.Struct {
668 static const List<bindings.StructDataHeader> kVersions = const [ 650 static const List<bindings.StructDataHeader> kVersions = const [
669 const bindings.StructDataHeader(8, 0) 651 const bindings.StructDataHeader(8, 0)
670 ]; 652 ];
671 653
672 _ViewTreeListenerOnLayoutParams() : super(kVersions.last.size); 654 _ViewTreeListenerOnLayoutParams() : super(kVersions.last.size);
673 655
674 static _ViewTreeListenerOnLayoutParams deserialize(bindings.Message message) { 656 static _ViewTreeListenerOnLayoutParams deserialize(bindings.Message message) {
675 var decoder = new bindings.Decoder(message); 657 var decoder = new bindings.Decoder(message);
676 var result = decode(decoder); 658 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 return "_ViewTreeListenerOnLayoutParams("")"; 697 return "_ViewTreeListenerOnLayoutParams("")";
716 } 698 }
717 699
718 Map toJson() { 700 Map toJson() {
719 Map map = new Map(); 701 Map map = new Map();
720 return map; 702 return map;
721 } 703 }
722 } 704 }
723 705
724 706
725
726
727 class ViewTreeListenerOnLayoutResponseParams extends bindings.Struct { 707 class ViewTreeListenerOnLayoutResponseParams extends bindings.Struct {
728 static const List<bindings.StructDataHeader> kVersions = const [ 708 static const List<bindings.StructDataHeader> kVersions = const [
729 const bindings.StructDataHeader(8, 0) 709 const bindings.StructDataHeader(8, 0)
730 ]; 710 ];
731 711
732 ViewTreeListenerOnLayoutResponseParams() : super(kVersions.last.size); 712 ViewTreeListenerOnLayoutResponseParams() : super(kVersions.last.size);
733 713
734 static ViewTreeListenerOnLayoutResponseParams deserialize(bindings.Message mes sage) { 714 static ViewTreeListenerOnLayoutResponseParams deserialize(bindings.Message mes sage) {
735 var decoder = new bindings.Decoder(message); 715 var decoder = new bindings.Decoder(message);
736 var result = decode(decoder); 716 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 return "ViewTreeListenerOnLayoutResponseParams("")"; 755 return "ViewTreeListenerOnLayoutResponseParams("")";
776 } 756 }
777 757
778 Map toJson() { 758 Map toJson() {
779 Map map = new Map(); 759 Map map = new Map();
780 return map; 760 return map;
781 } 761 }
782 } 762 }
783 763
784 764
785
786
787 class _ViewTreeListenerOnRootUnavailableParams extends bindings.Struct { 765 class _ViewTreeListenerOnRootUnavailableParams extends bindings.Struct {
788 static const List<bindings.StructDataHeader> kVersions = const [ 766 static const List<bindings.StructDataHeader> kVersions = const [
789 const bindings.StructDataHeader(16, 0) 767 const bindings.StructDataHeader(16, 0)
790 ]; 768 ];
791 int rootKey = 0; 769 int rootKey = 0;
792 770
793 _ViewTreeListenerOnRootUnavailableParams() : super(kVersions.last.size); 771 _ViewTreeListenerOnRootUnavailableParams() : super(kVersions.last.size);
794 772
795 static _ViewTreeListenerOnRootUnavailableParams deserialize(bindings.Message m essage) { 773 static _ViewTreeListenerOnRootUnavailableParams deserialize(bindings.Message m essage) {
796 var decoder = new bindings.Decoder(message); 774 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 } 827 }
850 828
851 Map toJson() { 829 Map toJson() {
852 Map map = new Map(); 830 Map map = new Map();
853 map["rootKey"] = rootKey; 831 map["rootKey"] = rootKey;
854 return map; 832 return map;
855 } 833 }
856 } 834 }
857 835
858 836
859
860
861 class ViewTreeListenerOnRootUnavailableResponseParams extends bindings.Struct { 837 class ViewTreeListenerOnRootUnavailableResponseParams extends bindings.Struct {
862 static const List<bindings.StructDataHeader> kVersions = const [ 838 static const List<bindings.StructDataHeader> kVersions = const [
863 const bindings.StructDataHeader(8, 0) 839 const bindings.StructDataHeader(8, 0)
864 ]; 840 ];
865 841
866 ViewTreeListenerOnRootUnavailableResponseParams() : super(kVersions.last.size) ; 842 ViewTreeListenerOnRootUnavailableResponseParams() : super(kVersions.last.size) ;
867 843
868 static ViewTreeListenerOnRootUnavailableResponseParams deserialize(bindings.Me ssage message) { 844 static ViewTreeListenerOnRootUnavailableResponseParams deserialize(bindings.Me ssage message) {
869 var decoder = new bindings.Decoder(message); 845 var decoder = new bindings.Decoder(message);
870 var result = decode(decoder); 846 var result = decode(decoder);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 String toString() { 884 String toString() {
909 return "ViewTreeListenerOnRootUnavailableResponseParams("")"; 885 return "ViewTreeListenerOnRootUnavailableResponseParams("")";
910 } 886 }
911 887
912 Map toJson() { 888 Map toJson() {
913 Map map = new Map(); 889 Map map = new Map();
914 return map; 890 return map;
915 } 891 }
916 } 892 }
917 893
918
919
920
921 const int _ViewTree_getTokenName = 0; 894 const int _ViewTree_getTokenName = 0;
922 const int _ViewTree_getServiceProviderName = 1; 895 const int _ViewTree_getServiceProviderName = 1;
923 const int _ViewTree_requestLayoutName = 2; 896 const int _ViewTree_requestLayoutName = 2;
924 const int _ViewTree_setRootName = 3; 897 const int _ViewTree_setRootName = 3;
925 const int _ViewTree_resetRootName = 4; 898 const int _ViewTree_resetRootName = 4;
926 const int _ViewTree_layoutRootName = 5; 899 const int _ViewTree_layoutRootName = 5;
927 900
928
929
930 class _ViewTreeServiceDescription implements service_describer.ServiceDescriptio n { 901 class _ViewTreeServiceDescription implements service_describer.ServiceDescriptio n {
931 dynamic getTopLevelInterface([Function responseFactory]) => 902 dynamic getTopLevelInterface([Function responseFactory]) =>
932 responseFactory(null); 903 responseFactory(null);
933 904
934 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 905 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
935 responseFactory(null); 906 responseFactory(null);
936 907
937 dynamic getAllTypeDefinitions([Function responseFactory]) => 908 dynamic getAllTypeDefinitions([Function responseFactory]) =>
938 responseFactory(null); 909 responseFactory(null);
939 } 910 }
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 if (_cachedServiceDescription == null) { 1236 if (_cachedServiceDescription == null) {
1266 _cachedServiceDescription = new _ViewTreeServiceDescription(); 1237 _cachedServiceDescription = new _ViewTreeServiceDescription();
1267 } 1238 }
1268 return _cachedServiceDescription; 1239 return _cachedServiceDescription;
1269 } 1240 }
1270 } 1241 }
1271 1242
1272 const int _ViewTreeListener_onLayoutName = 0; 1243 const int _ViewTreeListener_onLayoutName = 0;
1273 const int _ViewTreeListener_onRootUnavailableName = 1; 1244 const int _ViewTreeListener_onRootUnavailableName = 1;
1274 1245
1275
1276
1277 class _ViewTreeListenerServiceDescription implements service_describer.ServiceDe scription { 1246 class _ViewTreeListenerServiceDescription implements service_describer.ServiceDe scription {
1278 dynamic getTopLevelInterface([Function responseFactory]) => 1247 dynamic getTopLevelInterface([Function responseFactory]) =>
1279 responseFactory(null); 1248 responseFactory(null);
1280 1249
1281 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 1250 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
1282 responseFactory(null); 1251 responseFactory(null);
1283 1252
1284 dynamic getAllTypeDefinitions([Function responseFactory]) => 1253 dynamic getAllTypeDefinitions([Function responseFactory]) =>
1285 responseFactory(null); 1254 responseFactory(null);
1286 } 1255 }
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1551 static service_describer.ServiceDescription get serviceDescription { 1520 static service_describer.ServiceDescription get serviceDescription {
1552 if (_cachedServiceDescription == null) { 1521 if (_cachedServiceDescription == null) {
1553 _cachedServiceDescription = new _ViewTreeListenerServiceDescription(); 1522 _cachedServiceDescription = new _ViewTreeListenerServiceDescription();
1554 } 1523 }
1555 return _cachedServiceDescription; 1524 return _cachedServiceDescription;
1556 } 1525 }
1557 } 1526 }
1558 1527
1559 1528
1560 1529
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698