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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/ui/views.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 views_mojom; 5 library views_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/gfx/composition/scenes.mojom.dart' as scenes_ mojom; 14 import 'package:mojo_services/mojo/gfx/composition/scenes.mojom.dart' as scenes_ mojom;
13 import 'package:mojo_services/mojo/ui/layouts.mojom.dart' as layouts_mojom; 15 import 'package:mojo_services/mojo/ui/layouts.mojom.dart' as layouts_mojom;
14 16
15 17
16 18
17 class ViewToken extends bindings.Struct { 19 class ViewToken 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
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 _ViewOnLayoutParams extends bindings.Struct { 88 class _ViewOnLayoutParams extends bindings.Struct {
85 static const List<bindings.StructDataHeader> kVersions = const [ 89 static const List<bindings.StructDataHeader> kVersions = const [
86 const bindings.StructDataHeader(24, 0) 90 const bindings.StructDataHeader(24, 0)
87 ]; 91 ];
88 layouts_mojom.ViewLayoutParams layoutParams = null; 92 layouts_mojom.ViewLayoutParams layoutParams = null;
89 List<int> childrenNeedingLayout = null; 93 List<int> childrenNeedingLayout = null;
90 94
91 _ViewOnLayoutParams() : super(kVersions.last.size); 95 _ViewOnLayoutParams() : super(kVersions.last.size);
92 96
93 static _ViewOnLayoutParams deserialize(bindings.Message message) { 97 static _ViewOnLayoutParams deserialize(bindings.Message message) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 155
152 Map toJson() { 156 Map toJson() {
153 Map map = new Map(); 157 Map map = new Map();
154 map["layoutParams"] = layoutParams; 158 map["layoutParams"] = layoutParams;
155 map["childrenNeedingLayout"] = childrenNeedingLayout; 159 map["childrenNeedingLayout"] = childrenNeedingLayout;
156 return map; 160 return map;
157 } 161 }
158 } 162 }
159 163
160 164
165
166
161 class ViewOnLayoutResponseParams extends bindings.Struct { 167 class ViewOnLayoutResponseParams extends bindings.Struct {
162 static const List<bindings.StructDataHeader> kVersions = const [ 168 static const List<bindings.StructDataHeader> kVersions = const [
163 const bindings.StructDataHeader(16, 0) 169 const bindings.StructDataHeader(16, 0)
164 ]; 170 ];
165 layouts_mojom.ViewLayoutResult result = null; 171 layouts_mojom.ViewLayoutResult result = null;
166 172
167 ViewOnLayoutResponseParams() : super(kVersions.last.size); 173 ViewOnLayoutResponseParams() : super(kVersions.last.size);
168 174
169 static ViewOnLayoutResponseParams deserialize(bindings.Message message) { 175 static ViewOnLayoutResponseParams deserialize(bindings.Message message) {
170 var decoder = new bindings.Decoder(message); 176 var decoder = new bindings.Decoder(message);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 } 225 }
220 226
221 Map toJson() { 227 Map toJson() {
222 Map map = new Map(); 228 Map map = new Map();
223 map["result"] = result; 229 map["result"] = result;
224 return map; 230 return map;
225 } 231 }
226 } 232 }
227 233
228 234
235
236
229 class _ViewOnChildUnavailableParams extends bindings.Struct { 237 class _ViewOnChildUnavailableParams extends bindings.Struct {
230 static const List<bindings.StructDataHeader> kVersions = const [ 238 static const List<bindings.StructDataHeader> kVersions = const [
231 const bindings.StructDataHeader(16, 0) 239 const bindings.StructDataHeader(16, 0)
232 ]; 240 ];
233 int childKey = 0; 241 int childKey = 0;
234 242
235 _ViewOnChildUnavailableParams() : super(kVersions.last.size); 243 _ViewOnChildUnavailableParams() : super(kVersions.last.size);
236 244
237 static _ViewOnChildUnavailableParams deserialize(bindings.Message message) { 245 static _ViewOnChildUnavailableParams deserialize(bindings.Message message) {
238 var decoder = new bindings.Decoder(message); 246 var decoder = new bindings.Decoder(message);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 } 294 }
287 295
288 Map toJson() { 296 Map toJson() {
289 Map map = new Map(); 297 Map map = new Map();
290 map["childKey"] = childKey; 298 map["childKey"] = childKey;
291 return map; 299 return map;
292 } 300 }
293 } 301 }
294 302
295 303
304
305
296 class ViewOnChildUnavailableResponseParams extends bindings.Struct { 306 class ViewOnChildUnavailableResponseParams extends bindings.Struct {
297 static const List<bindings.StructDataHeader> kVersions = const [ 307 static const List<bindings.StructDataHeader> kVersions = const [
298 const bindings.StructDataHeader(8, 0) 308 const bindings.StructDataHeader(8, 0)
299 ]; 309 ];
300 310
301 ViewOnChildUnavailableResponseParams() : super(kVersions.last.size); 311 ViewOnChildUnavailableResponseParams() : super(kVersions.last.size);
302 312
303 static ViewOnChildUnavailableResponseParams deserialize(bindings.Message messa ge) { 313 static ViewOnChildUnavailableResponseParams deserialize(bindings.Message messa ge) {
304 var decoder = new bindings.Decoder(message); 314 var decoder = new bindings.Decoder(message);
305 var result = decode(decoder); 315 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 return "ViewOnChildUnavailableResponseParams("")"; 354 return "ViewOnChildUnavailableResponseParams("")";
345 } 355 }
346 356
347 Map toJson() { 357 Map toJson() {
348 Map map = new Map(); 358 Map map = new Map();
349 return map; 359 return map;
350 } 360 }
351 } 361 }
352 362
353 363
364
365
354 class _ViewHostGetServiceProviderParams extends bindings.Struct { 366 class _ViewHostGetServiceProviderParams extends bindings.Struct {
355 static const List<bindings.StructDataHeader> kVersions = const [ 367 static const List<bindings.StructDataHeader> kVersions = const [
356 const bindings.StructDataHeader(16, 0) 368 const bindings.StructDataHeader(16, 0)
357 ]; 369 ];
358 Object serviceProvider = null; 370 Object serviceProvider = null;
359 371
360 _ViewHostGetServiceProviderParams() : super(kVersions.last.size); 372 _ViewHostGetServiceProviderParams() : super(kVersions.last.size);
361 373
362 static _ViewHostGetServiceProviderParams deserialize(bindings.Message message) { 374 static _ViewHostGetServiceProviderParams deserialize(bindings.Message message) {
363 var decoder = new bindings.Decoder(message); 375 var decoder = new bindings.Decoder(message);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 "serviceProvider: $serviceProvider" ")"; 422 "serviceProvider: $serviceProvider" ")";
411 } 423 }
412 424
413 Map toJson() { 425 Map toJson() {
414 throw new bindings.MojoCodecError( 426 throw new bindings.MojoCodecError(
415 'Object containing handles cannot be encoded to JSON.'); 427 'Object containing handles cannot be encoded to JSON.');
416 } 428 }
417 } 429 }
418 430
419 431
432
433
420 class _ViewHostCreateSceneParams extends bindings.Struct { 434 class _ViewHostCreateSceneParams extends bindings.Struct {
421 static const List<bindings.StructDataHeader> kVersions = const [ 435 static const List<bindings.StructDataHeader> kVersions = const [
422 const bindings.StructDataHeader(16, 0) 436 const bindings.StructDataHeader(16, 0)
423 ]; 437 ];
424 Object scene = null; 438 Object scene = null;
425 439
426 _ViewHostCreateSceneParams() : super(kVersions.last.size); 440 _ViewHostCreateSceneParams() : super(kVersions.last.size);
427 441
428 static _ViewHostCreateSceneParams deserialize(bindings.Message message) { 442 static _ViewHostCreateSceneParams deserialize(bindings.Message message) {
429 var decoder = new bindings.Decoder(message); 443 var decoder = new bindings.Decoder(message);
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 "scene: $scene" ")"; 490 "scene: $scene" ")";
477 } 491 }
478 492
479 Map toJson() { 493 Map toJson() {
480 throw new bindings.MojoCodecError( 494 throw new bindings.MojoCodecError(
481 'Object containing handles cannot be encoded to JSON.'); 495 'Object containing handles cannot be encoded to JSON.');
482 } 496 }
483 } 497 }
484 498
485 499
500
501
486 class _ViewHostRequestLayoutParams extends bindings.Struct { 502 class _ViewHostRequestLayoutParams extends bindings.Struct {
487 static const List<bindings.StructDataHeader> kVersions = const [ 503 static const List<bindings.StructDataHeader> kVersions = const [
488 const bindings.StructDataHeader(8, 0) 504 const bindings.StructDataHeader(8, 0)
489 ]; 505 ];
490 506
491 _ViewHostRequestLayoutParams() : super(kVersions.last.size); 507 _ViewHostRequestLayoutParams() : super(kVersions.last.size);
492 508
493 static _ViewHostRequestLayoutParams deserialize(bindings.Message message) { 509 static _ViewHostRequestLayoutParams deserialize(bindings.Message message) {
494 var decoder = new bindings.Decoder(message); 510 var decoder = new bindings.Decoder(message);
495 var result = decode(decoder); 511 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 return "_ViewHostRequestLayoutParams("")"; 550 return "_ViewHostRequestLayoutParams("")";
535 } 551 }
536 552
537 Map toJson() { 553 Map toJson() {
538 Map map = new Map(); 554 Map map = new Map();
539 return map; 555 return map;
540 } 556 }
541 } 557 }
542 558
543 559
560
561
544 class _ViewHostAddChildParams extends bindings.Struct { 562 class _ViewHostAddChildParams extends bindings.Struct {
545 static const List<bindings.StructDataHeader> kVersions = const [ 563 static const List<bindings.StructDataHeader> kVersions = const [
546 const bindings.StructDataHeader(24, 0) 564 const bindings.StructDataHeader(24, 0)
547 ]; 565 ];
548 int childKey = 0; 566 int childKey = 0;
549 ViewToken childViewToken = null; 567 ViewToken childViewToken = null;
550 568
551 _ViewHostAddChildParams() : super(kVersions.last.size); 569 _ViewHostAddChildParams() : super(kVersions.last.size);
552 570
553 static _ViewHostAddChildParams deserialize(bindings.Message message) { 571 static _ViewHostAddChildParams deserialize(bindings.Message message) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 629
612 Map toJson() { 630 Map toJson() {
613 Map map = new Map(); 631 Map map = new Map();
614 map["childKey"] = childKey; 632 map["childKey"] = childKey;
615 map["childViewToken"] = childViewToken; 633 map["childViewToken"] = childViewToken;
616 return map; 634 return map;
617 } 635 }
618 } 636 }
619 637
620 638
639
640
621 class _ViewHostRemoveChildParams extends bindings.Struct { 641 class _ViewHostRemoveChildParams extends bindings.Struct {
622 static const List<bindings.StructDataHeader> kVersions = const [ 642 static const List<bindings.StructDataHeader> kVersions = const [
623 const bindings.StructDataHeader(16, 0) 643 const bindings.StructDataHeader(16, 0)
624 ]; 644 ];
625 int childKey = 0; 645 int childKey = 0;
626 646
627 _ViewHostRemoveChildParams() : super(kVersions.last.size); 647 _ViewHostRemoveChildParams() : super(kVersions.last.size);
628 648
629 static _ViewHostRemoveChildParams deserialize(bindings.Message message) { 649 static _ViewHostRemoveChildParams deserialize(bindings.Message message) {
630 var decoder = new bindings.Decoder(message); 650 var decoder = new bindings.Decoder(message);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 } 698 }
679 699
680 Map toJson() { 700 Map toJson() {
681 Map map = new Map(); 701 Map map = new Map();
682 map["childKey"] = childKey; 702 map["childKey"] = childKey;
683 return map; 703 return map;
684 } 704 }
685 } 705 }
686 706
687 707
708
709
688 class _ViewHostLayoutChildParams extends bindings.Struct { 710 class _ViewHostLayoutChildParams extends bindings.Struct {
689 static const List<bindings.StructDataHeader> kVersions = const [ 711 static const List<bindings.StructDataHeader> kVersions = const [
690 const bindings.StructDataHeader(24, 0) 712 const bindings.StructDataHeader(24, 0)
691 ]; 713 ];
692 int childKey = 0; 714 int childKey = 0;
693 layouts_mojom.ViewLayoutParams childLayoutParams = null; 715 layouts_mojom.ViewLayoutParams childLayoutParams = null;
694 716
695 _ViewHostLayoutChildParams() : super(kVersions.last.size); 717 _ViewHostLayoutChildParams() : super(kVersions.last.size);
696 718
697 static _ViewHostLayoutChildParams deserialize(bindings.Message message) { 719 static _ViewHostLayoutChildParams deserialize(bindings.Message message) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 777
756 Map toJson() { 778 Map toJson() {
757 Map map = new Map(); 779 Map map = new Map();
758 map["childKey"] = childKey; 780 map["childKey"] = childKey;
759 map["childLayoutParams"] = childLayoutParams; 781 map["childLayoutParams"] = childLayoutParams;
760 return map; 782 return map;
761 } 783 }
762 } 784 }
763 785
764 786
787
788
765 class ViewHostLayoutChildResponseParams extends bindings.Struct { 789 class ViewHostLayoutChildResponseParams extends bindings.Struct {
766 static const List<bindings.StructDataHeader> kVersions = const [ 790 static const List<bindings.StructDataHeader> kVersions = const [
767 const bindings.StructDataHeader(16, 0) 791 const bindings.StructDataHeader(16, 0)
768 ]; 792 ];
769 layouts_mojom.ViewLayoutInfo info = null; 793 layouts_mojom.ViewLayoutInfo info = null;
770 794
771 ViewHostLayoutChildResponseParams() : super(kVersions.last.size); 795 ViewHostLayoutChildResponseParams() : super(kVersions.last.size);
772 796
773 static ViewHostLayoutChildResponseParams deserialize(bindings.Message message) { 797 static ViewHostLayoutChildResponseParams deserialize(bindings.Message message) {
774 var decoder = new bindings.Decoder(message); 798 var decoder = new bindings.Decoder(message);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
822 "info: $info" ")"; 846 "info: $info" ")";
823 } 847 }
824 848
825 Map toJson() { 849 Map toJson() {
826 Map map = new Map(); 850 Map map = new Map();
827 map["info"] = info; 851 map["info"] = info;
828 return map; 852 return map;
829 } 853 }
830 } 854 }
831 855
856
857
858
832 const int _View_onLayoutName = 0; 859 const int _View_onLayoutName = 0;
833 const int _View_onChildUnavailableName = 1; 860 const int _View_onChildUnavailableName = 1;
834 861
862
863
864 class _ViewServiceDescription implements service_describer.ServiceDescription {
865 dynamic getTopLevelInterface([Function responseFactory]) => null;
866
867 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
868
869 dynamic getAllTypeDefinitions([Function responseFactory]) => null;
870 }
871
835 abstract class View { 872 abstract class View {
836 static const String serviceName = null; 873 static const String serviceName = null;
837 dynamic onLayout(layouts_mojom.ViewLayoutParams layoutParams,List<int> childre nNeedingLayout,[Function responseFactory = null]); 874 dynamic onLayout(layouts_mojom.ViewLayoutParams layoutParams,List<int> childre nNeedingLayout,[Function responseFactory = null]);
838 dynamic onChildUnavailable(int childKey,[Function responseFactory = null]); 875 dynamic onChildUnavailable(int childKey,[Function responseFactory = null]);
839 } 876 }
840 877
841 878
842 class _ViewProxyImpl extends bindings.Proxy { 879 class _ViewProxyImpl extends bindings.Proxy {
843 _ViewProxyImpl.fromEndpoint( 880 _ViewProxyImpl.fromEndpoint(
844 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 881 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
845 882
846 _ViewProxyImpl.fromHandle(core.MojoHandle handle) : 883 _ViewProxyImpl.fromHandle(core.MojoHandle handle) :
847 super.fromHandle(handle); 884 super.fromHandle(handle);
848 885
849 _ViewProxyImpl.unbound() : super.unbound(); 886 _ViewProxyImpl.unbound() : super.unbound();
850 887
851 static _ViewProxyImpl newFromEndpoint( 888 static _ViewProxyImpl newFromEndpoint(
852 core.MojoMessagePipeEndpoint endpoint) { 889 core.MojoMessagePipeEndpoint endpoint) {
853 assert(endpoint.setDescription("For _ViewProxyImpl")); 890 assert(endpoint.setDescription("For _ViewProxyImpl"));
854 return new _ViewProxyImpl.fromEndpoint(endpoint); 891 return new _ViewProxyImpl.fromEndpoint(endpoint);
855 } 892 }
856 893
894 service_describer.ServiceDescription get serviceDescription =>
895 new _ViewServiceDescription();
896
857 void handleResponse(bindings.ServiceMessage message) { 897 void handleResponse(bindings.ServiceMessage message) {
858 switch (message.header.type) { 898 switch (message.header.type) {
859 case _View_onLayoutName: 899 case _View_onLayoutName:
860 var r = ViewOnLayoutResponseParams.deserialize( 900 var r = ViewOnLayoutResponseParams.deserialize(
861 message.payload); 901 message.payload);
862 if (!message.header.hasRequestId) { 902 if (!message.header.hasRequestId) {
863 proxyError("Expected a message with a valid request Id."); 903 proxyError("Expected a message with a valid request Id.");
864 return; 904 return;
865 } 905 }
866 Completer c = completerMap[message.header.requestId]; 906 Completer c = completerMap[message.header.requestId];
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 assert(_impl == null); 1128 assert(_impl == null);
1089 _impl = d; 1129 _impl = d;
1090 } 1130 }
1091 1131
1092 String toString() { 1132 String toString() {
1093 var superString = super.toString(); 1133 var superString = super.toString();
1094 return "ViewStub($superString)"; 1134 return "ViewStub($superString)";
1095 } 1135 }
1096 1136
1097 int get version => 0; 1137 int get version => 0;
1138
1139 service_describer.ServiceDescription get serviceDescription =>
1140 new _ViewServiceDescription();
1098 } 1141 }
1099 1142
1100 const int _ViewHost_getServiceProviderName = 0; 1143 const int _ViewHost_getServiceProviderName = 0;
1101 const int _ViewHost_createSceneName = 1; 1144 const int _ViewHost_createSceneName = 1;
1102 const int _ViewHost_requestLayoutName = 2; 1145 const int _ViewHost_requestLayoutName = 2;
1103 const int _ViewHost_addChildName = 3; 1146 const int _ViewHost_addChildName = 3;
1104 const int _ViewHost_removeChildName = 4; 1147 const int _ViewHost_removeChildName = 4;
1105 const int _ViewHost_layoutChildName = 5; 1148 const int _ViewHost_layoutChildName = 5;
1106 1149
1150
1151
1152 class _ViewHostServiceDescription implements service_describer.ServiceDescriptio n {
1153 dynamic getTopLevelInterface([Function responseFactory]) => null;
1154
1155 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
1156
1157 dynamic getAllTypeDefinitions([Function responseFactory]) => null;
1158 }
1159
1107 abstract class ViewHost { 1160 abstract class ViewHost {
1108 static const String serviceName = null; 1161 static const String serviceName = null;
1109 void getServiceProvider(Object serviceProvider); 1162 void getServiceProvider(Object serviceProvider);
1110 void createScene(Object scene); 1163 void createScene(Object scene);
1111 void requestLayout(); 1164 void requestLayout();
1112 void addChild(int childKey, ViewToken childViewToken); 1165 void addChild(int childKey, ViewToken childViewToken);
1113 void removeChild(int childKey); 1166 void removeChild(int childKey);
1114 dynamic layoutChild(int childKey,layouts_mojom.ViewLayoutParams childLayoutPar ams,[Function responseFactory = null]); 1167 dynamic layoutChild(int childKey,layouts_mojom.ViewLayoutParams childLayoutPar ams,[Function responseFactory = null]);
1115 } 1168 }
1116 1169
1117 1170
1118 class _ViewHostProxyImpl extends bindings.Proxy { 1171 class _ViewHostProxyImpl extends bindings.Proxy {
1119 _ViewHostProxyImpl.fromEndpoint( 1172 _ViewHostProxyImpl.fromEndpoint(
1120 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); 1173 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint);
1121 1174
1122 _ViewHostProxyImpl.fromHandle(core.MojoHandle handle) : 1175 _ViewHostProxyImpl.fromHandle(core.MojoHandle handle) :
1123 super.fromHandle(handle); 1176 super.fromHandle(handle);
1124 1177
1125 _ViewHostProxyImpl.unbound() : super.unbound(); 1178 _ViewHostProxyImpl.unbound() : super.unbound();
1126 1179
1127 static _ViewHostProxyImpl newFromEndpoint( 1180 static _ViewHostProxyImpl newFromEndpoint(
1128 core.MojoMessagePipeEndpoint endpoint) { 1181 core.MojoMessagePipeEndpoint endpoint) {
1129 assert(endpoint.setDescription("For _ViewHostProxyImpl")); 1182 assert(endpoint.setDescription("For _ViewHostProxyImpl"));
1130 return new _ViewHostProxyImpl.fromEndpoint(endpoint); 1183 return new _ViewHostProxyImpl.fromEndpoint(endpoint);
1131 } 1184 }
1132 1185
1186 service_describer.ServiceDescription get serviceDescription =>
1187 new _ViewHostServiceDescription();
1188
1133 void handleResponse(bindings.ServiceMessage message) { 1189 void handleResponse(bindings.ServiceMessage message) {
1134 switch (message.header.type) { 1190 switch (message.header.type) {
1135 case _ViewHost_layoutChildName: 1191 case _ViewHost_layoutChildName:
1136 var r = ViewHostLayoutChildResponseParams.deserialize( 1192 var r = ViewHostLayoutChildResponseParams.deserialize(
1137 message.payload); 1193 message.payload);
1138 if (!message.header.hasRequestId) { 1194 if (!message.header.hasRequestId) {
1139 proxyError("Expected a message with a valid request Id."); 1195 proxyError("Expected a message with a valid request Id.");
1140 return; 1196 return;
1141 } 1197 }
1142 Completer c = completerMap[message.header.requestId]; 1198 Completer c = completerMap[message.header.requestId];
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 assert(_impl == null); 1435 assert(_impl == null);
1380 _impl = d; 1436 _impl = d;
1381 } 1437 }
1382 1438
1383 String toString() { 1439 String toString() {
1384 var superString = super.toString(); 1440 var superString = super.toString();
1385 return "ViewHostStub($superString)"; 1441 return "ViewHostStub($superString)";
1386 } 1442 }
1387 1443
1388 int get version => 0; 1444 int get version => 0;
1445
1446 service_describer.ServiceDescription get serviceDescription =>
1447 new _ViewHostServiceDescription();
1389 } 1448 }
1390 1449
1391 1450
1451
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698