OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 library view_trees_mojom; | 5 library view_trees_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 12 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
11 import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom
; | 13 import 'package:mojo/mojo/service_provider.mojom.dart' as service_provider_mojom
; |
12 import 'package:mojo_services/mojo/ui/layouts.mojom.dart' as layouts_mojom; | 14 import 'package:mojo_services/mojo/ui/layouts.mojom.dart' as layouts_mojom; |
13 import 'package:mojo_services/mojo/ui/views.mojom.dart' as views_mojom; | 15 import 'package:mojo_services/mojo/ui/views.mojom.dart' as views_mojom; |
14 | 16 |
15 | 17 |
16 | 18 |
17 class ViewTreeToken extends bindings.Struct { | 19 class ViewTreeToken extends bindings.Struct { |
18 static const List<bindings.StructDataHeader> kVersions = const [ | 20 static const List<bindings.StructDataHeader> kVersions = const [ |
19 const bindings.StructDataHeader(16, 0) | 21 const bindings.StructDataHeader(16, 0) |
20 ]; | 22 ]; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 } | 76 } |
75 | 77 |
76 Map toJson() { | 78 Map toJson() { |
77 Map map = new Map(); | 79 Map map = new Map(); |
78 map["value"] = value; | 80 map["value"] = value; |
79 return map; | 81 return map; |
80 } | 82 } |
81 } | 83 } |
82 | 84 |
83 | 85 |
| 86 |
| 87 |
84 class _ViewTreeOnLayoutParams extends bindings.Struct { | 88 class _ViewTreeOnLayoutParams extends bindings.Struct { |
85 static const List<bindings.StructDataHeader> kVersions = const [ | 89 static const List<bindings.StructDataHeader> kVersions = const [ |
86 const bindings.StructDataHeader(8, 0) | 90 const bindings.StructDataHeader(8, 0) |
87 ]; | 91 ]; |
88 | 92 |
89 _ViewTreeOnLayoutParams() : super(kVersions.last.size); | 93 _ViewTreeOnLayoutParams() : super(kVersions.last.size); |
90 | 94 |
91 static _ViewTreeOnLayoutParams deserialize(bindings.Message message) { | 95 static _ViewTreeOnLayoutParams deserialize(bindings.Message message) { |
92 var decoder = new bindings.Decoder(message); | 96 var decoder = new bindings.Decoder(message); |
93 var result = decode(decoder); | 97 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 return "_ViewTreeOnLayoutParams("")"; | 136 return "_ViewTreeOnLayoutParams("")"; |
133 } | 137 } |
134 | 138 |
135 Map toJson() { | 139 Map toJson() { |
136 Map map = new Map(); | 140 Map map = new Map(); |
137 return map; | 141 return map; |
138 } | 142 } |
139 } | 143 } |
140 | 144 |
141 | 145 |
| 146 |
| 147 |
142 class ViewTreeOnLayoutResponseParams extends bindings.Struct { | 148 class ViewTreeOnLayoutResponseParams extends bindings.Struct { |
143 static const List<bindings.StructDataHeader> kVersions = const [ | 149 static const List<bindings.StructDataHeader> kVersions = const [ |
144 const bindings.StructDataHeader(8, 0) | 150 const bindings.StructDataHeader(8, 0) |
145 ]; | 151 ]; |
146 | 152 |
147 ViewTreeOnLayoutResponseParams() : super(kVersions.last.size); | 153 ViewTreeOnLayoutResponseParams() : super(kVersions.last.size); |
148 | 154 |
149 static ViewTreeOnLayoutResponseParams deserialize(bindings.Message message) { | 155 static ViewTreeOnLayoutResponseParams deserialize(bindings.Message message) { |
150 var decoder = new bindings.Decoder(message); | 156 var decoder = new bindings.Decoder(message); |
151 var result = decode(decoder); | 157 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 return "ViewTreeOnLayoutResponseParams("")"; | 196 return "ViewTreeOnLayoutResponseParams("")"; |
191 } | 197 } |
192 | 198 |
193 Map toJson() { | 199 Map toJson() { |
194 Map map = new Map(); | 200 Map map = new Map(); |
195 return map; | 201 return map; |
196 } | 202 } |
197 } | 203 } |
198 | 204 |
199 | 205 |
| 206 |
| 207 |
200 class _ViewTreeOnRootUnavailableParams extends bindings.Struct { | 208 class _ViewTreeOnRootUnavailableParams extends bindings.Struct { |
201 static const List<bindings.StructDataHeader> kVersions = const [ | 209 static const List<bindings.StructDataHeader> kVersions = const [ |
202 const bindings.StructDataHeader(16, 0) | 210 const bindings.StructDataHeader(16, 0) |
203 ]; | 211 ]; |
204 int rootKey = 0; | 212 int rootKey = 0; |
205 | 213 |
206 _ViewTreeOnRootUnavailableParams() : super(kVersions.last.size); | 214 _ViewTreeOnRootUnavailableParams() : super(kVersions.last.size); |
207 | 215 |
208 static _ViewTreeOnRootUnavailableParams deserialize(bindings.Message message)
{ | 216 static _ViewTreeOnRootUnavailableParams deserialize(bindings.Message message)
{ |
209 var decoder = new bindings.Decoder(message); | 217 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 } | 265 } |
258 | 266 |
259 Map toJson() { | 267 Map toJson() { |
260 Map map = new Map(); | 268 Map map = new Map(); |
261 map["rootKey"] = rootKey; | 269 map["rootKey"] = rootKey; |
262 return map; | 270 return map; |
263 } | 271 } |
264 } | 272 } |
265 | 273 |
266 | 274 |
| 275 |
| 276 |
267 class ViewTreeOnRootUnavailableResponseParams extends bindings.Struct { | 277 class ViewTreeOnRootUnavailableResponseParams extends bindings.Struct { |
268 static const List<bindings.StructDataHeader> kVersions = const [ | 278 static const List<bindings.StructDataHeader> kVersions = const [ |
269 const bindings.StructDataHeader(8, 0) | 279 const bindings.StructDataHeader(8, 0) |
270 ]; | 280 ]; |
271 | 281 |
272 ViewTreeOnRootUnavailableResponseParams() : super(kVersions.last.size); | 282 ViewTreeOnRootUnavailableResponseParams() : super(kVersions.last.size); |
273 | 283 |
274 static ViewTreeOnRootUnavailableResponseParams deserialize(bindings.Message me
ssage) { | 284 static ViewTreeOnRootUnavailableResponseParams deserialize(bindings.Message me
ssage) { |
275 var decoder = new bindings.Decoder(message); | 285 var decoder = new bindings.Decoder(message); |
276 var result = decode(decoder); | 286 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
315 return "ViewTreeOnRootUnavailableResponseParams("")"; | 325 return "ViewTreeOnRootUnavailableResponseParams("")"; |
316 } | 326 } |
317 | 327 |
318 Map toJson() { | 328 Map toJson() { |
319 Map map = new Map(); | 329 Map map = new Map(); |
320 return map; | 330 return map; |
321 } | 331 } |
322 } | 332 } |
323 | 333 |
324 | 334 |
| 335 |
| 336 |
325 class _ViewTreeHostGetServiceProviderParams extends bindings.Struct { | 337 class _ViewTreeHostGetServiceProviderParams extends bindings.Struct { |
326 static const List<bindings.StructDataHeader> kVersions = const [ | 338 static const List<bindings.StructDataHeader> kVersions = const [ |
327 const bindings.StructDataHeader(16, 0) | 339 const bindings.StructDataHeader(16, 0) |
328 ]; | 340 ]; |
329 Object serviceProvider = null; | 341 Object serviceProvider = null; |
330 | 342 |
331 _ViewTreeHostGetServiceProviderParams() : super(kVersions.last.size); | 343 _ViewTreeHostGetServiceProviderParams() : super(kVersions.last.size); |
332 | 344 |
333 static _ViewTreeHostGetServiceProviderParams deserialize(bindings.Message mess
age) { | 345 static _ViewTreeHostGetServiceProviderParams deserialize(bindings.Message mess
age) { |
334 var decoder = new bindings.Decoder(message); | 346 var decoder = new bindings.Decoder(message); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 "serviceProvider: $serviceProvider" ")"; | 393 "serviceProvider: $serviceProvider" ")"; |
382 } | 394 } |
383 | 395 |
384 Map toJson() { | 396 Map toJson() { |
385 throw new bindings.MojoCodecError( | 397 throw new bindings.MojoCodecError( |
386 'Object containing handles cannot be encoded to JSON.'); | 398 'Object containing handles cannot be encoded to JSON.'); |
387 } | 399 } |
388 } | 400 } |
389 | 401 |
390 | 402 |
| 403 |
| 404 |
391 class _ViewTreeHostRequestLayoutParams extends bindings.Struct { | 405 class _ViewTreeHostRequestLayoutParams extends bindings.Struct { |
392 static const List<bindings.StructDataHeader> kVersions = const [ | 406 static const List<bindings.StructDataHeader> kVersions = const [ |
393 const bindings.StructDataHeader(8, 0) | 407 const bindings.StructDataHeader(8, 0) |
394 ]; | 408 ]; |
395 | 409 |
396 _ViewTreeHostRequestLayoutParams() : super(kVersions.last.size); | 410 _ViewTreeHostRequestLayoutParams() : super(kVersions.last.size); |
397 | 411 |
398 static _ViewTreeHostRequestLayoutParams deserialize(bindings.Message message)
{ | 412 static _ViewTreeHostRequestLayoutParams deserialize(bindings.Message message)
{ |
399 var decoder = new bindings.Decoder(message); | 413 var decoder = new bindings.Decoder(message); |
400 var result = decode(decoder); | 414 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 return "_ViewTreeHostRequestLayoutParams("")"; | 453 return "_ViewTreeHostRequestLayoutParams("")"; |
440 } | 454 } |
441 | 455 |
442 Map toJson() { | 456 Map toJson() { |
443 Map map = new Map(); | 457 Map map = new Map(); |
444 return map; | 458 return map; |
445 } | 459 } |
446 } | 460 } |
447 | 461 |
448 | 462 |
| 463 |
| 464 |
449 class _ViewTreeHostSetRootParams extends bindings.Struct { | 465 class _ViewTreeHostSetRootParams extends bindings.Struct { |
450 static const List<bindings.StructDataHeader> kVersions = const [ | 466 static const List<bindings.StructDataHeader> kVersions = const [ |
451 const bindings.StructDataHeader(24, 0) | 467 const bindings.StructDataHeader(24, 0) |
452 ]; | 468 ]; |
453 int rootKey = 0; | 469 int rootKey = 0; |
454 views_mojom.ViewToken rootViewToken = null; | 470 views_mojom.ViewToken rootViewToken = null; |
455 | 471 |
456 _ViewTreeHostSetRootParams() : super(kVersions.last.size); | 472 _ViewTreeHostSetRootParams() : super(kVersions.last.size); |
457 | 473 |
458 static _ViewTreeHostSetRootParams deserialize(bindings.Message message) { | 474 static _ViewTreeHostSetRootParams deserialize(bindings.Message message) { |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 | 532 |
517 Map toJson() { | 533 Map toJson() { |
518 Map map = new Map(); | 534 Map map = new Map(); |
519 map["rootKey"] = rootKey; | 535 map["rootKey"] = rootKey; |
520 map["rootViewToken"] = rootViewToken; | 536 map["rootViewToken"] = rootViewToken; |
521 return map; | 537 return map; |
522 } | 538 } |
523 } | 539 } |
524 | 540 |
525 | 541 |
| 542 |
| 543 |
526 class _ViewTreeHostResetRootParams extends bindings.Struct { | 544 class _ViewTreeHostResetRootParams extends bindings.Struct { |
527 static const List<bindings.StructDataHeader> kVersions = const [ | 545 static const List<bindings.StructDataHeader> kVersions = const [ |
528 const bindings.StructDataHeader(8, 0) | 546 const bindings.StructDataHeader(8, 0) |
529 ]; | 547 ]; |
530 | 548 |
531 _ViewTreeHostResetRootParams() : super(kVersions.last.size); | 549 _ViewTreeHostResetRootParams() : super(kVersions.last.size); |
532 | 550 |
533 static _ViewTreeHostResetRootParams deserialize(bindings.Message message) { | 551 static _ViewTreeHostResetRootParams deserialize(bindings.Message message) { |
534 var decoder = new bindings.Decoder(message); | 552 var decoder = new bindings.Decoder(message); |
535 var result = decode(decoder); | 553 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 return "_ViewTreeHostResetRootParams("")"; | 592 return "_ViewTreeHostResetRootParams("")"; |
575 } | 593 } |
576 | 594 |
577 Map toJson() { | 595 Map toJson() { |
578 Map map = new Map(); | 596 Map map = new Map(); |
579 return map; | 597 return map; |
580 } | 598 } |
581 } | 599 } |
582 | 600 |
583 | 601 |
| 602 |
| 603 |
584 class _ViewTreeHostLayoutRootParams extends bindings.Struct { | 604 class _ViewTreeHostLayoutRootParams extends bindings.Struct { |
585 static const List<bindings.StructDataHeader> kVersions = const [ | 605 static const List<bindings.StructDataHeader> kVersions = const [ |
586 const bindings.StructDataHeader(16, 0) | 606 const bindings.StructDataHeader(16, 0) |
587 ]; | 607 ]; |
588 layouts_mojom.ViewLayoutParams rootLayoutParams = null; | 608 layouts_mojom.ViewLayoutParams rootLayoutParams = null; |
589 | 609 |
590 _ViewTreeHostLayoutRootParams() : super(kVersions.last.size); | 610 _ViewTreeHostLayoutRootParams() : super(kVersions.last.size); |
591 | 611 |
592 static _ViewTreeHostLayoutRootParams deserialize(bindings.Message message) { | 612 static _ViewTreeHostLayoutRootParams deserialize(bindings.Message message) { |
593 var decoder = new bindings.Decoder(message); | 613 var decoder = new bindings.Decoder(message); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
642 } | 662 } |
643 | 663 |
644 Map toJson() { | 664 Map toJson() { |
645 Map map = new Map(); | 665 Map map = new Map(); |
646 map["rootLayoutParams"] = rootLayoutParams; | 666 map["rootLayoutParams"] = rootLayoutParams; |
647 return map; | 667 return map; |
648 } | 668 } |
649 } | 669 } |
650 | 670 |
651 | 671 |
| 672 |
| 673 |
652 class ViewTreeHostLayoutRootResponseParams extends bindings.Struct { | 674 class ViewTreeHostLayoutRootResponseParams extends bindings.Struct { |
653 static const List<bindings.StructDataHeader> kVersions = const [ | 675 static const List<bindings.StructDataHeader> kVersions = const [ |
654 const bindings.StructDataHeader(16, 0) | 676 const bindings.StructDataHeader(16, 0) |
655 ]; | 677 ]; |
656 layouts_mojom.ViewLayoutInfo info = null; | 678 layouts_mojom.ViewLayoutInfo info = null; |
657 | 679 |
658 ViewTreeHostLayoutRootResponseParams() : super(kVersions.last.size); | 680 ViewTreeHostLayoutRootResponseParams() : super(kVersions.last.size); |
659 | 681 |
660 static ViewTreeHostLayoutRootResponseParams deserialize(bindings.Message messa
ge) { | 682 static ViewTreeHostLayoutRootResponseParams deserialize(bindings.Message messa
ge) { |
661 var decoder = new bindings.Decoder(message); | 683 var decoder = new bindings.Decoder(message); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
709 "info: $info" ")"; | 731 "info: $info" ")"; |
710 } | 732 } |
711 | 733 |
712 Map toJson() { | 734 Map toJson() { |
713 Map map = new Map(); | 735 Map map = new Map(); |
714 map["info"] = info; | 736 map["info"] = info; |
715 return map; | 737 return map; |
716 } | 738 } |
717 } | 739 } |
718 | 740 |
| 741 |
| 742 |
| 743 |
719 const int _ViewTree_onLayoutName = 0; | 744 const int _ViewTree_onLayoutName = 0; |
720 const int _ViewTree_onRootUnavailableName = 1; | 745 const int _ViewTree_onRootUnavailableName = 1; |
721 | 746 |
| 747 |
| 748 |
| 749 class _ViewTreeServiceDescription implements service_describer.ServiceDescriptio
n { |
| 750 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 751 |
| 752 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 753 |
| 754 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 755 } |
| 756 |
722 abstract class ViewTree { | 757 abstract class ViewTree { |
723 static const String serviceName = null; | 758 static const String serviceName = null; |
724 dynamic onLayout([Function responseFactory = null]); | 759 dynamic onLayout([Function responseFactory = null]); |
725 dynamic onRootUnavailable(int rootKey,[Function responseFactory = null]); | 760 dynamic onRootUnavailable(int rootKey,[Function responseFactory = null]); |
726 } | 761 } |
727 | 762 |
728 | 763 |
729 class _ViewTreeProxyImpl extends bindings.Proxy { | 764 class _ViewTreeProxyImpl extends bindings.Proxy { |
730 _ViewTreeProxyImpl.fromEndpoint( | 765 _ViewTreeProxyImpl.fromEndpoint( |
731 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 766 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
732 | 767 |
733 _ViewTreeProxyImpl.fromHandle(core.MojoHandle handle) : | 768 _ViewTreeProxyImpl.fromHandle(core.MojoHandle handle) : |
734 super.fromHandle(handle); | 769 super.fromHandle(handle); |
735 | 770 |
736 _ViewTreeProxyImpl.unbound() : super.unbound(); | 771 _ViewTreeProxyImpl.unbound() : super.unbound(); |
737 | 772 |
738 static _ViewTreeProxyImpl newFromEndpoint( | 773 static _ViewTreeProxyImpl newFromEndpoint( |
739 core.MojoMessagePipeEndpoint endpoint) { | 774 core.MojoMessagePipeEndpoint endpoint) { |
740 assert(endpoint.setDescription("For _ViewTreeProxyImpl")); | 775 assert(endpoint.setDescription("For _ViewTreeProxyImpl")); |
741 return new _ViewTreeProxyImpl.fromEndpoint(endpoint); | 776 return new _ViewTreeProxyImpl.fromEndpoint(endpoint); |
742 } | 777 } |
743 | 778 |
| 779 service_describer.ServiceDescription get serviceDescription => |
| 780 new _ViewTreeServiceDescription(); |
| 781 |
744 void handleResponse(bindings.ServiceMessage message) { | 782 void handleResponse(bindings.ServiceMessage message) { |
745 switch (message.header.type) { | 783 switch (message.header.type) { |
746 case _ViewTree_onLayoutName: | 784 case _ViewTree_onLayoutName: |
747 var r = ViewTreeOnLayoutResponseParams.deserialize( | 785 var r = ViewTreeOnLayoutResponseParams.deserialize( |
748 message.payload); | 786 message.payload); |
749 if (!message.header.hasRequestId) { | 787 if (!message.header.hasRequestId) { |
750 proxyError("Expected a message with a valid request Id."); | 788 proxyError("Expected a message with a valid request Id."); |
751 return; | 789 return; |
752 } | 790 } |
753 Completer c = completerMap[message.header.requestId]; | 791 Completer c = completerMap[message.header.requestId]; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
972 assert(_impl == null); | 1010 assert(_impl == null); |
973 _impl = d; | 1011 _impl = d; |
974 } | 1012 } |
975 | 1013 |
976 String toString() { | 1014 String toString() { |
977 var superString = super.toString(); | 1015 var superString = super.toString(); |
978 return "ViewTreeStub($superString)"; | 1016 return "ViewTreeStub($superString)"; |
979 } | 1017 } |
980 | 1018 |
981 int get version => 0; | 1019 int get version => 0; |
| 1020 |
| 1021 service_describer.ServiceDescription get serviceDescription => |
| 1022 new _ViewTreeServiceDescription(); |
982 } | 1023 } |
983 | 1024 |
984 const int _ViewTreeHost_getServiceProviderName = 0; | 1025 const int _ViewTreeHost_getServiceProviderName = 0; |
985 const int _ViewTreeHost_requestLayoutName = 1; | 1026 const int _ViewTreeHost_requestLayoutName = 1; |
986 const int _ViewTreeHost_setRootName = 2; | 1027 const int _ViewTreeHost_setRootName = 2; |
987 const int _ViewTreeHost_resetRootName = 3; | 1028 const int _ViewTreeHost_resetRootName = 3; |
988 const int _ViewTreeHost_layoutRootName = 4; | 1029 const int _ViewTreeHost_layoutRootName = 4; |
989 | 1030 |
| 1031 |
| 1032 |
| 1033 class _ViewTreeHostServiceDescription implements service_describer.ServiceDescri
ption { |
| 1034 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1035 |
| 1036 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1037 |
| 1038 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1039 } |
| 1040 |
990 abstract class ViewTreeHost { | 1041 abstract class ViewTreeHost { |
991 static const String serviceName = null; | 1042 static const String serviceName = null; |
992 void getServiceProvider(Object serviceProvider); | 1043 void getServiceProvider(Object serviceProvider); |
993 void requestLayout(); | 1044 void requestLayout(); |
994 void setRoot(int rootKey, views_mojom.ViewToken rootViewToken); | 1045 void setRoot(int rootKey, views_mojom.ViewToken rootViewToken); |
995 void resetRoot(); | 1046 void resetRoot(); |
996 dynamic layoutRoot(layouts_mojom.ViewLayoutParams rootLayoutParams,[Function r
esponseFactory = null]); | 1047 dynamic layoutRoot(layouts_mojom.ViewLayoutParams rootLayoutParams,[Function r
esponseFactory = null]); |
997 } | 1048 } |
998 | 1049 |
999 | 1050 |
1000 class _ViewTreeHostProxyImpl extends bindings.Proxy { | 1051 class _ViewTreeHostProxyImpl extends bindings.Proxy { |
1001 _ViewTreeHostProxyImpl.fromEndpoint( | 1052 _ViewTreeHostProxyImpl.fromEndpoint( |
1002 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1053 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1003 | 1054 |
1004 _ViewTreeHostProxyImpl.fromHandle(core.MojoHandle handle) : | 1055 _ViewTreeHostProxyImpl.fromHandle(core.MojoHandle handle) : |
1005 super.fromHandle(handle); | 1056 super.fromHandle(handle); |
1006 | 1057 |
1007 _ViewTreeHostProxyImpl.unbound() : super.unbound(); | 1058 _ViewTreeHostProxyImpl.unbound() : super.unbound(); |
1008 | 1059 |
1009 static _ViewTreeHostProxyImpl newFromEndpoint( | 1060 static _ViewTreeHostProxyImpl newFromEndpoint( |
1010 core.MojoMessagePipeEndpoint endpoint) { | 1061 core.MojoMessagePipeEndpoint endpoint) { |
1011 assert(endpoint.setDescription("For _ViewTreeHostProxyImpl")); | 1062 assert(endpoint.setDescription("For _ViewTreeHostProxyImpl")); |
1012 return new _ViewTreeHostProxyImpl.fromEndpoint(endpoint); | 1063 return new _ViewTreeHostProxyImpl.fromEndpoint(endpoint); |
1013 } | 1064 } |
1014 | 1065 |
| 1066 service_describer.ServiceDescription get serviceDescription => |
| 1067 new _ViewTreeHostServiceDescription(); |
| 1068 |
1015 void handleResponse(bindings.ServiceMessage message) { | 1069 void handleResponse(bindings.ServiceMessage message) { |
1016 switch (message.header.type) { | 1070 switch (message.header.type) { |
1017 case _ViewTreeHost_layoutRootName: | 1071 case _ViewTreeHost_layoutRootName: |
1018 var r = ViewTreeHostLayoutRootResponseParams.deserialize( | 1072 var r = ViewTreeHostLayoutRootResponseParams.deserialize( |
1019 message.payload); | 1073 message.payload); |
1020 if (!message.header.hasRequestId) { | 1074 if (!message.header.hasRequestId) { |
1021 proxyError("Expected a message with a valid request Id."); | 1075 proxyError("Expected a message with a valid request Id."); |
1022 return; | 1076 return; |
1023 } | 1077 } |
1024 Completer c = completerMap[message.header.requestId]; | 1078 Completer c = completerMap[message.header.requestId]; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 assert(_impl == null); | 1299 assert(_impl == null); |
1246 _impl = d; | 1300 _impl = d; |
1247 } | 1301 } |
1248 | 1302 |
1249 String toString() { | 1303 String toString() { |
1250 var superString = super.toString(); | 1304 var superString = super.toString(); |
1251 return "ViewTreeHostStub($superString)"; | 1305 return "ViewTreeHostStub($superString)"; |
1252 } | 1306 } |
1253 | 1307 |
1254 int get version => 0; | 1308 int get version => 0; |
| 1309 |
| 1310 service_describer.ServiceDescription get serviceDescription => |
| 1311 new _ViewTreeHostServiceDescription(); |
1255 } | 1312 } |
1256 | 1313 |
1257 | 1314 |
| 1315 |
OLD | NEW |