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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/files/file.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 file_mojom; 5 library file_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_services/mojo/files/types.mojom.dart' as types_mojom; 10 import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 return "_FileCloseParams("")"; 62 return "_FileCloseParams("")";
63 } 63 }
64 64
65 Map toJson() { 65 Map toJson() {
66 Map map = new Map(); 66 Map map = new Map();
67 return map; 67 return map;
68 } 68 }
69 } 69 }
70 70
71 71
72
73
74 class FileCloseResponseParams extends bindings.Struct { 72 class FileCloseResponseParams extends bindings.Struct {
75 static const List<bindings.StructDataHeader> kVersions = const [ 73 static const List<bindings.StructDataHeader> kVersions = const [
76 const bindings.StructDataHeader(16, 0) 74 const bindings.StructDataHeader(16, 0)
77 ]; 75 ];
78 types_mojom.Error err = null; 76 types_mojom.Error err = null;
79 77
80 FileCloseResponseParams() : super(kVersions.last.size); 78 FileCloseResponseParams() : super(kVersions.last.size);
81 79
82 static FileCloseResponseParams deserialize(bindings.Message message) { 80 static FileCloseResponseParams deserialize(bindings.Message message) {
83 var decoder = new bindings.Decoder(message); 81 var decoder = new bindings.Decoder(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 } 138 }
141 139
142 Map toJson() { 140 Map toJson() {
143 Map map = new Map(); 141 Map map = new Map();
144 map["err"] = err; 142 map["err"] = err;
145 return map; 143 return map;
146 } 144 }
147 } 145 }
148 146
149 147
150
151
152 class _FileReadParams extends bindings.Struct { 148 class _FileReadParams extends bindings.Struct {
153 static const List<bindings.StructDataHeader> kVersions = const [ 149 static const List<bindings.StructDataHeader> kVersions = const [
154 const bindings.StructDataHeader(24, 0) 150 const bindings.StructDataHeader(24, 0)
155 ]; 151 ];
156 int numBytesToRead = 0; 152 int numBytesToRead = 0;
157 types_mojom.Whence whence = null; 153 types_mojom.Whence whence = null;
158 int offset = 0; 154 int offset = 0;
159 155
160 _FileReadParams() : super(kVersions.last.size); 156 _FileReadParams() : super(kVersions.last.size);
161 157
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 Map toJson() { 242 Map toJson() {
247 Map map = new Map(); 243 Map map = new Map();
248 map["numBytesToRead"] = numBytesToRead; 244 map["numBytesToRead"] = numBytesToRead;
249 map["whence"] = whence; 245 map["whence"] = whence;
250 map["offset"] = offset; 246 map["offset"] = offset;
251 return map; 247 return map;
252 } 248 }
253 } 249 }
254 250
255 251
256
257
258 class FileReadResponseParams extends bindings.Struct { 252 class FileReadResponseParams extends bindings.Struct {
259 static const List<bindings.StructDataHeader> kVersions = const [ 253 static const List<bindings.StructDataHeader> kVersions = const [
260 const bindings.StructDataHeader(24, 0) 254 const bindings.StructDataHeader(24, 0)
261 ]; 255 ];
262 types_mojom.Error error = null; 256 types_mojom.Error error = null;
263 List<int> bytesRead = null; 257 List<int> bytesRead = null;
264 258
265 FileReadResponseParams() : super(kVersions.last.size); 259 FileReadResponseParams() : super(kVersions.last.size);
266 260
267 static FileReadResponseParams deserialize(bindings.Message message) { 261 static FileReadResponseParams deserialize(bindings.Message message) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 332
339 Map toJson() { 333 Map toJson() {
340 Map map = new Map(); 334 Map map = new Map();
341 map["error"] = error; 335 map["error"] = error;
342 map["bytesRead"] = bytesRead; 336 map["bytesRead"] = bytesRead;
343 return map; 337 return map;
344 } 338 }
345 } 339 }
346 340
347 341
348
349
350 class _FileWriteParams extends bindings.Struct { 342 class _FileWriteParams extends bindings.Struct {
351 static const List<bindings.StructDataHeader> kVersions = const [ 343 static const List<bindings.StructDataHeader> kVersions = const [
352 const bindings.StructDataHeader(32, 0) 344 const bindings.StructDataHeader(32, 0)
353 ]; 345 ];
354 List<int> bytesToWrite = null; 346 List<int> bytesToWrite = null;
355 int offset = 0; 347 int offset = 0;
356 types_mojom.Whence whence = null; 348 types_mojom.Whence whence = null;
357 349
358 _FileWriteParams() : super(kVersions.last.size); 350 _FileWriteParams() : super(kVersions.last.size);
359 351
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 Map toJson() { 436 Map toJson() {
445 Map map = new Map(); 437 Map map = new Map();
446 map["bytesToWrite"] = bytesToWrite; 438 map["bytesToWrite"] = bytesToWrite;
447 map["offset"] = offset; 439 map["offset"] = offset;
448 map["whence"] = whence; 440 map["whence"] = whence;
449 return map; 441 return map;
450 } 442 }
451 } 443 }
452 444
453 445
454
455
456 class FileWriteResponseParams extends bindings.Struct { 446 class FileWriteResponseParams extends bindings.Struct {
457 static const List<bindings.StructDataHeader> kVersions = const [ 447 static const List<bindings.StructDataHeader> kVersions = const [
458 const bindings.StructDataHeader(16, 0) 448 const bindings.StructDataHeader(16, 0)
459 ]; 449 ];
460 types_mojom.Error error = null; 450 types_mojom.Error error = null;
461 int numBytesWritten = 0; 451 int numBytesWritten = 0;
462 452
463 FileWriteResponseParams() : super(kVersions.last.size); 453 FileWriteResponseParams() : super(kVersions.last.size);
464 454
465 static FileWriteResponseParams deserialize(bindings.Message message) { 455 static FileWriteResponseParams deserialize(bindings.Message message) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 526
537 Map toJson() { 527 Map toJson() {
538 Map map = new Map(); 528 Map map = new Map();
539 map["error"] = error; 529 map["error"] = error;
540 map["numBytesWritten"] = numBytesWritten; 530 map["numBytesWritten"] = numBytesWritten;
541 return map; 531 return map;
542 } 532 }
543 } 533 }
544 534
545 535
546
547
548 class _FileReadToStreamParams extends bindings.Struct { 536 class _FileReadToStreamParams extends bindings.Struct {
549 static const List<bindings.StructDataHeader> kVersions = const [ 537 static const List<bindings.StructDataHeader> kVersions = const [
550 const bindings.StructDataHeader(32, 0) 538 const bindings.StructDataHeader(32, 0)
551 ]; 539 ];
552 core.MojoDataPipeProducer source = null; 540 core.MojoDataPipeProducer source = null;
553 types_mojom.Whence whence = null; 541 types_mojom.Whence whence = null;
554 int offset = 0; 542 int offset = 0;
555 int numBytesToRead = 0; 543 int numBytesToRead = 0;
556 544
557 _FileReadToStreamParams() : super(kVersions.last.size); 545 _FileReadToStreamParams() : super(kVersions.last.size);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 "numBytesToRead: $numBytesToRead" ")"; 640 "numBytesToRead: $numBytesToRead" ")";
653 } 641 }
654 642
655 Map toJson() { 643 Map toJson() {
656 throw new bindings.MojoCodecError( 644 throw new bindings.MojoCodecError(
657 'Object containing handles cannot be encoded to JSON.'); 645 'Object containing handles cannot be encoded to JSON.');
658 } 646 }
659 } 647 }
660 648
661 649
662
663
664 class FileReadToStreamResponseParams extends bindings.Struct { 650 class FileReadToStreamResponseParams extends bindings.Struct {
665 static const List<bindings.StructDataHeader> kVersions = const [ 651 static const List<bindings.StructDataHeader> kVersions = const [
666 const bindings.StructDataHeader(16, 0) 652 const bindings.StructDataHeader(16, 0)
667 ]; 653 ];
668 types_mojom.Error error = null; 654 types_mojom.Error error = null;
669 655
670 FileReadToStreamResponseParams() : super(kVersions.last.size); 656 FileReadToStreamResponseParams() : super(kVersions.last.size);
671 657
672 static FileReadToStreamResponseParams deserialize(bindings.Message message) { 658 static FileReadToStreamResponseParams deserialize(bindings.Message message) {
673 var decoder = new bindings.Decoder(message); 659 var decoder = new bindings.Decoder(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 } 716 }
731 717
732 Map toJson() { 718 Map toJson() {
733 Map map = new Map(); 719 Map map = new Map();
734 map["error"] = error; 720 map["error"] = error;
735 return map; 721 return map;
736 } 722 }
737 } 723 }
738 724
739 725
740
741
742 class _FileWriteFromStreamParams extends bindings.Struct { 726 class _FileWriteFromStreamParams extends bindings.Struct {
743 static const List<bindings.StructDataHeader> kVersions = const [ 727 static const List<bindings.StructDataHeader> kVersions = const [
744 const bindings.StructDataHeader(24, 0) 728 const bindings.StructDataHeader(24, 0)
745 ]; 729 ];
746 core.MojoDataPipeConsumer sink = null; 730 core.MojoDataPipeConsumer sink = null;
747 types_mojom.Whence whence = null; 731 types_mojom.Whence whence = null;
748 int offset = 0; 732 int offset = 0;
749 733
750 _FileWriteFromStreamParams() : super(kVersions.last.size); 734 _FileWriteFromStreamParams() : super(kVersions.last.size);
751 735
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 "offset: $offset" ")"; 817 "offset: $offset" ")";
834 } 818 }
835 819
836 Map toJson() { 820 Map toJson() {
837 throw new bindings.MojoCodecError( 821 throw new bindings.MojoCodecError(
838 'Object containing handles cannot be encoded to JSON.'); 822 'Object containing handles cannot be encoded to JSON.');
839 } 823 }
840 } 824 }
841 825
842 826
843
844
845 class FileWriteFromStreamResponseParams extends bindings.Struct { 827 class FileWriteFromStreamResponseParams extends bindings.Struct {
846 static const List<bindings.StructDataHeader> kVersions = const [ 828 static const List<bindings.StructDataHeader> kVersions = const [
847 const bindings.StructDataHeader(16, 0) 829 const bindings.StructDataHeader(16, 0)
848 ]; 830 ];
849 types_mojom.Error error = null; 831 types_mojom.Error error = null;
850 832
851 FileWriteFromStreamResponseParams() : super(kVersions.last.size); 833 FileWriteFromStreamResponseParams() : super(kVersions.last.size);
852 834
853 static FileWriteFromStreamResponseParams deserialize(bindings.Message message) { 835 static FileWriteFromStreamResponseParams deserialize(bindings.Message message) {
854 var decoder = new bindings.Decoder(message); 836 var decoder = new bindings.Decoder(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
911 } 893 }
912 894
913 Map toJson() { 895 Map toJson() {
914 Map map = new Map(); 896 Map map = new Map();
915 map["error"] = error; 897 map["error"] = error;
916 return map; 898 return map;
917 } 899 }
918 } 900 }
919 901
920 902
921
922
923 class _FileTellParams extends bindings.Struct { 903 class _FileTellParams extends bindings.Struct {
924 static const List<bindings.StructDataHeader> kVersions = const [ 904 static const List<bindings.StructDataHeader> kVersions = const [
925 const bindings.StructDataHeader(8, 0) 905 const bindings.StructDataHeader(8, 0)
926 ]; 906 ];
927 907
928 _FileTellParams() : super(kVersions.last.size); 908 _FileTellParams() : super(kVersions.last.size);
929 909
930 static _FileTellParams deserialize(bindings.Message message) { 910 static _FileTellParams deserialize(bindings.Message message) {
931 var decoder = new bindings.Decoder(message); 911 var decoder = new bindings.Decoder(message);
932 var result = decode(decoder); 912 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 return "_FileTellParams("")"; 951 return "_FileTellParams("")";
972 } 952 }
973 953
974 Map toJson() { 954 Map toJson() {
975 Map map = new Map(); 955 Map map = new Map();
976 return map; 956 return map;
977 } 957 }
978 } 958 }
979 959
980 960
981
982
983 class FileTellResponseParams extends bindings.Struct { 961 class FileTellResponseParams extends bindings.Struct {
984 static const List<bindings.StructDataHeader> kVersions = const [ 962 static const List<bindings.StructDataHeader> kVersions = const [
985 const bindings.StructDataHeader(24, 0) 963 const bindings.StructDataHeader(24, 0)
986 ]; 964 ];
987 types_mojom.Error error = null; 965 types_mojom.Error error = null;
988 int position = 0; 966 int position = 0;
989 967
990 FileTellResponseParams() : super(kVersions.last.size); 968 FileTellResponseParams() : super(kVersions.last.size);
991 969
992 static FileTellResponseParams deserialize(bindings.Message message) { 970 static FileTellResponseParams deserialize(bindings.Message message) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 1041
1064 Map toJson() { 1042 Map toJson() {
1065 Map map = new Map(); 1043 Map map = new Map();
1066 map["error"] = error; 1044 map["error"] = error;
1067 map["position"] = position; 1045 map["position"] = position;
1068 return map; 1046 return map;
1069 } 1047 }
1070 } 1048 }
1071 1049
1072 1050
1073
1074
1075 class _FileSeekParams extends bindings.Struct { 1051 class _FileSeekParams extends bindings.Struct {
1076 static const List<bindings.StructDataHeader> kVersions = const [ 1052 static const List<bindings.StructDataHeader> kVersions = const [
1077 const bindings.StructDataHeader(24, 0) 1053 const bindings.StructDataHeader(24, 0)
1078 ]; 1054 ];
1079 int offset = 0; 1055 int offset = 0;
1080 types_mojom.Whence whence = null; 1056 types_mojom.Whence whence = null;
1081 1057
1082 _FileSeekParams() : super(kVersions.last.size); 1058 _FileSeekParams() : super(kVersions.last.size);
1083 1059
1084 static _FileSeekParams deserialize(bindings.Message message) { 1060 static _FileSeekParams deserialize(bindings.Message message) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1155 1131
1156 Map toJson() { 1132 Map toJson() {
1157 Map map = new Map(); 1133 Map map = new Map();
1158 map["offset"] = offset; 1134 map["offset"] = offset;
1159 map["whence"] = whence; 1135 map["whence"] = whence;
1160 return map; 1136 return map;
1161 } 1137 }
1162 } 1138 }
1163 1139
1164 1140
1165
1166
1167 class FileSeekResponseParams extends bindings.Struct { 1141 class FileSeekResponseParams extends bindings.Struct {
1168 static const List<bindings.StructDataHeader> kVersions = const [ 1142 static const List<bindings.StructDataHeader> kVersions = const [
1169 const bindings.StructDataHeader(24, 0) 1143 const bindings.StructDataHeader(24, 0)
1170 ]; 1144 ];
1171 types_mojom.Error error = null; 1145 types_mojom.Error error = null;
1172 int position = 0; 1146 int position = 0;
1173 1147
1174 FileSeekResponseParams() : super(kVersions.last.size); 1148 FileSeekResponseParams() : super(kVersions.last.size);
1175 1149
1176 static FileSeekResponseParams deserialize(bindings.Message message) { 1150 static FileSeekResponseParams deserialize(bindings.Message message) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1247 1221
1248 Map toJson() { 1222 Map toJson() {
1249 Map map = new Map(); 1223 Map map = new Map();
1250 map["error"] = error; 1224 map["error"] = error;
1251 map["position"] = position; 1225 map["position"] = position;
1252 return map; 1226 return map;
1253 } 1227 }
1254 } 1228 }
1255 1229
1256 1230
1257
1258
1259 class _FileStatParams extends bindings.Struct { 1231 class _FileStatParams extends bindings.Struct {
1260 static const List<bindings.StructDataHeader> kVersions = const [ 1232 static const List<bindings.StructDataHeader> kVersions = const [
1261 const bindings.StructDataHeader(8, 0) 1233 const bindings.StructDataHeader(8, 0)
1262 ]; 1234 ];
1263 1235
1264 _FileStatParams() : super(kVersions.last.size); 1236 _FileStatParams() : super(kVersions.last.size);
1265 1237
1266 static _FileStatParams deserialize(bindings.Message message) { 1238 static _FileStatParams deserialize(bindings.Message message) {
1267 var decoder = new bindings.Decoder(message); 1239 var decoder = new bindings.Decoder(message);
1268 var result = decode(decoder); 1240 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
1307 return "_FileStatParams("")"; 1279 return "_FileStatParams("")";
1308 } 1280 }
1309 1281
1310 Map toJson() { 1282 Map toJson() {
1311 Map map = new Map(); 1283 Map map = new Map();
1312 return map; 1284 return map;
1313 } 1285 }
1314 } 1286 }
1315 1287
1316 1288
1317
1318
1319 class FileStatResponseParams extends bindings.Struct { 1289 class FileStatResponseParams extends bindings.Struct {
1320 static const List<bindings.StructDataHeader> kVersions = const [ 1290 static const List<bindings.StructDataHeader> kVersions = const [
1321 const bindings.StructDataHeader(24, 0) 1291 const bindings.StructDataHeader(24, 0)
1322 ]; 1292 ];
1323 types_mojom.Error error = null; 1293 types_mojom.Error error = null;
1324 types_mojom.FileInformation fileInformation = null; 1294 types_mojom.FileInformation fileInformation = null;
1325 1295
1326 FileStatResponseParams() : super(kVersions.last.size); 1296 FileStatResponseParams() : super(kVersions.last.size);
1327 1297
1328 static FileStatResponseParams deserialize(bindings.Message message) { 1298 static FileStatResponseParams deserialize(bindings.Message message) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
1400 1370
1401 Map toJson() { 1371 Map toJson() {
1402 Map map = new Map(); 1372 Map map = new Map();
1403 map["error"] = error; 1373 map["error"] = error;
1404 map["fileInformation"] = fileInformation; 1374 map["fileInformation"] = fileInformation;
1405 return map; 1375 return map;
1406 } 1376 }
1407 } 1377 }
1408 1378
1409 1379
1410
1411
1412 class _FileTruncateParams extends bindings.Struct { 1380 class _FileTruncateParams extends bindings.Struct {
1413 static const List<bindings.StructDataHeader> kVersions = const [ 1381 static const List<bindings.StructDataHeader> kVersions = const [
1414 const bindings.StructDataHeader(16, 0) 1382 const bindings.StructDataHeader(16, 0)
1415 ]; 1383 ];
1416 int size = 0; 1384 int size = 0;
1417 1385
1418 _FileTruncateParams() : super(kVersions.last.size); 1386 _FileTruncateParams() : super(kVersions.last.size);
1419 1387
1420 static _FileTruncateParams deserialize(bindings.Message message) { 1388 static _FileTruncateParams deserialize(bindings.Message message) {
1421 var decoder = new bindings.Decoder(message); 1389 var decoder = new bindings.Decoder(message);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 } 1442 }
1475 1443
1476 Map toJson() { 1444 Map toJson() {
1477 Map map = new Map(); 1445 Map map = new Map();
1478 map["size"] = size; 1446 map["size"] = size;
1479 return map; 1447 return map;
1480 } 1448 }
1481 } 1449 }
1482 1450
1483 1451
1484
1485
1486 class FileTruncateResponseParams extends bindings.Struct { 1452 class FileTruncateResponseParams extends bindings.Struct {
1487 static const List<bindings.StructDataHeader> kVersions = const [ 1453 static const List<bindings.StructDataHeader> kVersions = const [
1488 const bindings.StructDataHeader(16, 0) 1454 const bindings.StructDataHeader(16, 0)
1489 ]; 1455 ];
1490 types_mojom.Error error = null; 1456 types_mojom.Error error = null;
1491 1457
1492 FileTruncateResponseParams() : super(kVersions.last.size); 1458 FileTruncateResponseParams() : super(kVersions.last.size);
1493 1459
1494 static FileTruncateResponseParams deserialize(bindings.Message message) { 1460 static FileTruncateResponseParams deserialize(bindings.Message message) {
1495 var decoder = new bindings.Decoder(message); 1461 var decoder = new bindings.Decoder(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1552 } 1518 }
1553 1519
1554 Map toJson() { 1520 Map toJson() {
1555 Map map = new Map(); 1521 Map map = new Map();
1556 map["error"] = error; 1522 map["error"] = error;
1557 return map; 1523 return map;
1558 } 1524 }
1559 } 1525 }
1560 1526
1561 1527
1562
1563
1564 class _FileTouchParams extends bindings.Struct { 1528 class _FileTouchParams extends bindings.Struct {
1565 static const List<bindings.StructDataHeader> kVersions = const [ 1529 static const List<bindings.StructDataHeader> kVersions = const [
1566 const bindings.StructDataHeader(24, 0) 1530 const bindings.StructDataHeader(24, 0)
1567 ]; 1531 ];
1568 types_mojom.TimespecOrNow atime = null; 1532 types_mojom.TimespecOrNow atime = null;
1569 types_mojom.TimespecOrNow mtime = null; 1533 types_mojom.TimespecOrNow mtime = null;
1570 1534
1571 _FileTouchParams() : super(kVersions.last.size); 1535 _FileTouchParams() : super(kVersions.last.size);
1572 1536
1573 static _FileTouchParams deserialize(bindings.Message message) { 1537 static _FileTouchParams deserialize(bindings.Message message) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 1606
1643 Map toJson() { 1607 Map toJson() {
1644 Map map = new Map(); 1608 Map map = new Map();
1645 map["atime"] = atime; 1609 map["atime"] = atime;
1646 map["mtime"] = mtime; 1610 map["mtime"] = mtime;
1647 return map; 1611 return map;
1648 } 1612 }
1649 } 1613 }
1650 1614
1651 1615
1652
1653
1654 class FileTouchResponseParams extends bindings.Struct { 1616 class FileTouchResponseParams extends bindings.Struct {
1655 static const List<bindings.StructDataHeader> kVersions = const [ 1617 static const List<bindings.StructDataHeader> kVersions = const [
1656 const bindings.StructDataHeader(16, 0) 1618 const bindings.StructDataHeader(16, 0)
1657 ]; 1619 ];
1658 types_mojom.Error error = null; 1620 types_mojom.Error error = null;
1659 1621
1660 FileTouchResponseParams() : super(kVersions.last.size); 1622 FileTouchResponseParams() : super(kVersions.last.size);
1661 1623
1662 static FileTouchResponseParams deserialize(bindings.Message message) { 1624 static FileTouchResponseParams deserialize(bindings.Message message) {
1663 var decoder = new bindings.Decoder(message); 1625 var decoder = new bindings.Decoder(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 } 1682 }
1721 1683
1722 Map toJson() { 1684 Map toJson() {
1723 Map map = new Map(); 1685 Map map = new Map();
1724 map["error"] = error; 1686 map["error"] = error;
1725 return map; 1687 return map;
1726 } 1688 }
1727 } 1689 }
1728 1690
1729 1691
1730
1731
1732 class _FileDupParams extends bindings.Struct { 1692 class _FileDupParams extends bindings.Struct {
1733 static const List<bindings.StructDataHeader> kVersions = const [ 1693 static const List<bindings.StructDataHeader> kVersions = const [
1734 const bindings.StructDataHeader(16, 0) 1694 const bindings.StructDataHeader(16, 0)
1735 ]; 1695 ];
1736 Object file = null; 1696 Object file = null;
1737 1697
1738 _FileDupParams() : super(kVersions.last.size); 1698 _FileDupParams() : super(kVersions.last.size);
1739 1699
1740 static _FileDupParams deserialize(bindings.Message message) { 1700 static _FileDupParams deserialize(bindings.Message message) {
1741 var decoder = new bindings.Decoder(message); 1701 var decoder = new bindings.Decoder(message);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
1793 "file: $file" ")"; 1753 "file: $file" ")";
1794 } 1754 }
1795 1755
1796 Map toJson() { 1756 Map toJson() {
1797 throw new bindings.MojoCodecError( 1757 throw new bindings.MojoCodecError(
1798 'Object containing handles cannot be encoded to JSON.'); 1758 'Object containing handles cannot be encoded to JSON.');
1799 } 1759 }
1800 } 1760 }
1801 1761
1802 1762
1803
1804
1805 class FileDupResponseParams extends bindings.Struct { 1763 class FileDupResponseParams extends bindings.Struct {
1806 static const List<bindings.StructDataHeader> kVersions = const [ 1764 static const List<bindings.StructDataHeader> kVersions = const [
1807 const bindings.StructDataHeader(16, 0) 1765 const bindings.StructDataHeader(16, 0)
1808 ]; 1766 ];
1809 types_mojom.Error error = null; 1767 types_mojom.Error error = null;
1810 1768
1811 FileDupResponseParams() : super(kVersions.last.size); 1769 FileDupResponseParams() : super(kVersions.last.size);
1812 1770
1813 static FileDupResponseParams deserialize(bindings.Message message) { 1771 static FileDupResponseParams deserialize(bindings.Message message) {
1814 var decoder = new bindings.Decoder(message); 1772 var decoder = new bindings.Decoder(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
1871 } 1829 }
1872 1830
1873 Map toJson() { 1831 Map toJson() {
1874 Map map = new Map(); 1832 Map map = new Map();
1875 map["error"] = error; 1833 map["error"] = error;
1876 return map; 1834 return map;
1877 } 1835 }
1878 } 1836 }
1879 1837
1880 1838
1881
1882
1883 class _FileReopenParams extends bindings.Struct { 1839 class _FileReopenParams extends bindings.Struct {
1884 static const List<bindings.StructDataHeader> kVersions = const [ 1840 static const List<bindings.StructDataHeader> kVersions = const [
1885 const bindings.StructDataHeader(16, 0) 1841 const bindings.StructDataHeader(16, 0)
1886 ]; 1842 ];
1887 Object file = null; 1843 Object file = null;
1888 int openFlags = 0; 1844 int openFlags = 0;
1889 1845
1890 _FileReopenParams() : super(kVersions.last.size); 1846 _FileReopenParams() : super(kVersions.last.size);
1891 1847
1892 static _FileReopenParams deserialize(bindings.Message message) { 1848 static _FileReopenParams deserialize(bindings.Message message) {
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 "openFlags: $openFlags" ")"; 1913 "openFlags: $openFlags" ")";
1958 } 1914 }
1959 1915
1960 Map toJson() { 1916 Map toJson() {
1961 throw new bindings.MojoCodecError( 1917 throw new bindings.MojoCodecError(
1962 'Object containing handles cannot be encoded to JSON.'); 1918 'Object containing handles cannot be encoded to JSON.');
1963 } 1919 }
1964 } 1920 }
1965 1921
1966 1922
1967
1968
1969 class FileReopenResponseParams extends bindings.Struct { 1923 class FileReopenResponseParams extends bindings.Struct {
1970 static const List<bindings.StructDataHeader> kVersions = const [ 1924 static const List<bindings.StructDataHeader> kVersions = const [
1971 const bindings.StructDataHeader(16, 0) 1925 const bindings.StructDataHeader(16, 0)
1972 ]; 1926 ];
1973 types_mojom.Error error = null; 1927 types_mojom.Error error = null;
1974 1928
1975 FileReopenResponseParams() : super(kVersions.last.size); 1929 FileReopenResponseParams() : super(kVersions.last.size);
1976 1930
1977 static FileReopenResponseParams deserialize(bindings.Message message) { 1931 static FileReopenResponseParams deserialize(bindings.Message message) {
1978 var decoder = new bindings.Decoder(message); 1932 var decoder = new bindings.Decoder(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 } 1989 }
2036 1990
2037 Map toJson() { 1991 Map toJson() {
2038 Map map = new Map(); 1992 Map map = new Map();
2039 map["error"] = error; 1993 map["error"] = error;
2040 return map; 1994 return map;
2041 } 1995 }
2042 } 1996 }
2043 1997
2044 1998
2045
2046
2047 class _FileAsBufferParams extends bindings.Struct { 1999 class _FileAsBufferParams extends bindings.Struct {
2048 static const List<bindings.StructDataHeader> kVersions = const [ 2000 static const List<bindings.StructDataHeader> kVersions = const [
2049 const bindings.StructDataHeader(8, 0) 2001 const bindings.StructDataHeader(8, 0)
2050 ]; 2002 ];
2051 2003
2052 _FileAsBufferParams() : super(kVersions.last.size); 2004 _FileAsBufferParams() : super(kVersions.last.size);
2053 2005
2054 static _FileAsBufferParams deserialize(bindings.Message message) { 2006 static _FileAsBufferParams deserialize(bindings.Message message) {
2055 var decoder = new bindings.Decoder(message); 2007 var decoder = new bindings.Decoder(message);
2056 var result = decode(decoder); 2008 var result = decode(decoder);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 return "_FileAsBufferParams("")"; 2047 return "_FileAsBufferParams("")";
2096 } 2048 }
2097 2049
2098 Map toJson() { 2050 Map toJson() {
2099 Map map = new Map(); 2051 Map map = new Map();
2100 return map; 2052 return map;
2101 } 2053 }
2102 } 2054 }
2103 2055
2104 2056
2105
2106
2107 class FileAsBufferResponseParams extends bindings.Struct { 2057 class FileAsBufferResponseParams extends bindings.Struct {
2108 static const List<bindings.StructDataHeader> kVersions = const [ 2058 static const List<bindings.StructDataHeader> kVersions = const [
2109 const bindings.StructDataHeader(16, 0) 2059 const bindings.StructDataHeader(16, 0)
2110 ]; 2060 ];
2111 types_mojom.Error error = null; 2061 types_mojom.Error error = null;
2112 core.MojoSharedBuffer buffer = null; 2062 core.MojoSharedBuffer buffer = null;
2113 2063
2114 FileAsBufferResponseParams() : super(kVersions.last.size); 2064 FileAsBufferResponseParams() : super(kVersions.last.size);
2115 2065
2116 static FileAsBufferResponseParams deserialize(bindings.Message message) { 2066 static FileAsBufferResponseParams deserialize(bindings.Message message) {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
2185 "buffer: $buffer" ")"; 2135 "buffer: $buffer" ")";
2186 } 2136 }
2187 2137
2188 Map toJson() { 2138 Map toJson() {
2189 throw new bindings.MojoCodecError( 2139 throw new bindings.MojoCodecError(
2190 'Object containing handles cannot be encoded to JSON.'); 2140 'Object containing handles cannot be encoded to JSON.');
2191 } 2141 }
2192 } 2142 }
2193 2143
2194 2144
2195
2196
2197 class _FileIoctlParams extends bindings.Struct { 2145 class _FileIoctlParams extends bindings.Struct {
2198 static const List<bindings.StructDataHeader> kVersions = const [ 2146 static const List<bindings.StructDataHeader> kVersions = const [
2199 const bindings.StructDataHeader(24, 0) 2147 const bindings.StructDataHeader(24, 0)
2200 ]; 2148 ];
2201 int request = 0; 2149 int request = 0;
2202 List<int> inValues = null; 2150 List<int> inValues = null;
2203 2151
2204 _FileIoctlParams() : super(kVersions.last.size); 2152 _FileIoctlParams() : super(kVersions.last.size);
2205 2153
2206 static _FileIoctlParams deserialize(bindings.Message message) { 2154 static _FileIoctlParams deserialize(bindings.Message message) {
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
2273 2221
2274 Map toJson() { 2222 Map toJson() {
2275 Map map = new Map(); 2223 Map map = new Map();
2276 map["request"] = request; 2224 map["request"] = request;
2277 map["inValues"] = inValues; 2225 map["inValues"] = inValues;
2278 return map; 2226 return map;
2279 } 2227 }
2280 } 2228 }
2281 2229
2282 2230
2283
2284
2285 class FileIoctlResponseParams extends bindings.Struct { 2231 class FileIoctlResponseParams extends bindings.Struct {
2286 static const List<bindings.StructDataHeader> kVersions = const [ 2232 static const List<bindings.StructDataHeader> kVersions = const [
2287 const bindings.StructDataHeader(24, 0) 2233 const bindings.StructDataHeader(24, 0)
2288 ]; 2234 ];
2289 types_mojom.Error error = null; 2235 types_mojom.Error error = null;
2290 List<int> outValues = null; 2236 List<int> outValues = null;
2291 2237
2292 FileIoctlResponseParams() : super(kVersions.last.size); 2238 FileIoctlResponseParams() : super(kVersions.last.size);
2293 2239
2294 static FileIoctlResponseParams deserialize(bindings.Message message) { 2240 static FileIoctlResponseParams deserialize(bindings.Message message) {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
2364 } 2310 }
2365 2311
2366 Map toJson() { 2312 Map toJson() {
2367 Map map = new Map(); 2313 Map map = new Map();
2368 map["error"] = error; 2314 map["error"] = error;
2369 map["outValues"] = outValues; 2315 map["outValues"] = outValues;
2370 return map; 2316 return map;
2371 } 2317 }
2372 } 2318 }
2373 2319
2374
2375
2376
2377 const int _File_closeName = 0; 2320 const int _File_closeName = 0;
2378 const int _File_readName = 1; 2321 const int _File_readName = 1;
2379 const int _File_writeName = 2; 2322 const int _File_writeName = 2;
2380 const int _File_readToStreamName = 3; 2323 const int _File_readToStreamName = 3;
2381 const int _File_writeFromStreamName = 4; 2324 const int _File_writeFromStreamName = 4;
2382 const int _File_tellName = 5; 2325 const int _File_tellName = 5;
2383 const int _File_seekName = 6; 2326 const int _File_seekName = 6;
2384 const int _File_statName = 7; 2327 const int _File_statName = 7;
2385 const int _File_truncateName = 8; 2328 const int _File_truncateName = 8;
2386 const int _File_touchName = 9; 2329 const int _File_touchName = 9;
2387 const int _File_dupName = 10; 2330 const int _File_dupName = 10;
2388 const int _File_reopenName = 11; 2331 const int _File_reopenName = 11;
2389 const int _File_asBufferName = 12; 2332 const int _File_asBufferName = 12;
2390 const int _File_ioctlName = 13; 2333 const int _File_ioctlName = 13;
2391 2334
2392
2393
2394 class _FileServiceDescription implements service_describer.ServiceDescription { 2335 class _FileServiceDescription implements service_describer.ServiceDescription {
2395 dynamic getTopLevelInterface([Function responseFactory]) => 2336 dynamic getTopLevelInterface([Function responseFactory]) =>
2396 responseFactory(null); 2337 responseFactory(null);
2397 2338
2398 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => 2339 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
2399 responseFactory(null); 2340 responseFactory(null);
2400 2341
2401 dynamic getAllTypeDefinitions([Function responseFactory]) => 2342 dynamic getAllTypeDefinitions([Function responseFactory]) =>
2402 responseFactory(null); 2343 responseFactory(null);
2403 } 2344 }
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
3365 static service_describer.ServiceDescription get serviceDescription { 3306 static service_describer.ServiceDescription get serviceDescription {
3366 if (_cachedServiceDescription == null) { 3307 if (_cachedServiceDescription == null) {
3367 _cachedServiceDescription = new _FileServiceDescription(); 3308 _cachedServiceDescription = new _FileServiceDescription();
3368 } 3309 }
3369 return _cachedServiceDescription; 3310 return _cachedServiceDescription;
3370 } 3311 }
3371 } 3312 }
3372 3313
3373 3314
3374 3315
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698