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 directory_mojom; | 5 library directory_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_services/mojo/files/file.mojom.dart' as file_mojom; | 13 import 'package:mojo_services/mojo/files/file.mojom.dart' as file_mojom; |
12 import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom; | 14 import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom; |
13 | 15 |
14 | 16 |
15 | 17 |
16 class _DirectoryReadParams extends bindings.Struct { | 18 class _DirectoryReadParams extends bindings.Struct { |
17 static const List<bindings.StructDataHeader> kVersions = const [ | 19 static const List<bindings.StructDataHeader> kVersions = const [ |
18 const bindings.StructDataHeader(8, 0) | 20 const bindings.StructDataHeader(8, 0) |
19 ]; | 21 ]; |
20 | 22 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return "_DirectoryReadParams("")"; | 66 return "_DirectoryReadParams("")"; |
65 } | 67 } |
66 | 68 |
67 Map toJson() { | 69 Map toJson() { |
68 Map map = new Map(); | 70 Map map = new Map(); |
69 return map; | 71 return map; |
70 } | 72 } |
71 } | 73 } |
72 | 74 |
73 | 75 |
| 76 |
| 77 |
74 class DirectoryReadResponseParams extends bindings.Struct { | 78 class DirectoryReadResponseParams extends bindings.Struct { |
75 static const List<bindings.StructDataHeader> kVersions = const [ | 79 static const List<bindings.StructDataHeader> kVersions = const [ |
76 const bindings.StructDataHeader(24, 0) | 80 const bindings.StructDataHeader(24, 0) |
77 ]; | 81 ]; |
78 types_mojom.Error error = null; | 82 types_mojom.Error error = null; |
79 List<types_mojom.DirectoryEntry> directoryContents = null; | 83 List<types_mojom.DirectoryEntry> directoryContents = null; |
80 | 84 |
81 DirectoryReadResponseParams() : super(kVersions.last.size); | 85 DirectoryReadResponseParams() : super(kVersions.last.size); |
82 | 86 |
83 static DirectoryReadResponseParams deserialize(bindings.Message message) { | 87 static DirectoryReadResponseParams deserialize(bindings.Message message) { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 | 167 |
164 Map toJson() { | 168 Map toJson() { |
165 Map map = new Map(); | 169 Map map = new Map(); |
166 map["error"] = error; | 170 map["error"] = error; |
167 map["directoryContents"] = directoryContents; | 171 map["directoryContents"] = directoryContents; |
168 return map; | 172 return map; |
169 } | 173 } |
170 } | 174 } |
171 | 175 |
172 | 176 |
| 177 |
| 178 |
173 class _DirectoryStatParams extends bindings.Struct { | 179 class _DirectoryStatParams extends bindings.Struct { |
174 static const List<bindings.StructDataHeader> kVersions = const [ | 180 static const List<bindings.StructDataHeader> kVersions = const [ |
175 const bindings.StructDataHeader(8, 0) | 181 const bindings.StructDataHeader(8, 0) |
176 ]; | 182 ]; |
177 | 183 |
178 _DirectoryStatParams() : super(kVersions.last.size); | 184 _DirectoryStatParams() : super(kVersions.last.size); |
179 | 185 |
180 static _DirectoryStatParams deserialize(bindings.Message message) { | 186 static _DirectoryStatParams deserialize(bindings.Message message) { |
181 var decoder = new bindings.Decoder(message); | 187 var decoder = new bindings.Decoder(message); |
182 var result = decode(decoder); | 188 var result = decode(decoder); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 return "_DirectoryStatParams("")"; | 227 return "_DirectoryStatParams("")"; |
222 } | 228 } |
223 | 229 |
224 Map toJson() { | 230 Map toJson() { |
225 Map map = new Map(); | 231 Map map = new Map(); |
226 return map; | 232 return map; |
227 } | 233 } |
228 } | 234 } |
229 | 235 |
230 | 236 |
| 237 |
| 238 |
231 class DirectoryStatResponseParams extends bindings.Struct { | 239 class DirectoryStatResponseParams extends bindings.Struct { |
232 static const List<bindings.StructDataHeader> kVersions = const [ | 240 static const List<bindings.StructDataHeader> kVersions = const [ |
233 const bindings.StructDataHeader(24, 0) | 241 const bindings.StructDataHeader(24, 0) |
234 ]; | 242 ]; |
235 types_mojom.Error error = null; | 243 types_mojom.Error error = null; |
236 types_mojom.FileInformation fileInformation = null; | 244 types_mojom.FileInformation fileInformation = null; |
237 | 245 |
238 DirectoryStatResponseParams() : super(kVersions.last.size); | 246 DirectoryStatResponseParams() : super(kVersions.last.size); |
239 | 247 |
240 static DirectoryStatResponseParams deserialize(bindings.Message message) { | 248 static DirectoryStatResponseParams deserialize(bindings.Message message) { |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
302 | 310 |
303 Map toJson() { | 311 Map toJson() { |
304 Map map = new Map(); | 312 Map map = new Map(); |
305 map["error"] = error; | 313 map["error"] = error; |
306 map["fileInformation"] = fileInformation; | 314 map["fileInformation"] = fileInformation; |
307 return map; | 315 return map; |
308 } | 316 } |
309 } | 317 } |
310 | 318 |
311 | 319 |
| 320 |
| 321 |
312 class _DirectoryTouchParams extends bindings.Struct { | 322 class _DirectoryTouchParams extends bindings.Struct { |
313 static const List<bindings.StructDataHeader> kVersions = const [ | 323 static const List<bindings.StructDataHeader> kVersions = const [ |
314 const bindings.StructDataHeader(24, 0) | 324 const bindings.StructDataHeader(24, 0) |
315 ]; | 325 ]; |
316 types_mojom.TimespecOrNow atime = null; | 326 types_mojom.TimespecOrNow atime = null; |
317 types_mojom.TimespecOrNow mtime = null; | 327 types_mojom.TimespecOrNow mtime = null; |
318 | 328 |
319 _DirectoryTouchParams() : super(kVersions.last.size); | 329 _DirectoryTouchParams() : super(kVersions.last.size); |
320 | 330 |
321 static _DirectoryTouchParams deserialize(bindings.Message message) { | 331 static _DirectoryTouchParams deserialize(bindings.Message message) { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 | 390 |
381 Map toJson() { | 391 Map toJson() { |
382 Map map = new Map(); | 392 Map map = new Map(); |
383 map["atime"] = atime; | 393 map["atime"] = atime; |
384 map["mtime"] = mtime; | 394 map["mtime"] = mtime; |
385 return map; | 395 return map; |
386 } | 396 } |
387 } | 397 } |
388 | 398 |
389 | 399 |
| 400 |
| 401 |
390 class DirectoryTouchResponseParams extends bindings.Struct { | 402 class DirectoryTouchResponseParams extends bindings.Struct { |
391 static const List<bindings.StructDataHeader> kVersions = const [ | 403 static const List<bindings.StructDataHeader> kVersions = const [ |
392 const bindings.StructDataHeader(16, 0) | 404 const bindings.StructDataHeader(16, 0) |
393 ]; | 405 ]; |
394 types_mojom.Error error = null; | 406 types_mojom.Error error = null; |
395 | 407 |
396 DirectoryTouchResponseParams() : super(kVersions.last.size); | 408 DirectoryTouchResponseParams() : super(kVersions.last.size); |
397 | 409 |
398 static DirectoryTouchResponseParams deserialize(bindings.Message message) { | 410 static DirectoryTouchResponseParams deserialize(bindings.Message message) { |
399 var decoder = new bindings.Decoder(message); | 411 var decoder = new bindings.Decoder(message); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 } | 463 } |
452 | 464 |
453 Map toJson() { | 465 Map toJson() { |
454 Map map = new Map(); | 466 Map map = new Map(); |
455 map["error"] = error; | 467 map["error"] = error; |
456 return map; | 468 return map; |
457 } | 469 } |
458 } | 470 } |
459 | 471 |
460 | 472 |
| 473 |
| 474 |
461 class _DirectoryOpenFileParams extends bindings.Struct { | 475 class _DirectoryOpenFileParams extends bindings.Struct { |
462 static const List<bindings.StructDataHeader> kVersions = const [ | 476 static const List<bindings.StructDataHeader> kVersions = const [ |
463 const bindings.StructDataHeader(24, 0) | 477 const bindings.StructDataHeader(24, 0) |
464 ]; | 478 ]; |
465 String path = null; | 479 String path = null; |
466 Object file = null; | 480 Object file = null; |
467 int openFlags = 0; | 481 int openFlags = 0; |
468 | 482 |
469 _DirectoryOpenFileParams() : super(kVersions.last.size); | 483 _DirectoryOpenFileParams() : super(kVersions.last.size); |
470 | 484 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 "openFlags: $openFlags" ")"; | 547 "openFlags: $openFlags" ")"; |
534 } | 548 } |
535 | 549 |
536 Map toJson() { | 550 Map toJson() { |
537 throw new bindings.MojoCodecError( | 551 throw new bindings.MojoCodecError( |
538 'Object containing handles cannot be encoded to JSON.'); | 552 'Object containing handles cannot be encoded to JSON.'); |
539 } | 553 } |
540 } | 554 } |
541 | 555 |
542 | 556 |
| 557 |
| 558 |
543 class DirectoryOpenFileResponseParams extends bindings.Struct { | 559 class DirectoryOpenFileResponseParams extends bindings.Struct { |
544 static const List<bindings.StructDataHeader> kVersions = const [ | 560 static const List<bindings.StructDataHeader> kVersions = const [ |
545 const bindings.StructDataHeader(16, 0) | 561 const bindings.StructDataHeader(16, 0) |
546 ]; | 562 ]; |
547 types_mojom.Error error = null; | 563 types_mojom.Error error = null; |
548 | 564 |
549 DirectoryOpenFileResponseParams() : super(kVersions.last.size); | 565 DirectoryOpenFileResponseParams() : super(kVersions.last.size); |
550 | 566 |
551 static DirectoryOpenFileResponseParams deserialize(bindings.Message message) { | 567 static DirectoryOpenFileResponseParams deserialize(bindings.Message message) { |
552 var decoder = new bindings.Decoder(message); | 568 var decoder = new bindings.Decoder(message); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
604 } | 620 } |
605 | 621 |
606 Map toJson() { | 622 Map toJson() { |
607 Map map = new Map(); | 623 Map map = new Map(); |
608 map["error"] = error; | 624 map["error"] = error; |
609 return map; | 625 return map; |
610 } | 626 } |
611 } | 627 } |
612 | 628 |
613 | 629 |
| 630 |
| 631 |
614 class _DirectoryOpenDirectoryParams extends bindings.Struct { | 632 class _DirectoryOpenDirectoryParams extends bindings.Struct { |
615 static const List<bindings.StructDataHeader> kVersions = const [ | 633 static const List<bindings.StructDataHeader> kVersions = const [ |
616 const bindings.StructDataHeader(24, 0) | 634 const bindings.StructDataHeader(24, 0) |
617 ]; | 635 ]; |
618 String path = null; | 636 String path = null; |
619 Object directory = null; | 637 Object directory = null; |
620 int openFlags = 0; | 638 int openFlags = 0; |
621 | 639 |
622 _DirectoryOpenDirectoryParams() : super(kVersions.last.size); | 640 _DirectoryOpenDirectoryParams() : super(kVersions.last.size); |
623 | 641 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
686 "openFlags: $openFlags" ")"; | 704 "openFlags: $openFlags" ")"; |
687 } | 705 } |
688 | 706 |
689 Map toJson() { | 707 Map toJson() { |
690 throw new bindings.MojoCodecError( | 708 throw new bindings.MojoCodecError( |
691 'Object containing handles cannot be encoded to JSON.'); | 709 'Object containing handles cannot be encoded to JSON.'); |
692 } | 710 } |
693 } | 711 } |
694 | 712 |
695 | 713 |
| 714 |
| 715 |
696 class DirectoryOpenDirectoryResponseParams extends bindings.Struct { | 716 class DirectoryOpenDirectoryResponseParams extends bindings.Struct { |
697 static const List<bindings.StructDataHeader> kVersions = const [ | 717 static const List<bindings.StructDataHeader> kVersions = const [ |
698 const bindings.StructDataHeader(16, 0) | 718 const bindings.StructDataHeader(16, 0) |
699 ]; | 719 ]; |
700 types_mojom.Error error = null; | 720 types_mojom.Error error = null; |
701 | 721 |
702 DirectoryOpenDirectoryResponseParams() : super(kVersions.last.size); | 722 DirectoryOpenDirectoryResponseParams() : super(kVersions.last.size); |
703 | 723 |
704 static DirectoryOpenDirectoryResponseParams deserialize(bindings.Message messa
ge) { | 724 static DirectoryOpenDirectoryResponseParams deserialize(bindings.Message messa
ge) { |
705 var decoder = new bindings.Decoder(message); | 725 var decoder = new bindings.Decoder(message); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
757 } | 777 } |
758 | 778 |
759 Map toJson() { | 779 Map toJson() { |
760 Map map = new Map(); | 780 Map map = new Map(); |
761 map["error"] = error; | 781 map["error"] = error; |
762 return map; | 782 return map; |
763 } | 783 } |
764 } | 784 } |
765 | 785 |
766 | 786 |
| 787 |
| 788 |
767 class _DirectoryRenameParams extends bindings.Struct { | 789 class _DirectoryRenameParams extends bindings.Struct { |
768 static const List<bindings.StructDataHeader> kVersions = const [ | 790 static const List<bindings.StructDataHeader> kVersions = const [ |
769 const bindings.StructDataHeader(24, 0) | 791 const bindings.StructDataHeader(24, 0) |
770 ]; | 792 ]; |
771 String path = null; | 793 String path = null; |
772 String newPath = null; | 794 String newPath = null; |
773 | 795 |
774 _DirectoryRenameParams() : super(kVersions.last.size); | 796 _DirectoryRenameParams() : super(kVersions.last.size); |
775 | 797 |
776 static _DirectoryRenameParams deserialize(bindings.Message message) { | 798 static _DirectoryRenameParams deserialize(bindings.Message message) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 | 855 |
834 Map toJson() { | 856 Map toJson() { |
835 Map map = new Map(); | 857 Map map = new Map(); |
836 map["path"] = path; | 858 map["path"] = path; |
837 map["newPath"] = newPath; | 859 map["newPath"] = newPath; |
838 return map; | 860 return map; |
839 } | 861 } |
840 } | 862 } |
841 | 863 |
842 | 864 |
| 865 |
| 866 |
843 class DirectoryRenameResponseParams extends bindings.Struct { | 867 class DirectoryRenameResponseParams extends bindings.Struct { |
844 static const List<bindings.StructDataHeader> kVersions = const [ | 868 static const List<bindings.StructDataHeader> kVersions = const [ |
845 const bindings.StructDataHeader(16, 0) | 869 const bindings.StructDataHeader(16, 0) |
846 ]; | 870 ]; |
847 types_mojom.Error error = null; | 871 types_mojom.Error error = null; |
848 | 872 |
849 DirectoryRenameResponseParams() : super(kVersions.last.size); | 873 DirectoryRenameResponseParams() : super(kVersions.last.size); |
850 | 874 |
851 static DirectoryRenameResponseParams deserialize(bindings.Message message) { | 875 static DirectoryRenameResponseParams deserialize(bindings.Message message) { |
852 var decoder = new bindings.Decoder(message); | 876 var decoder = new bindings.Decoder(message); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 } | 928 } |
905 | 929 |
906 Map toJson() { | 930 Map toJson() { |
907 Map map = new Map(); | 931 Map map = new Map(); |
908 map["error"] = error; | 932 map["error"] = error; |
909 return map; | 933 return map; |
910 } | 934 } |
911 } | 935 } |
912 | 936 |
913 | 937 |
| 938 |
| 939 |
914 class _DirectoryDeleteParams extends bindings.Struct { | 940 class _DirectoryDeleteParams extends bindings.Struct { |
915 static const List<bindings.StructDataHeader> kVersions = const [ | 941 static const List<bindings.StructDataHeader> kVersions = const [ |
916 const bindings.StructDataHeader(24, 0) | 942 const bindings.StructDataHeader(24, 0) |
917 ]; | 943 ]; |
918 String path = null; | 944 String path = null; |
919 int deleteFlags = 0; | 945 int deleteFlags = 0; |
920 | 946 |
921 _DirectoryDeleteParams() : super(kVersions.last.size); | 947 _DirectoryDeleteParams() : super(kVersions.last.size); |
922 | 948 |
923 static _DirectoryDeleteParams deserialize(bindings.Message message) { | 949 static _DirectoryDeleteParams deserialize(bindings.Message message) { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
980 | 1006 |
981 Map toJson() { | 1007 Map toJson() { |
982 Map map = new Map(); | 1008 Map map = new Map(); |
983 map["path"] = path; | 1009 map["path"] = path; |
984 map["deleteFlags"] = deleteFlags; | 1010 map["deleteFlags"] = deleteFlags; |
985 return map; | 1011 return map; |
986 } | 1012 } |
987 } | 1013 } |
988 | 1014 |
989 | 1015 |
| 1016 |
| 1017 |
990 class DirectoryDeleteResponseParams extends bindings.Struct { | 1018 class DirectoryDeleteResponseParams extends bindings.Struct { |
991 static const List<bindings.StructDataHeader> kVersions = const [ | 1019 static const List<bindings.StructDataHeader> kVersions = const [ |
992 const bindings.StructDataHeader(16, 0) | 1020 const bindings.StructDataHeader(16, 0) |
993 ]; | 1021 ]; |
994 types_mojom.Error error = null; | 1022 types_mojom.Error error = null; |
995 | 1023 |
996 DirectoryDeleteResponseParams() : super(kVersions.last.size); | 1024 DirectoryDeleteResponseParams() : super(kVersions.last.size); |
997 | 1025 |
998 static DirectoryDeleteResponseParams deserialize(bindings.Message message) { | 1026 static DirectoryDeleteResponseParams deserialize(bindings.Message message) { |
999 var decoder = new bindings.Decoder(message); | 1027 var decoder = new bindings.Decoder(message); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 "error: $error" ")"; | 1078 "error: $error" ")"; |
1051 } | 1079 } |
1052 | 1080 |
1053 Map toJson() { | 1081 Map toJson() { |
1054 Map map = new Map(); | 1082 Map map = new Map(); |
1055 map["error"] = error; | 1083 map["error"] = error; |
1056 return map; | 1084 return map; |
1057 } | 1085 } |
1058 } | 1086 } |
1059 | 1087 |
| 1088 |
| 1089 |
| 1090 |
1060 const int _Directory_readName = 0; | 1091 const int _Directory_readName = 0; |
1061 const int _Directory_statName = 1; | 1092 const int _Directory_statName = 1; |
1062 const int _Directory_touchName = 2; | 1093 const int _Directory_touchName = 2; |
1063 const int _Directory_openFileName = 3; | 1094 const int _Directory_openFileName = 3; |
1064 const int _Directory_openDirectoryName = 4; | 1095 const int _Directory_openDirectoryName = 4; |
1065 const int _Directory_renameName = 5; | 1096 const int _Directory_renameName = 5; |
1066 const int _Directory_deleteName = 6; | 1097 const int _Directory_deleteName = 6; |
1067 | 1098 |
| 1099 |
| 1100 |
| 1101 class _DirectoryServiceDescription implements service_describer.ServiceDescripti
on { |
| 1102 dynamic getTopLevelInterface([Function responseFactory]) => null; |
| 1103 |
| 1104 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; |
| 1105 |
| 1106 dynamic getAllTypeDefinitions([Function responseFactory]) => null; |
| 1107 } |
| 1108 |
1068 abstract class Directory { | 1109 abstract class Directory { |
1069 static const String serviceName = null; | 1110 static const String serviceName = null; |
1070 dynamic read([Function responseFactory = null]); | 1111 dynamic read([Function responseFactory = null]); |
1071 dynamic stat([Function responseFactory = null]); | 1112 dynamic stat([Function responseFactory = null]); |
1072 dynamic touch(types_mojom.TimespecOrNow atime,types_mojom.TimespecOrNow mtime,
[Function responseFactory = null]); | 1113 dynamic touch(types_mojom.TimespecOrNow atime,types_mojom.TimespecOrNow mtime,
[Function responseFactory = null]); |
1073 dynamic openFile(String path,Object file,int openFlags,[Function responseFacto
ry = null]); | 1114 dynamic openFile(String path,Object file,int openFlags,[Function responseFacto
ry = null]); |
1074 dynamic openDirectory(String path,Object directory,int openFlags,[Function res
ponseFactory = null]); | 1115 dynamic openDirectory(String path,Object directory,int openFlags,[Function res
ponseFactory = null]); |
1075 dynamic rename(String path,String newPath,[Function responseFactory = null]); | 1116 dynamic rename(String path,String newPath,[Function responseFactory = null]); |
1076 dynamic delete(String path,int deleteFlags,[Function responseFactory = null]); | 1117 dynamic delete(String path,int deleteFlags,[Function responseFactory = null]); |
1077 } | 1118 } |
1078 | 1119 |
1079 | 1120 |
1080 class _DirectoryProxyImpl extends bindings.Proxy { | 1121 class _DirectoryProxyImpl extends bindings.Proxy { |
1081 _DirectoryProxyImpl.fromEndpoint( | 1122 _DirectoryProxyImpl.fromEndpoint( |
1082 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1123 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1083 | 1124 |
1084 _DirectoryProxyImpl.fromHandle(core.MojoHandle handle) : | 1125 _DirectoryProxyImpl.fromHandle(core.MojoHandle handle) : |
1085 super.fromHandle(handle); | 1126 super.fromHandle(handle); |
1086 | 1127 |
1087 _DirectoryProxyImpl.unbound() : super.unbound(); | 1128 _DirectoryProxyImpl.unbound() : super.unbound(); |
1088 | 1129 |
1089 static _DirectoryProxyImpl newFromEndpoint( | 1130 static _DirectoryProxyImpl newFromEndpoint( |
1090 core.MojoMessagePipeEndpoint endpoint) { | 1131 core.MojoMessagePipeEndpoint endpoint) { |
1091 assert(endpoint.setDescription("For _DirectoryProxyImpl")); | 1132 assert(endpoint.setDescription("For _DirectoryProxyImpl")); |
1092 return new _DirectoryProxyImpl.fromEndpoint(endpoint); | 1133 return new _DirectoryProxyImpl.fromEndpoint(endpoint); |
1093 } | 1134 } |
1094 | 1135 |
| 1136 service_describer.ServiceDescription get serviceDescription => |
| 1137 new _DirectoryServiceDescription(); |
| 1138 |
1095 void handleResponse(bindings.ServiceMessage message) { | 1139 void handleResponse(bindings.ServiceMessage message) { |
1096 switch (message.header.type) { | 1140 switch (message.header.type) { |
1097 case _Directory_readName: | 1141 case _Directory_readName: |
1098 var r = DirectoryReadResponseParams.deserialize( | 1142 var r = DirectoryReadResponseParams.deserialize( |
1099 message.payload); | 1143 message.payload); |
1100 if (!message.header.hasRequestId) { | 1144 if (!message.header.hasRequestId) { |
1101 proxyError("Expected a message with a valid request Id."); | 1145 proxyError("Expected a message with a valid request Id."); |
1102 return; | 1146 return; |
1103 } | 1147 } |
1104 Completer c = completerMap[message.header.requestId]; | 1148 Completer c = completerMap[message.header.requestId]; |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1613 assert(_impl == null); | 1657 assert(_impl == null); |
1614 _impl = d; | 1658 _impl = d; |
1615 } | 1659 } |
1616 | 1660 |
1617 String toString() { | 1661 String toString() { |
1618 var superString = super.toString(); | 1662 var superString = super.toString(); |
1619 return "DirectoryStub($superString)"; | 1663 return "DirectoryStub($superString)"; |
1620 } | 1664 } |
1621 | 1665 |
1622 int get version => 0; | 1666 int get version => 0; |
| 1667 |
| 1668 service_describer.ServiceDescription get serviceDescription => |
| 1669 new _DirectoryServiceDescription(); |
1623 } | 1670 } |
1624 | 1671 |
1625 | 1672 |
| 1673 |
OLD | NEW |