| 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 file_mojom; | 5 library file_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/mojom_types.mojom.dart' as mojom_types; |
| 12 import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer; |
| 11 import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom; | 13 import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom; |
| 12 | 14 |
| 13 | 15 |
| 14 | 16 |
| 15 class FileCloseParams extends bindings.Struct { | 17 class FileCloseParams extends bindings.Struct { |
| 16 static const List<bindings.StructDataHeader> kVersions = const [ | 18 static const List<bindings.StructDataHeader> kVersions = const [ |
| 17 const bindings.StructDataHeader(8, 0) | 19 const bindings.StructDataHeader(8, 0) |
| 18 ]; | 20 ]; |
| 19 | 21 |
| 20 FileCloseParams() : super(kVersions.last.size); | 22 FileCloseParams() : super(kVersions.last.size); |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 String toString() { | 64 String toString() { |
| 63 return "FileCloseParams("")"; | 65 return "FileCloseParams("")"; |
| 64 } | 66 } |
| 65 | 67 |
| 66 Map toJson() { | 68 Map toJson() { |
| 67 Map map = new Map(); | 69 Map map = new Map(); |
| 68 return map; | 70 return map; |
| 69 } | 71 } |
| 70 } | 72 } |
| 71 | 73 |
| 74 mojom_types.MojomStruct _file_File_Close_Params__() { |
| 75 return new mojom_types.MojomStruct() |
| 76 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileCloseParam
s') |
| 77 ..fields = <mojom_types.StructField>[]; |
| 78 } |
| 79 |
| 72 | 80 |
| 73 class FileCloseResponseParams extends bindings.Struct { | 81 class FileCloseResponseParams extends bindings.Struct { |
| 74 static const List<bindings.StructDataHeader> kVersions = const [ | 82 static const List<bindings.StructDataHeader> kVersions = const [ |
| 75 const bindings.StructDataHeader(16, 0) | 83 const bindings.StructDataHeader(16, 0) |
| 76 ]; | 84 ]; |
| 77 types_mojom.Error err = null; | 85 types_mojom.Error err = null; |
| 78 | 86 |
| 79 FileCloseResponseParams() : super(kVersions.last.size); | 87 FileCloseResponseParams() : super(kVersions.last.size); |
| 80 | 88 |
| 81 static FileCloseResponseParams deserialize(bindings.Message message) { | 89 static FileCloseResponseParams deserialize(bindings.Message message) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 "err: $err" ")"; | 141 "err: $err" ")"; |
| 134 } | 142 } |
| 135 | 143 |
| 136 Map toJson() { | 144 Map toJson() { |
| 137 Map map = new Map(); | 145 Map map = new Map(); |
| 138 map["err"] = err; | 146 map["err"] = err; |
| 139 return map; | 147 return map; |
| 140 } | 148 } |
| 141 } | 149 } |
| 142 | 150 |
| 151 mojom_types.MojomStruct _file_File_Close_ResponseParams__() { |
| 152 return new mojom_types.MojomStruct() |
| 153 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileCloseRespo
nseParams') |
| 154 ..fields = <mojom_types.StructField>[ |
| 155 new mojom_types.StructField() |
| 156 ..declData = (new mojom_types.DeclarationData()..shortName = 'Err') |
| 157 ..type = (new mojom_types.Type() |
| 158 ..typeReference = (new mojom_types.TypeReference() |
| 159 |
| 160 ..identifier = '_types_Error__' |
| 161 ..typeKey = '_types_Error__' |
| 162 )), |
| 163 ]; |
| 164 } |
| 165 |
| 143 | 166 |
| 144 class FileReadParams extends bindings.Struct { | 167 class FileReadParams extends bindings.Struct { |
| 145 static const List<bindings.StructDataHeader> kVersions = const [ | 168 static const List<bindings.StructDataHeader> kVersions = const [ |
| 146 const bindings.StructDataHeader(24, 0) | 169 const bindings.StructDataHeader(24, 0) |
| 147 ]; | 170 ]; |
| 148 int numBytesToRead = 0; | 171 int numBytesToRead = 0; |
| 149 types_mojom.Whence whence = null; | 172 types_mojom.Whence whence = null; |
| 150 int offset = 0; | 173 int offset = 0; |
| 151 | 174 |
| 152 FileReadParams() : super(kVersions.last.size); | 175 FileReadParams() : super(kVersions.last.size); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 245 |
| 223 Map toJson() { | 246 Map toJson() { |
| 224 Map map = new Map(); | 247 Map map = new Map(); |
| 225 map["numBytesToRead"] = numBytesToRead; | 248 map["numBytesToRead"] = numBytesToRead; |
| 226 map["whence"] = whence; | 249 map["whence"] = whence; |
| 227 map["offset"] = offset; | 250 map["offset"] = offset; |
| 228 return map; | 251 return map; |
| 229 } | 252 } |
| 230 } | 253 } |
| 231 | 254 |
| 255 mojom_types.MojomStruct _file_File_Read_Params__() { |
| 256 return new mojom_types.MojomStruct() |
| 257 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileReadParams
') |
| 258 ..fields = <mojom_types.StructField>[ |
| 259 new mojom_types.StructField() |
| 260 ..declData = (new mojom_types.DeclarationData()..shortName = 'NumBytesTo
Read') |
| 261 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 262 |
| 263 new mojom_types.StructField() |
| 264 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 265 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 266 |
| 267 new mojom_types.StructField() |
| 268 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 269 ..type = (new mojom_types.Type() |
| 270 ..typeReference = (new mojom_types.TypeReference() |
| 271 |
| 272 ..identifier = '_types_Whence__' |
| 273 ..typeKey = '_types_Whence__' |
| 274 )), |
| 275 ]; |
| 276 } |
| 277 |
| 232 | 278 |
| 233 class FileReadResponseParams extends bindings.Struct { | 279 class FileReadResponseParams extends bindings.Struct { |
| 234 static const List<bindings.StructDataHeader> kVersions = const [ | 280 static const List<bindings.StructDataHeader> kVersions = const [ |
| 235 const bindings.StructDataHeader(24, 0) | 281 const bindings.StructDataHeader(24, 0) |
| 236 ]; | 282 ]; |
| 237 types_mojom.Error error = null; | 283 types_mojom.Error error = null; |
| 238 List<int> bytesRead = null; | 284 List<int> bytesRead = null; |
| 239 | 285 |
| 240 FileReadResponseParams() : super(kVersions.last.size); | 286 FileReadResponseParams() : super(kVersions.last.size); |
| 241 | 287 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 } | 348 } |
| 303 | 349 |
| 304 Map toJson() { | 350 Map toJson() { |
| 305 Map map = new Map(); | 351 Map map = new Map(); |
| 306 map["error"] = error; | 352 map["error"] = error; |
| 307 map["bytesRead"] = bytesRead; | 353 map["bytesRead"] = bytesRead; |
| 308 return map; | 354 return map; |
| 309 } | 355 } |
| 310 } | 356 } |
| 311 | 357 |
| 358 mojom_types.MojomStruct _file_File_Read_ResponseParams__() { |
| 359 return new mojom_types.MojomStruct() |
| 360 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileReadRespon
seParams') |
| 361 ..fields = <mojom_types.StructField>[ |
| 362 new mojom_types.StructField() |
| 363 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 364 ..type = (new mojom_types.Type() |
| 365 ..typeReference = (new mojom_types.TypeReference() |
| 366 |
| 367 ..identifier = '_types_Error__' |
| 368 ..typeKey = '_types_Error__' |
| 369 )), |
| 370 |
| 371 new mojom_types.StructField() |
| 372 ..declData = (new mojom_types.DeclarationData()..shortName = 'BytesRead'
) |
| 373 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 374 ..nullable = true |
| 375 |
| 376 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.UINT8))), |
| 377 ]; |
| 378 } |
| 379 |
| 312 | 380 |
| 313 class FileWriteParams extends bindings.Struct { | 381 class FileWriteParams extends bindings.Struct { |
| 314 static const List<bindings.StructDataHeader> kVersions = const [ | 382 static const List<bindings.StructDataHeader> kVersions = const [ |
| 315 const bindings.StructDataHeader(32, 0) | 383 const bindings.StructDataHeader(32, 0) |
| 316 ]; | 384 ]; |
| 317 List<int> bytesToWrite = null; | 385 List<int> bytesToWrite = null; |
| 318 int offset = 0; | 386 int offset = 0; |
| 319 types_mojom.Whence whence = null; | 387 types_mojom.Whence whence = null; |
| 320 | 388 |
| 321 FileWriteParams() : super(kVersions.last.size); | 389 FileWriteParams() : super(kVersions.last.size); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 | 459 |
| 392 Map toJson() { | 460 Map toJson() { |
| 393 Map map = new Map(); | 461 Map map = new Map(); |
| 394 map["bytesToWrite"] = bytesToWrite; | 462 map["bytesToWrite"] = bytesToWrite; |
| 395 map["offset"] = offset; | 463 map["offset"] = offset; |
| 396 map["whence"] = whence; | 464 map["whence"] = whence; |
| 397 return map; | 465 return map; |
| 398 } | 466 } |
| 399 } | 467 } |
| 400 | 468 |
| 469 mojom_types.MojomStruct _file_File_Write_Params__() { |
| 470 return new mojom_types.MojomStruct() |
| 471 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileWriteParam
s') |
| 472 ..fields = <mojom_types.StructField>[ |
| 473 new mojom_types.StructField() |
| 474 ..declData = (new mojom_types.DeclarationData()..shortName = 'BytesToWri
te') |
| 475 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 476 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.UINT8))), |
| 477 |
| 478 new mojom_types.StructField() |
| 479 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 480 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 481 |
| 482 new mojom_types.StructField() |
| 483 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 484 ..type = (new mojom_types.Type() |
| 485 ..typeReference = (new mojom_types.TypeReference() |
| 486 |
| 487 ..identifier = '_types_Whence__' |
| 488 ..typeKey = '_types_Whence__' |
| 489 )), |
| 490 ]; |
| 491 } |
| 492 |
| 401 | 493 |
| 402 class FileWriteResponseParams extends bindings.Struct { | 494 class FileWriteResponseParams extends bindings.Struct { |
| 403 static const List<bindings.StructDataHeader> kVersions = const [ | 495 static const List<bindings.StructDataHeader> kVersions = const [ |
| 404 const bindings.StructDataHeader(16, 0) | 496 const bindings.StructDataHeader(16, 0) |
| 405 ]; | 497 ]; |
| 406 types_mojom.Error error = null; | 498 types_mojom.Error error = null; |
| 407 int numBytesWritten = 0; | 499 int numBytesWritten = 0; |
| 408 | 500 |
| 409 FileWriteResponseParams() : super(kVersions.last.size); | 501 FileWriteResponseParams() : super(kVersions.last.size); |
| 410 | 502 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 } | 563 } |
| 472 | 564 |
| 473 Map toJson() { | 565 Map toJson() { |
| 474 Map map = new Map(); | 566 Map map = new Map(); |
| 475 map["error"] = error; | 567 map["error"] = error; |
| 476 map["numBytesWritten"] = numBytesWritten; | 568 map["numBytesWritten"] = numBytesWritten; |
| 477 return map; | 569 return map; |
| 478 } | 570 } |
| 479 } | 571 } |
| 480 | 572 |
| 573 mojom_types.MojomStruct _file_File_Write_ResponseParams__() { |
| 574 return new mojom_types.MojomStruct() |
| 575 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileWriteRespo
nseParams') |
| 576 ..fields = <mojom_types.StructField>[ |
| 577 new mojom_types.StructField() |
| 578 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 579 ..type = (new mojom_types.Type() |
| 580 ..typeReference = (new mojom_types.TypeReference() |
| 581 |
| 582 ..identifier = '_types_Error__' |
| 583 ..typeKey = '_types_Error__' |
| 584 )), |
| 585 |
| 586 new mojom_types.StructField() |
| 587 ..declData = (new mojom_types.DeclarationData()..shortName = 'NumBytesWr
itten') |
| 588 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 589 ]; |
| 590 } |
| 591 |
| 481 | 592 |
| 482 class FileReadToStreamParams extends bindings.Struct { | 593 class FileReadToStreamParams extends bindings.Struct { |
| 483 static const List<bindings.StructDataHeader> kVersions = const [ | 594 static const List<bindings.StructDataHeader> kVersions = const [ |
| 484 const bindings.StructDataHeader(32, 0) | 595 const bindings.StructDataHeader(32, 0) |
| 485 ]; | 596 ]; |
| 486 core.MojoDataPipeProducer source = null; | 597 core.MojoDataPipeProducer source = null; |
| 487 types_mojom.Whence whence = null; | 598 types_mojom.Whence whence = null; |
| 488 int offset = 0; | 599 int offset = 0; |
| 489 int numBytesToRead = 0; | 600 int numBytesToRead = 0; |
| 490 | 601 |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 565 "offset: $offset" ", " | 676 "offset: $offset" ", " |
| 566 "numBytesToRead: $numBytesToRead" ")"; | 677 "numBytesToRead: $numBytesToRead" ")"; |
| 567 } | 678 } |
| 568 | 679 |
| 569 Map toJson() { | 680 Map toJson() { |
| 570 throw new bindings.MojoCodecError( | 681 throw new bindings.MojoCodecError( |
| 571 'Object containing handles cannot be encoded to JSON.'); | 682 'Object containing handles cannot be encoded to JSON.'); |
| 572 } | 683 } |
| 573 } | 684 } |
| 574 | 685 |
| 686 mojom_types.MojomStruct _file_File_ReadToStream_Params__() { |
| 687 return new mojom_types.MojomStruct() |
| 688 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileReadToStre
amParams') |
| 689 ..fields = <mojom_types.StructField>[ |
| 690 new mojom_types.StructField() |
| 691 ..declData = (new mojom_types.DeclarationData()..shortName = 'Source') |
| 692 ..type = (new mojom_types.Type() |
| 693 ..handleType = (new mojom_types.HandleType() |
| 694 ..kind = mojom_types.HandleTypeKind.DATA_PIPE_PRODUCER |
| 695 ..nullable = false)), |
| 696 |
| 697 new mojom_types.StructField() |
| 698 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 699 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 700 |
| 701 new mojom_types.StructField() |
| 702 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 703 ..type = (new mojom_types.Type() |
| 704 ..typeReference = (new mojom_types.TypeReference() |
| 705 |
| 706 ..identifier = '_types_Whence__' |
| 707 ..typeKey = '_types_Whence__' |
| 708 )), |
| 709 |
| 710 new mojom_types.StructField() |
| 711 ..declData = (new mojom_types.DeclarationData()..shortName = 'NumBytesTo
Read') |
| 712 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 713 ]; |
| 714 } |
| 715 |
| 575 | 716 |
| 576 class FileReadToStreamResponseParams extends bindings.Struct { | 717 class FileReadToStreamResponseParams extends bindings.Struct { |
| 577 static const List<bindings.StructDataHeader> kVersions = const [ | 718 static const List<bindings.StructDataHeader> kVersions = const [ |
| 578 const bindings.StructDataHeader(16, 0) | 719 const bindings.StructDataHeader(16, 0) |
| 579 ]; | 720 ]; |
| 580 types_mojom.Error error = null; | 721 types_mojom.Error error = null; |
| 581 | 722 |
| 582 FileReadToStreamResponseParams() : super(kVersions.last.size); | 723 FileReadToStreamResponseParams() : super(kVersions.last.size); |
| 583 | 724 |
| 584 static FileReadToStreamResponseParams deserialize(bindings.Message message) { | 725 static FileReadToStreamResponseParams deserialize(bindings.Message message) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 "error: $error" ")"; | 777 "error: $error" ")"; |
| 637 } | 778 } |
| 638 | 779 |
| 639 Map toJson() { | 780 Map toJson() { |
| 640 Map map = new Map(); | 781 Map map = new Map(); |
| 641 map["error"] = error; | 782 map["error"] = error; |
| 642 return map; | 783 return map; |
| 643 } | 784 } |
| 644 } | 785 } |
| 645 | 786 |
| 787 mojom_types.MojomStruct _file_File_ReadToStream_ResponseParams__() { |
| 788 return new mojom_types.MojomStruct() |
| 789 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileReadToStre
amResponseParams') |
| 790 ..fields = <mojom_types.StructField>[ |
| 791 new mojom_types.StructField() |
| 792 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 793 ..type = (new mojom_types.Type() |
| 794 ..typeReference = (new mojom_types.TypeReference() |
| 795 |
| 796 ..identifier = '_types_Error__' |
| 797 ..typeKey = '_types_Error__' |
| 798 )), |
| 799 ]; |
| 800 } |
| 801 |
| 646 | 802 |
| 647 class FileWriteFromStreamParams extends bindings.Struct { | 803 class FileWriteFromStreamParams extends bindings.Struct { |
| 648 static const List<bindings.StructDataHeader> kVersions = const [ | 804 static const List<bindings.StructDataHeader> kVersions = const [ |
| 649 const bindings.StructDataHeader(24, 0) | 805 const bindings.StructDataHeader(24, 0) |
| 650 ]; | 806 ]; |
| 651 core.MojoDataPipeConsumer sink = null; | 807 core.MojoDataPipeConsumer sink = null; |
| 652 types_mojom.Whence whence = null; | 808 types_mojom.Whence whence = null; |
| 653 int offset = 0; | 809 int offset = 0; |
| 654 | 810 |
| 655 FileWriteFromStreamParams() : super(kVersions.last.size); | 811 FileWriteFromStreamParams() : super(kVersions.last.size); |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 "whence: $whence" ", " | 878 "whence: $whence" ", " |
| 723 "offset: $offset" ")"; | 879 "offset: $offset" ")"; |
| 724 } | 880 } |
| 725 | 881 |
| 726 Map toJson() { | 882 Map toJson() { |
| 727 throw new bindings.MojoCodecError( | 883 throw new bindings.MojoCodecError( |
| 728 'Object containing handles cannot be encoded to JSON.'); | 884 'Object containing handles cannot be encoded to JSON.'); |
| 729 } | 885 } |
| 730 } | 886 } |
| 731 | 887 |
| 888 mojom_types.MojomStruct _file_File_WriteFromStream_Params__() { |
| 889 return new mojom_types.MojomStruct() |
| 890 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileWriteFromS
treamParams') |
| 891 ..fields = <mojom_types.StructField>[ |
| 892 new mojom_types.StructField() |
| 893 ..declData = (new mojom_types.DeclarationData()..shortName = 'Sink') |
| 894 ..type = (new mojom_types.Type() |
| 895 ..handleType = (new mojom_types.HandleType() |
| 896 ..kind = mojom_types.HandleTypeKind.DATA_PIPE_CONSUMER |
| 897 ..nullable = false)), |
| 898 |
| 899 new mojom_types.StructField() |
| 900 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 901 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 902 |
| 903 new mojom_types.StructField() |
| 904 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 905 ..type = (new mojom_types.Type() |
| 906 ..typeReference = (new mojom_types.TypeReference() |
| 907 |
| 908 ..identifier = '_types_Whence__' |
| 909 ..typeKey = '_types_Whence__' |
| 910 )), |
| 911 ]; |
| 912 } |
| 913 |
| 732 | 914 |
| 733 class FileWriteFromStreamResponseParams extends bindings.Struct { | 915 class FileWriteFromStreamResponseParams extends bindings.Struct { |
| 734 static const List<bindings.StructDataHeader> kVersions = const [ | 916 static const List<bindings.StructDataHeader> kVersions = const [ |
| 735 const bindings.StructDataHeader(16, 0) | 917 const bindings.StructDataHeader(16, 0) |
| 736 ]; | 918 ]; |
| 737 types_mojom.Error error = null; | 919 types_mojom.Error error = null; |
| 738 | 920 |
| 739 FileWriteFromStreamResponseParams() : super(kVersions.last.size); | 921 FileWriteFromStreamResponseParams() : super(kVersions.last.size); |
| 740 | 922 |
| 741 static FileWriteFromStreamResponseParams deserialize(bindings.Message message)
{ | 923 static FileWriteFromStreamResponseParams deserialize(bindings.Message message)
{ |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 793 "error: $error" ")"; | 975 "error: $error" ")"; |
| 794 } | 976 } |
| 795 | 977 |
| 796 Map toJson() { | 978 Map toJson() { |
| 797 Map map = new Map(); | 979 Map map = new Map(); |
| 798 map["error"] = error; | 980 map["error"] = error; |
| 799 return map; | 981 return map; |
| 800 } | 982 } |
| 801 } | 983 } |
| 802 | 984 |
| 985 mojom_types.MojomStruct _file_File_WriteFromStream_ResponseParams__() { |
| 986 return new mojom_types.MojomStruct() |
| 987 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileWriteFromS
treamResponseParams') |
| 988 ..fields = <mojom_types.StructField>[ |
| 989 new mojom_types.StructField() |
| 990 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 991 ..type = (new mojom_types.Type() |
| 992 ..typeReference = (new mojom_types.TypeReference() |
| 993 |
| 994 ..identifier = '_types_Error__' |
| 995 ..typeKey = '_types_Error__' |
| 996 )), |
| 997 ]; |
| 998 } |
| 999 |
| 803 | 1000 |
| 804 class FileTellParams extends bindings.Struct { | 1001 class FileTellParams extends bindings.Struct { |
| 805 static const List<bindings.StructDataHeader> kVersions = const [ | 1002 static const List<bindings.StructDataHeader> kVersions = const [ |
| 806 const bindings.StructDataHeader(8, 0) | 1003 const bindings.StructDataHeader(8, 0) |
| 807 ]; | 1004 ]; |
| 808 | 1005 |
| 809 FileTellParams() : super(kVersions.last.size); | 1006 FileTellParams() : super(kVersions.last.size); |
| 810 | 1007 |
| 811 static FileTellParams deserialize(bindings.Message message) { | 1008 static FileTellParams deserialize(bindings.Message message) { |
| 812 var decoder = new bindings.Decoder(message); | 1009 var decoder = new bindings.Decoder(message); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 String toString() { | 1048 String toString() { |
| 852 return "FileTellParams("")"; | 1049 return "FileTellParams("")"; |
| 853 } | 1050 } |
| 854 | 1051 |
| 855 Map toJson() { | 1052 Map toJson() { |
| 856 Map map = new Map(); | 1053 Map map = new Map(); |
| 857 return map; | 1054 return map; |
| 858 } | 1055 } |
| 859 } | 1056 } |
| 860 | 1057 |
| 1058 mojom_types.MojomStruct _file_File_Tell_Params__() { |
| 1059 return new mojom_types.MojomStruct() |
| 1060 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileTellParams
') |
| 1061 ..fields = <mojom_types.StructField>[]; |
| 1062 } |
| 1063 |
| 861 | 1064 |
| 862 class FileTellResponseParams extends bindings.Struct { | 1065 class FileTellResponseParams extends bindings.Struct { |
| 863 static const List<bindings.StructDataHeader> kVersions = const [ | 1066 static const List<bindings.StructDataHeader> kVersions = const [ |
| 864 const bindings.StructDataHeader(24, 0) | 1067 const bindings.StructDataHeader(24, 0) |
| 865 ]; | 1068 ]; |
| 866 types_mojom.Error error = null; | 1069 types_mojom.Error error = null; |
| 867 int position = 0; | 1070 int position = 0; |
| 868 | 1071 |
| 869 FileTellResponseParams() : super(kVersions.last.size); | 1072 FileTellResponseParams() : super(kVersions.last.size); |
| 870 | 1073 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 931 } | 1134 } |
| 932 | 1135 |
| 933 Map toJson() { | 1136 Map toJson() { |
| 934 Map map = new Map(); | 1137 Map map = new Map(); |
| 935 map["error"] = error; | 1138 map["error"] = error; |
| 936 map["position"] = position; | 1139 map["position"] = position; |
| 937 return map; | 1140 return map; |
| 938 } | 1141 } |
| 939 } | 1142 } |
| 940 | 1143 |
| 1144 mojom_types.MojomStruct _file_File_Tell_ResponseParams__() { |
| 1145 return new mojom_types.MojomStruct() |
| 1146 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileTellRespon
seParams') |
| 1147 ..fields = <mojom_types.StructField>[ |
| 1148 new mojom_types.StructField() |
| 1149 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1150 ..type = (new mojom_types.Type() |
| 1151 ..typeReference = (new mojom_types.TypeReference() |
| 1152 |
| 1153 ..identifier = '_types_Error__' |
| 1154 ..typeKey = '_types_Error__' |
| 1155 )), |
| 1156 |
| 1157 new mojom_types.StructField() |
| 1158 ..declData = (new mojom_types.DeclarationData()..shortName = 'Position') |
| 1159 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 1160 ]; |
| 1161 } |
| 1162 |
| 941 | 1163 |
| 942 class FileSeekParams extends bindings.Struct { | 1164 class FileSeekParams extends bindings.Struct { |
| 943 static const List<bindings.StructDataHeader> kVersions = const [ | 1165 static const List<bindings.StructDataHeader> kVersions = const [ |
| 944 const bindings.StructDataHeader(24, 0) | 1166 const bindings.StructDataHeader(24, 0) |
| 945 ]; | 1167 ]; |
| 946 int offset = 0; | 1168 int offset = 0; |
| 947 types_mojom.Whence whence = null; | 1169 types_mojom.Whence whence = null; |
| 948 | 1170 |
| 949 FileSeekParams() : super(kVersions.last.size); | 1171 FileSeekParams() : super(kVersions.last.size); |
| 950 | 1172 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 } | 1233 } |
| 1012 | 1234 |
| 1013 Map toJson() { | 1235 Map toJson() { |
| 1014 Map map = new Map(); | 1236 Map map = new Map(); |
| 1015 map["offset"] = offset; | 1237 map["offset"] = offset; |
| 1016 map["whence"] = whence; | 1238 map["whence"] = whence; |
| 1017 return map; | 1239 return map; |
| 1018 } | 1240 } |
| 1019 } | 1241 } |
| 1020 | 1242 |
| 1243 mojom_types.MojomStruct _file_File_Seek_Params__() { |
| 1244 return new mojom_types.MojomStruct() |
| 1245 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileSeekParams
') |
| 1246 ..fields = <mojom_types.StructField>[ |
| 1247 new mojom_types.StructField() |
| 1248 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 1249 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 1250 |
| 1251 new mojom_types.StructField() |
| 1252 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 1253 ..type = (new mojom_types.Type() |
| 1254 ..typeReference = (new mojom_types.TypeReference() |
| 1255 |
| 1256 ..identifier = '_types_Whence__' |
| 1257 ..typeKey = '_types_Whence__' |
| 1258 )), |
| 1259 ]; |
| 1260 } |
| 1261 |
| 1021 | 1262 |
| 1022 class FileSeekResponseParams extends bindings.Struct { | 1263 class FileSeekResponseParams extends bindings.Struct { |
| 1023 static const List<bindings.StructDataHeader> kVersions = const [ | 1264 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1024 const bindings.StructDataHeader(24, 0) | 1265 const bindings.StructDataHeader(24, 0) |
| 1025 ]; | 1266 ]; |
| 1026 types_mojom.Error error = null; | 1267 types_mojom.Error error = null; |
| 1027 int position = 0; | 1268 int position = 0; |
| 1028 | 1269 |
| 1029 FileSeekResponseParams() : super(kVersions.last.size); | 1270 FileSeekResponseParams() : super(kVersions.last.size); |
| 1030 | 1271 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1091 } | 1332 } |
| 1092 | 1333 |
| 1093 Map toJson() { | 1334 Map toJson() { |
| 1094 Map map = new Map(); | 1335 Map map = new Map(); |
| 1095 map["error"] = error; | 1336 map["error"] = error; |
| 1096 map["position"] = position; | 1337 map["position"] = position; |
| 1097 return map; | 1338 return map; |
| 1098 } | 1339 } |
| 1099 } | 1340 } |
| 1100 | 1341 |
| 1342 mojom_types.MojomStruct _file_File_Seek_ResponseParams__() { |
| 1343 return new mojom_types.MojomStruct() |
| 1344 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileSeekRespon
seParams') |
| 1345 ..fields = <mojom_types.StructField>[ |
| 1346 new mojom_types.StructField() |
| 1347 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1348 ..type = (new mojom_types.Type() |
| 1349 ..typeReference = (new mojom_types.TypeReference() |
| 1350 |
| 1351 ..identifier = '_types_Error__' |
| 1352 ..typeKey = '_types_Error__' |
| 1353 )), |
| 1354 |
| 1355 new mojom_types.StructField() |
| 1356 ..declData = (new mojom_types.DeclarationData()..shortName = 'Position') |
| 1357 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 1358 ]; |
| 1359 } |
| 1360 |
| 1101 | 1361 |
| 1102 class FileStatParams extends bindings.Struct { | 1362 class FileStatParams extends bindings.Struct { |
| 1103 static const List<bindings.StructDataHeader> kVersions = const [ | 1363 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1104 const bindings.StructDataHeader(8, 0) | 1364 const bindings.StructDataHeader(8, 0) |
| 1105 ]; | 1365 ]; |
| 1106 | 1366 |
| 1107 FileStatParams() : super(kVersions.last.size); | 1367 FileStatParams() : super(kVersions.last.size); |
| 1108 | 1368 |
| 1109 static FileStatParams deserialize(bindings.Message message) { | 1369 static FileStatParams deserialize(bindings.Message message) { |
| 1110 var decoder = new bindings.Decoder(message); | 1370 var decoder = new bindings.Decoder(message); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 String toString() { | 1409 String toString() { |
| 1150 return "FileStatParams("")"; | 1410 return "FileStatParams("")"; |
| 1151 } | 1411 } |
| 1152 | 1412 |
| 1153 Map toJson() { | 1413 Map toJson() { |
| 1154 Map map = new Map(); | 1414 Map map = new Map(); |
| 1155 return map; | 1415 return map; |
| 1156 } | 1416 } |
| 1157 } | 1417 } |
| 1158 | 1418 |
| 1419 mojom_types.MojomStruct _file_File_Stat_Params__() { |
| 1420 return new mojom_types.MojomStruct() |
| 1421 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileStatParams
') |
| 1422 ..fields = <mojom_types.StructField>[]; |
| 1423 } |
| 1424 |
| 1159 | 1425 |
| 1160 class FileStatResponseParams extends bindings.Struct { | 1426 class FileStatResponseParams extends bindings.Struct { |
| 1161 static const List<bindings.StructDataHeader> kVersions = const [ | 1427 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1162 const bindings.StructDataHeader(24, 0) | 1428 const bindings.StructDataHeader(24, 0) |
| 1163 ]; | 1429 ]; |
| 1164 types_mojom.Error error = null; | 1430 types_mojom.Error error = null; |
| 1165 types_mojom.FileInformation fileInformation = null; | 1431 types_mojom.FileInformation fileInformation = null; |
| 1166 | 1432 |
| 1167 FileStatResponseParams() : super(kVersions.last.size); | 1433 FileStatResponseParams() : super(kVersions.last.size); |
| 1168 | 1434 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1230 } | 1496 } |
| 1231 | 1497 |
| 1232 Map toJson() { | 1498 Map toJson() { |
| 1233 Map map = new Map(); | 1499 Map map = new Map(); |
| 1234 map["error"] = error; | 1500 map["error"] = error; |
| 1235 map["fileInformation"] = fileInformation; | 1501 map["fileInformation"] = fileInformation; |
| 1236 return map; | 1502 return map; |
| 1237 } | 1503 } |
| 1238 } | 1504 } |
| 1239 | 1505 |
| 1506 mojom_types.MojomStruct _file_File_Stat_ResponseParams__() { |
| 1507 return new mojom_types.MojomStruct() |
| 1508 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileStatRespon
seParams') |
| 1509 ..fields = <mojom_types.StructField>[ |
| 1510 new mojom_types.StructField() |
| 1511 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1512 ..type = (new mojom_types.Type() |
| 1513 ..typeReference = (new mojom_types.TypeReference() |
| 1514 |
| 1515 ..identifier = '_types_Error__' |
| 1516 ..typeKey = '_types_Error__' |
| 1517 )), |
| 1518 |
| 1519 new mojom_types.StructField() |
| 1520 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileInform
ation') |
| 1521 ..type = (new mojom_types.Type() |
| 1522 ..typeReference = (new mojom_types.TypeReference() |
| 1523 ..nullable = true |
| 1524 |
| 1525 |
| 1526 ..identifier = '_types_FileInformation__' |
| 1527 ..typeKey = '_types_FileInformation__' |
| 1528 )), |
| 1529 ]; |
| 1530 } |
| 1531 |
| 1240 | 1532 |
| 1241 class FileTruncateParams extends bindings.Struct { | 1533 class FileTruncateParams extends bindings.Struct { |
| 1242 static const List<bindings.StructDataHeader> kVersions = const [ | 1534 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1243 const bindings.StructDataHeader(16, 0) | 1535 const bindings.StructDataHeader(16, 0) |
| 1244 ]; | 1536 ]; |
| 1245 int size = 0; | 1537 int size = 0; |
| 1246 | 1538 |
| 1247 FileTruncateParams() : super(kVersions.last.size); | 1539 FileTruncateParams() : super(kVersions.last.size); |
| 1248 | 1540 |
| 1249 static FileTruncateParams deserialize(bindings.Message message) { | 1541 static FileTruncateParams deserialize(bindings.Message message) { |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 "size: $size" ")"; | 1589 "size: $size" ")"; |
| 1298 } | 1590 } |
| 1299 | 1591 |
| 1300 Map toJson() { | 1592 Map toJson() { |
| 1301 Map map = new Map(); | 1593 Map map = new Map(); |
| 1302 map["size"] = size; | 1594 map["size"] = size; |
| 1303 return map; | 1595 return map; |
| 1304 } | 1596 } |
| 1305 } | 1597 } |
| 1306 | 1598 |
| 1599 mojom_types.MojomStruct _file_File_Truncate_Params__() { |
| 1600 return new mojom_types.MojomStruct() |
| 1601 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileTruncatePa
rams') |
| 1602 ..fields = <mojom_types.StructField>[ |
| 1603 new mojom_types.StructField() |
| 1604 ..declData = (new mojom_types.DeclarationData()..shortName = 'Size') |
| 1605 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T64), |
| 1606 ]; |
| 1607 } |
| 1608 |
| 1307 | 1609 |
| 1308 class FileTruncateResponseParams extends bindings.Struct { | 1610 class FileTruncateResponseParams extends bindings.Struct { |
| 1309 static const List<bindings.StructDataHeader> kVersions = const [ | 1611 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1310 const bindings.StructDataHeader(16, 0) | 1612 const bindings.StructDataHeader(16, 0) |
| 1311 ]; | 1613 ]; |
| 1312 types_mojom.Error error = null; | 1614 types_mojom.Error error = null; |
| 1313 | 1615 |
| 1314 FileTruncateResponseParams() : super(kVersions.last.size); | 1616 FileTruncateResponseParams() : super(kVersions.last.size); |
| 1315 | 1617 |
| 1316 static FileTruncateResponseParams deserialize(bindings.Message message) { | 1618 static FileTruncateResponseParams deserialize(bindings.Message message) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1368 "error: $error" ")"; | 1670 "error: $error" ")"; |
| 1369 } | 1671 } |
| 1370 | 1672 |
| 1371 Map toJson() { | 1673 Map toJson() { |
| 1372 Map map = new Map(); | 1674 Map map = new Map(); |
| 1373 map["error"] = error; | 1675 map["error"] = error; |
| 1374 return map; | 1676 return map; |
| 1375 } | 1677 } |
| 1376 } | 1678 } |
| 1377 | 1679 |
| 1680 mojom_types.MojomStruct _file_File_Truncate_ResponseParams__() { |
| 1681 return new mojom_types.MojomStruct() |
| 1682 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileTruncateRe
sponseParams') |
| 1683 ..fields = <mojom_types.StructField>[ |
| 1684 new mojom_types.StructField() |
| 1685 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1686 ..type = (new mojom_types.Type() |
| 1687 ..typeReference = (new mojom_types.TypeReference() |
| 1688 |
| 1689 ..identifier = '_types_Error__' |
| 1690 ..typeKey = '_types_Error__' |
| 1691 )), |
| 1692 ]; |
| 1693 } |
| 1694 |
| 1378 | 1695 |
| 1379 class FileTouchParams extends bindings.Struct { | 1696 class FileTouchParams extends bindings.Struct { |
| 1380 static const List<bindings.StructDataHeader> kVersions = const [ | 1697 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1381 const bindings.StructDataHeader(24, 0) | 1698 const bindings.StructDataHeader(24, 0) |
| 1382 ]; | 1699 ]; |
| 1383 types_mojom.TimespecOrNow atime = null; | 1700 types_mojom.TimespecOrNow atime = null; |
| 1384 types_mojom.TimespecOrNow mtime = null; | 1701 types_mojom.TimespecOrNow mtime = null; |
| 1385 | 1702 |
| 1386 FileTouchParams() : super(kVersions.last.size); | 1703 FileTouchParams() : super(kVersions.last.size); |
| 1387 | 1704 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1446 } | 1763 } |
| 1447 | 1764 |
| 1448 Map toJson() { | 1765 Map toJson() { |
| 1449 Map map = new Map(); | 1766 Map map = new Map(); |
| 1450 map["atime"] = atime; | 1767 map["atime"] = atime; |
| 1451 map["mtime"] = mtime; | 1768 map["mtime"] = mtime; |
| 1452 return map; | 1769 return map; |
| 1453 } | 1770 } |
| 1454 } | 1771 } |
| 1455 | 1772 |
| 1773 mojom_types.MojomStruct _file_File_Touch_Params__() { |
| 1774 return new mojom_types.MojomStruct() |
| 1775 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileTouchParam
s') |
| 1776 ..fields = <mojom_types.StructField>[ |
| 1777 new mojom_types.StructField() |
| 1778 ..declData = (new mojom_types.DeclarationData()..shortName = 'Atime') |
| 1779 ..type = (new mojom_types.Type() |
| 1780 ..typeReference = (new mojom_types.TypeReference() |
| 1781 ..nullable = true |
| 1782 |
| 1783 |
| 1784 ..identifier = '_types_TimespecOrNow__' |
| 1785 ..typeKey = '_types_TimespecOrNow__' |
| 1786 )), |
| 1787 |
| 1788 new mojom_types.StructField() |
| 1789 ..declData = (new mojom_types.DeclarationData()..shortName = 'Mtime') |
| 1790 ..type = (new mojom_types.Type() |
| 1791 ..typeReference = (new mojom_types.TypeReference() |
| 1792 ..nullable = true |
| 1793 |
| 1794 |
| 1795 ..identifier = '_types_TimespecOrNow__' |
| 1796 ..typeKey = '_types_TimespecOrNow__' |
| 1797 )), |
| 1798 ]; |
| 1799 } |
| 1800 |
| 1456 | 1801 |
| 1457 class FileTouchResponseParams extends bindings.Struct { | 1802 class FileTouchResponseParams extends bindings.Struct { |
| 1458 static const List<bindings.StructDataHeader> kVersions = const [ | 1803 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1459 const bindings.StructDataHeader(16, 0) | 1804 const bindings.StructDataHeader(16, 0) |
| 1460 ]; | 1805 ]; |
| 1461 types_mojom.Error error = null; | 1806 types_mojom.Error error = null; |
| 1462 | 1807 |
| 1463 FileTouchResponseParams() : super(kVersions.last.size); | 1808 FileTouchResponseParams() : super(kVersions.last.size); |
| 1464 | 1809 |
| 1465 static FileTouchResponseParams deserialize(bindings.Message message) { | 1810 static FileTouchResponseParams deserialize(bindings.Message message) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1517 "error: $error" ")"; | 1862 "error: $error" ")"; |
| 1518 } | 1863 } |
| 1519 | 1864 |
| 1520 Map toJson() { | 1865 Map toJson() { |
| 1521 Map map = new Map(); | 1866 Map map = new Map(); |
| 1522 map["error"] = error; | 1867 map["error"] = error; |
| 1523 return map; | 1868 return map; |
| 1524 } | 1869 } |
| 1525 } | 1870 } |
| 1526 | 1871 |
| 1872 mojom_types.MojomStruct _file_File_Touch_ResponseParams__() { |
| 1873 return new mojom_types.MojomStruct() |
| 1874 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileTouchRespo
nseParams') |
| 1875 ..fields = <mojom_types.StructField>[ |
| 1876 new mojom_types.StructField() |
| 1877 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1878 ..type = (new mojom_types.Type() |
| 1879 ..typeReference = (new mojom_types.TypeReference() |
| 1880 |
| 1881 ..identifier = '_types_Error__' |
| 1882 ..typeKey = '_types_Error__' |
| 1883 )), |
| 1884 ]; |
| 1885 } |
| 1886 |
| 1527 | 1887 |
| 1528 class FileDupParams extends bindings.Struct { | 1888 class FileDupParams extends bindings.Struct { |
| 1529 static const List<bindings.StructDataHeader> kVersions = const [ | 1889 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1530 const bindings.StructDataHeader(16, 0) | 1890 const bindings.StructDataHeader(16, 0) |
| 1531 ]; | 1891 ]; |
| 1532 Object file = null; | 1892 Object file = null; |
| 1533 | 1893 |
| 1534 FileDupParams() : super(kVersions.last.size); | 1894 FileDupParams() : super(kVersions.last.size); |
| 1535 | 1895 |
| 1536 static FileDupParams deserialize(bindings.Message message) { | 1896 static FileDupParams deserialize(bindings.Message message) { |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1583 return "FileDupParams(" | 1943 return "FileDupParams(" |
| 1584 "file: $file" ")"; | 1944 "file: $file" ")"; |
| 1585 } | 1945 } |
| 1586 | 1946 |
| 1587 Map toJson() { | 1947 Map toJson() { |
| 1588 throw new bindings.MojoCodecError( | 1948 throw new bindings.MojoCodecError( |
| 1589 'Object containing handles cannot be encoded to JSON.'); | 1949 'Object containing handles cannot be encoded to JSON.'); |
| 1590 } | 1950 } |
| 1591 } | 1951 } |
| 1592 | 1952 |
| 1953 mojom_types.MojomStruct _file_File_Dup_Params__() { |
| 1954 return new mojom_types.MojomStruct() |
| 1955 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileDupParams'
) |
| 1956 ..fields = <mojom_types.StructField>[ |
| 1957 new mojom_types.StructField() |
| 1958 ..declData = (new mojom_types.DeclarationData()..shortName = 'File') |
| 1959 ..type = (new mojom_types.Type() |
| 1960 ..typeReference = (new mojom_types.TypeReference() |
| 1961 |
| 1962 ..isInterfaceRequest = true |
| 1963 ..identifier = '_file_File__' |
| 1964 ..typeKey = '_file_File__' |
| 1965 )), |
| 1966 ]; |
| 1967 } |
| 1968 |
| 1593 | 1969 |
| 1594 class FileDupResponseParams extends bindings.Struct { | 1970 class FileDupResponseParams extends bindings.Struct { |
| 1595 static const List<bindings.StructDataHeader> kVersions = const [ | 1971 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1596 const bindings.StructDataHeader(16, 0) | 1972 const bindings.StructDataHeader(16, 0) |
| 1597 ]; | 1973 ]; |
| 1598 types_mojom.Error error = null; | 1974 types_mojom.Error error = null; |
| 1599 | 1975 |
| 1600 FileDupResponseParams() : super(kVersions.last.size); | 1976 FileDupResponseParams() : super(kVersions.last.size); |
| 1601 | 1977 |
| 1602 static FileDupResponseParams deserialize(bindings.Message message) { | 1978 static FileDupResponseParams deserialize(bindings.Message message) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1654 "error: $error" ")"; | 2030 "error: $error" ")"; |
| 1655 } | 2031 } |
| 1656 | 2032 |
| 1657 Map toJson() { | 2033 Map toJson() { |
| 1658 Map map = new Map(); | 2034 Map map = new Map(); |
| 1659 map["error"] = error; | 2035 map["error"] = error; |
| 1660 return map; | 2036 return map; |
| 1661 } | 2037 } |
| 1662 } | 2038 } |
| 1663 | 2039 |
| 2040 mojom_types.MojomStruct _file_File_Dup_ResponseParams__() { |
| 2041 return new mojom_types.MojomStruct() |
| 2042 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileDupRespons
eParams') |
| 2043 ..fields = <mojom_types.StructField>[ |
| 2044 new mojom_types.StructField() |
| 2045 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2046 ..type = (new mojom_types.Type() |
| 2047 ..typeReference = (new mojom_types.TypeReference() |
| 2048 |
| 2049 ..identifier = '_types_Error__' |
| 2050 ..typeKey = '_types_Error__' |
| 2051 )), |
| 2052 ]; |
| 2053 } |
| 2054 |
| 1664 | 2055 |
| 1665 class FileReopenParams extends bindings.Struct { | 2056 class FileReopenParams extends bindings.Struct { |
| 1666 static const List<bindings.StructDataHeader> kVersions = const [ | 2057 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1667 const bindings.StructDataHeader(16, 0) | 2058 const bindings.StructDataHeader(16, 0) |
| 1668 ]; | 2059 ]; |
| 1669 Object file = null; | 2060 Object file = null; |
| 1670 int openFlags = 0; | 2061 int openFlags = 0; |
| 1671 | 2062 |
| 1672 FileReopenParams() : super(kVersions.last.size); | 2063 FileReopenParams() : super(kVersions.last.size); |
| 1673 | 2064 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1728 "file: $file" ", " | 2119 "file: $file" ", " |
| 1729 "openFlags: $openFlags" ")"; | 2120 "openFlags: $openFlags" ")"; |
| 1730 } | 2121 } |
| 1731 | 2122 |
| 1732 Map toJson() { | 2123 Map toJson() { |
| 1733 throw new bindings.MojoCodecError( | 2124 throw new bindings.MojoCodecError( |
| 1734 'Object containing handles cannot be encoded to JSON.'); | 2125 'Object containing handles cannot be encoded to JSON.'); |
| 1735 } | 2126 } |
| 1736 } | 2127 } |
| 1737 | 2128 |
| 2129 mojom_types.MojomStruct _file_File_Reopen_Params__() { |
| 2130 return new mojom_types.MojomStruct() |
| 2131 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileReopenPara
ms') |
| 2132 ..fields = <mojom_types.StructField>[ |
| 2133 new mojom_types.StructField() |
| 2134 ..declData = (new mojom_types.DeclarationData()..shortName = 'File') |
| 2135 ..type = (new mojom_types.Type() |
| 2136 ..typeReference = (new mojom_types.TypeReference() |
| 2137 |
| 2138 ..isInterfaceRequest = true |
| 2139 ..identifier = '_file_File__' |
| 2140 ..typeKey = '_file_File__' |
| 2141 )), |
| 2142 |
| 2143 new mojom_types.StructField() |
| 2144 ..declData = (new mojom_types.DeclarationData()..shortName = 'OpenFlags'
) |
| 2145 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 2146 ]; |
| 2147 } |
| 2148 |
| 1738 | 2149 |
| 1739 class FileReopenResponseParams extends bindings.Struct { | 2150 class FileReopenResponseParams extends bindings.Struct { |
| 1740 static const List<bindings.StructDataHeader> kVersions = const [ | 2151 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1741 const bindings.StructDataHeader(16, 0) | 2152 const bindings.StructDataHeader(16, 0) |
| 1742 ]; | 2153 ]; |
| 1743 types_mojom.Error error = null; | 2154 types_mojom.Error error = null; |
| 1744 | 2155 |
| 1745 FileReopenResponseParams() : super(kVersions.last.size); | 2156 FileReopenResponseParams() : super(kVersions.last.size); |
| 1746 | 2157 |
| 1747 static FileReopenResponseParams deserialize(bindings.Message message) { | 2158 static FileReopenResponseParams deserialize(bindings.Message message) { |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1799 "error: $error" ")"; | 2210 "error: $error" ")"; |
| 1800 } | 2211 } |
| 1801 | 2212 |
| 1802 Map toJson() { | 2213 Map toJson() { |
| 1803 Map map = new Map(); | 2214 Map map = new Map(); |
| 1804 map["error"] = error; | 2215 map["error"] = error; |
| 1805 return map; | 2216 return map; |
| 1806 } | 2217 } |
| 1807 } | 2218 } |
| 1808 | 2219 |
| 2220 mojom_types.MojomStruct _file_File_Reopen_ResponseParams__() { |
| 2221 return new mojom_types.MojomStruct() |
| 2222 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileReopenResp
onseParams') |
| 2223 ..fields = <mojom_types.StructField>[ |
| 2224 new mojom_types.StructField() |
| 2225 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2226 ..type = (new mojom_types.Type() |
| 2227 ..typeReference = (new mojom_types.TypeReference() |
| 2228 |
| 2229 ..identifier = '_types_Error__' |
| 2230 ..typeKey = '_types_Error__' |
| 2231 )), |
| 2232 ]; |
| 2233 } |
| 2234 |
| 1809 | 2235 |
| 1810 class FileAsBufferParams extends bindings.Struct { | 2236 class FileAsBufferParams extends bindings.Struct { |
| 1811 static const List<bindings.StructDataHeader> kVersions = const [ | 2237 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1812 const bindings.StructDataHeader(8, 0) | 2238 const bindings.StructDataHeader(8, 0) |
| 1813 ]; | 2239 ]; |
| 1814 | 2240 |
| 1815 FileAsBufferParams() : super(kVersions.last.size); | 2241 FileAsBufferParams() : super(kVersions.last.size); |
| 1816 | 2242 |
| 1817 static FileAsBufferParams deserialize(bindings.Message message) { | 2243 static FileAsBufferParams deserialize(bindings.Message message) { |
| 1818 var decoder = new bindings.Decoder(message); | 2244 var decoder = new bindings.Decoder(message); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1857 String toString() { | 2283 String toString() { |
| 1858 return "FileAsBufferParams("")"; | 2284 return "FileAsBufferParams("")"; |
| 1859 } | 2285 } |
| 1860 | 2286 |
| 1861 Map toJson() { | 2287 Map toJson() { |
| 1862 Map map = new Map(); | 2288 Map map = new Map(); |
| 1863 return map; | 2289 return map; |
| 1864 } | 2290 } |
| 1865 } | 2291 } |
| 1866 | 2292 |
| 2293 mojom_types.MojomStruct _file_File_AsBuffer_Params__() { |
| 2294 return new mojom_types.MojomStruct() |
| 2295 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileAsBufferPa
rams') |
| 2296 ..fields = <mojom_types.StructField>[]; |
| 2297 } |
| 2298 |
| 1867 | 2299 |
| 1868 class FileAsBufferResponseParams extends bindings.Struct { | 2300 class FileAsBufferResponseParams extends bindings.Struct { |
| 1869 static const List<bindings.StructDataHeader> kVersions = const [ | 2301 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1870 const bindings.StructDataHeader(16, 0) | 2302 const bindings.StructDataHeader(16, 0) |
| 1871 ]; | 2303 ]; |
| 1872 types_mojom.Error error = null; | 2304 types_mojom.Error error = null; |
| 1873 core.MojoSharedBuffer buffer = null; | 2305 core.MojoSharedBuffer buffer = null; |
| 1874 | 2306 |
| 1875 FileAsBufferResponseParams() : super(kVersions.last.size); | 2307 FileAsBufferResponseParams() : super(kVersions.last.size); |
| 1876 | 2308 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1935 "error: $error" ", " | 2367 "error: $error" ", " |
| 1936 "buffer: $buffer" ")"; | 2368 "buffer: $buffer" ")"; |
| 1937 } | 2369 } |
| 1938 | 2370 |
| 1939 Map toJson() { | 2371 Map toJson() { |
| 1940 throw new bindings.MojoCodecError( | 2372 throw new bindings.MojoCodecError( |
| 1941 'Object containing handles cannot be encoded to JSON.'); | 2373 'Object containing handles cannot be encoded to JSON.'); |
| 1942 } | 2374 } |
| 1943 } | 2375 } |
| 1944 | 2376 |
| 2377 mojom_types.MojomStruct _file_File_AsBuffer_ResponseParams__() { |
| 2378 return new mojom_types.MojomStruct() |
| 2379 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileAsBufferRe
sponseParams') |
| 2380 ..fields = <mojom_types.StructField>[ |
| 2381 new mojom_types.StructField() |
| 2382 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2383 ..type = (new mojom_types.Type() |
| 2384 ..typeReference = (new mojom_types.TypeReference() |
| 2385 |
| 2386 ..identifier = '_types_Error__' |
| 2387 ..typeKey = '_types_Error__' |
| 2388 )), |
| 2389 |
| 2390 new mojom_types.StructField() |
| 2391 ..declData = (new mojom_types.DeclarationData()..shortName = 'Buffer') |
| 2392 ..type = (new mojom_types.Type() |
| 2393 ..handleType = (new mojom_types.HandleType() |
| 2394 ..kind = mojom_types.HandleTypeKind.SHARED_BUFFER |
| 2395 ..nullable = true)), |
| 2396 ]; |
| 2397 } |
| 2398 |
| 1945 | 2399 |
| 1946 class FileIoctlParams extends bindings.Struct { | 2400 class FileIoctlParams extends bindings.Struct { |
| 1947 static const List<bindings.StructDataHeader> kVersions = const [ | 2401 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1948 const bindings.StructDataHeader(24, 0) | 2402 const bindings.StructDataHeader(24, 0) |
| 1949 ]; | 2403 ]; |
| 1950 int request = 0; | 2404 int request = 0; |
| 1951 List<int> inValues = null; | 2405 List<int> inValues = null; |
| 1952 | 2406 |
| 1953 FileIoctlParams() : super(kVersions.last.size); | 2407 FileIoctlParams() : super(kVersions.last.size); |
| 1954 | 2408 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2011 } | 2465 } |
| 2012 | 2466 |
| 2013 Map toJson() { | 2467 Map toJson() { |
| 2014 Map map = new Map(); | 2468 Map map = new Map(); |
| 2015 map["request"] = request; | 2469 map["request"] = request; |
| 2016 map["inValues"] = inValues; | 2470 map["inValues"] = inValues; |
| 2017 return map; | 2471 return map; |
| 2018 } | 2472 } |
| 2019 } | 2473 } |
| 2020 | 2474 |
| 2475 mojom_types.MojomStruct _file_File_Ioctl_Params__() { |
| 2476 return new mojom_types.MojomStruct() |
| 2477 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileIoctlParam
s') |
| 2478 ..fields = <mojom_types.StructField>[ |
| 2479 new mojom_types.StructField() |
| 2480 ..declData = (new mojom_types.DeclarationData()..shortName = 'Request') |
| 2481 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 2482 |
| 2483 new mojom_types.StructField() |
| 2484 ..declData = (new mojom_types.DeclarationData()..shortName = 'InValues') |
| 2485 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 2486 ..nullable = true |
| 2487 |
| 2488 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.UINT32))), |
| 2489 ]; |
| 2490 } |
| 2491 |
| 2021 | 2492 |
| 2022 class FileIoctlResponseParams extends bindings.Struct { | 2493 class FileIoctlResponseParams extends bindings.Struct { |
| 2023 static const List<bindings.StructDataHeader> kVersions = const [ | 2494 static const List<bindings.StructDataHeader> kVersions = const [ |
| 2024 const bindings.StructDataHeader(24, 0) | 2495 const bindings.StructDataHeader(24, 0) |
| 2025 ]; | 2496 ]; |
| 2026 types_mojom.Error error = null; | 2497 types_mojom.Error error = null; |
| 2027 List<int> outValues = null; | 2498 List<int> outValues = null; |
| 2028 | 2499 |
| 2029 FileIoctlResponseParams() : super(kVersions.last.size); | 2500 FileIoctlResponseParams() : super(kVersions.last.size); |
| 2030 | 2501 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2091 } | 2562 } |
| 2092 | 2563 |
| 2093 Map toJson() { | 2564 Map toJson() { |
| 2094 Map map = new Map(); | 2565 Map map = new Map(); |
| 2095 map["error"] = error; | 2566 map["error"] = error; |
| 2096 map["outValues"] = outValues; | 2567 map["outValues"] = outValues; |
| 2097 return map; | 2568 return map; |
| 2098 } | 2569 } |
| 2099 } | 2570 } |
| 2100 | 2571 |
| 2572 mojom_types.MojomStruct _file_File_Ioctl_ResponseParams__() { |
| 2573 return new mojom_types.MojomStruct() |
| 2574 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileIoctlRespo
nseParams') |
| 2575 ..fields = <mojom_types.StructField>[ |
| 2576 new mojom_types.StructField() |
| 2577 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2578 ..type = (new mojom_types.Type() |
| 2579 ..typeReference = (new mojom_types.TypeReference() |
| 2580 |
| 2581 ..identifier = '_types_Error__' |
| 2582 ..typeKey = '_types_Error__' |
| 2583 )), |
| 2584 |
| 2585 new mojom_types.StructField() |
| 2586 ..declData = (new mojom_types.DeclarationData()..shortName = 'OutValues'
) |
| 2587 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 2588 ..nullable = true |
| 2589 |
| 2590 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.UINT32))), |
| 2591 ]; |
| 2592 } |
| 2593 |
| 2594 |
| 2101 const int kFile_close_name = 0; | 2595 const int kFile_close_name = 0; |
| 2102 const int kFile_read_name = 1; | 2596 const int kFile_read_name = 1; |
| 2103 const int kFile_write_name = 2; | 2597 const int kFile_write_name = 2; |
| 2104 const int kFile_readToStream_name = 3; | 2598 const int kFile_readToStream_name = 3; |
| 2105 const int kFile_writeFromStream_name = 4; | 2599 const int kFile_writeFromStream_name = 4; |
| 2106 const int kFile_tell_name = 5; | 2600 const int kFile_tell_name = 5; |
| 2107 const int kFile_seek_name = 6; | 2601 const int kFile_seek_name = 6; |
| 2108 const int kFile_stat_name = 7; | 2602 const int kFile_stat_name = 7; |
| 2109 const int kFile_truncate_name = 8; | 2603 const int kFile_truncate_name = 8; |
| 2110 const int kFile_touch_name = 9; | 2604 const int kFile_touch_name = 9; |
| 2111 const int kFile_dup_name = 10; | 2605 const int kFile_dup_name = 10; |
| 2112 const int kFile_reopen_name = 11; | 2606 const int kFile_reopen_name = 11; |
| 2113 const int kFile_asBuffer_name = 12; | 2607 const int kFile_asBuffer_name = 12; |
| 2114 const int kFile_ioctl_name = 13; | 2608 const int kFile_ioctl_name = 13; |
| 2115 | 2609 |
| 2116 const String FileName = | 2610 const String FileName = |
| 2117 'mojo::files::File'; | 2611 'mojo::files::File'; |
| 2118 | 2612 |
| 2613 mojom_types.MojomInterface _file_File__() { |
| 2614 return new mojom_types.MojomInterface() |
| 2615 ..declData = (new mojom_types.DeclarationData()..shortName = "File") |
| 2616 ..interfaceName = "File" |
| 2617 ..methods = <int, mojom_types.MojomMethod>{ |
| 2618 kFile_close_name: new mojom_types.MojomMethod() |
| 2619 ..declData = (new mojom_types.DeclarationData()..shortName = "Close") |
| 2620 ..ordinal = kFile_close_name |
| 2621 ..responseParams = _file_File_Close_ResponseParams__()..parameters = _fi
le_File_Close_Params__(),kFile_read_name: new mojom_types.MojomMethod() |
| 2622 ..declData = (new mojom_types.DeclarationData()..shortName = "Read") |
| 2623 ..ordinal = kFile_read_name |
| 2624 ..responseParams = _file_File_Read_ResponseParams__()..parameters = _fil
e_File_Read_Params__(),kFile_write_name: new mojom_types.MojomMethod() |
| 2625 ..declData = (new mojom_types.DeclarationData()..shortName = "Write") |
| 2626 ..ordinal = kFile_write_name |
| 2627 ..responseParams = _file_File_Write_ResponseParams__()..parameters = _fi
le_File_Write_Params__(),kFile_readToStream_name: new mojom_types.MojomMethod() |
| 2628 ..declData = (new mojom_types.DeclarationData()..shortName = "ReadToStre
am") |
| 2629 ..ordinal = kFile_readToStream_name |
| 2630 ..responseParams = _file_File_ReadToStream_ResponseParams__()..parameter
s = _file_File_ReadToStream_Params__(),kFile_writeFromStream_name: new mojom_typ
es.MojomMethod() |
| 2631 ..declData = (new mojom_types.DeclarationData()..shortName = "WriteFromS
tream") |
| 2632 ..ordinal = kFile_writeFromStream_name |
| 2633 ..responseParams = _file_File_WriteFromStream_ResponseParams__()..parame
ters = _file_File_WriteFromStream_Params__(),kFile_tell_name: new mojom_types.Mo
jomMethod() |
| 2634 ..declData = (new mojom_types.DeclarationData()..shortName = "Tell") |
| 2635 ..ordinal = kFile_tell_name |
| 2636 ..responseParams = _file_File_Tell_ResponseParams__()..parameters = _fil
e_File_Tell_Params__(),kFile_seek_name: new mojom_types.MojomMethod() |
| 2637 ..declData = (new mojom_types.DeclarationData()..shortName = "Seek") |
| 2638 ..ordinal = kFile_seek_name |
| 2639 ..responseParams = _file_File_Seek_ResponseParams__()..parameters = _fil
e_File_Seek_Params__(),kFile_stat_name: new mojom_types.MojomMethod() |
| 2640 ..declData = (new mojom_types.DeclarationData()..shortName = "Stat") |
| 2641 ..ordinal = kFile_stat_name |
| 2642 ..responseParams = _file_File_Stat_ResponseParams__()..parameters = _fil
e_File_Stat_Params__(),kFile_truncate_name: new mojom_types.MojomMethod() |
| 2643 ..declData = (new mojom_types.DeclarationData()..shortName = "Truncate") |
| 2644 ..ordinal = kFile_truncate_name |
| 2645 ..responseParams = _file_File_Truncate_ResponseParams__()..parameters =
_file_File_Truncate_Params__(),kFile_touch_name: new mojom_types.MojomMethod() |
| 2646 ..declData = (new mojom_types.DeclarationData()..shortName = "Touch") |
| 2647 ..ordinal = kFile_touch_name |
| 2648 ..responseParams = _file_File_Touch_ResponseParams__()..parameters = _fi
le_File_Touch_Params__(),kFile_dup_name: new mojom_types.MojomMethod() |
| 2649 ..declData = (new mojom_types.DeclarationData()..shortName = "Dup") |
| 2650 ..ordinal = kFile_dup_name |
| 2651 ..responseParams = _file_File_Dup_ResponseParams__()..parameters = _file
_File_Dup_Params__(),kFile_reopen_name: new mojom_types.MojomMethod() |
| 2652 ..declData = (new mojom_types.DeclarationData()..shortName = "Reopen") |
| 2653 ..ordinal = kFile_reopen_name |
| 2654 ..responseParams = _file_File_Reopen_ResponseParams__()..parameters = _f
ile_File_Reopen_Params__(),kFile_asBuffer_name: new mojom_types.MojomMethod() |
| 2655 ..declData = (new mojom_types.DeclarationData()..shortName = "AsBuffer") |
| 2656 ..ordinal = kFile_asBuffer_name |
| 2657 ..responseParams = _file_File_AsBuffer_ResponseParams__()..parameters =
_file_File_AsBuffer_Params__(),kFile_ioctl_name: new mojom_types.MojomMethod() |
| 2658 ..declData = (new mojom_types.DeclarationData()..shortName = "Ioctl") |
| 2659 ..ordinal = kFile_ioctl_name |
| 2660 ..responseParams = _file_File_Ioctl_ResponseParams__()..parameters = _fi
le_File_Ioctl_Params__(), |
| 2661 }; |
| 2662 } |
| 2663 |
| 2664 class _FileServiceDescription extends service_describer.ServiceDescription { |
| 2665 // Avoid infinite loop by overriding serviceDescription field. |
| 2666 final service_describer.ServiceDescription serviceDescription = null; |
| 2667 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 2668 return _file_File__(); |
| 2669 } |
| 2670 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 2671 return getAllMojomTypeDefinitions()[typeKey]; |
| 2672 } |
| 2673 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 2674 return getAllMojomTypeDefinitions(); |
| 2675 } |
| 2676 } |
| 2677 |
| 2119 abstract class File { | 2678 abstract class File { |
| 2120 dynamic close([Function responseFactory = null]); | 2679 dynamic close([Function responseFactory = null]); |
| 2121 dynamic read(int numBytesToRead,int offset,types_mojom.Whence whence,[Function
responseFactory = null]); | 2680 dynamic read(int numBytesToRead,int offset,types_mojom.Whence whence,[Function
responseFactory = null]); |
| 2122 dynamic write(List<int> bytesToWrite,int offset,types_mojom.Whence whence,[Fun
ction responseFactory = null]); | 2681 dynamic write(List<int> bytesToWrite,int offset,types_mojom.Whence whence,[Fun
ction responseFactory = null]); |
| 2123 dynamic readToStream(core.MojoDataPipeProducer source,int offset,types_mojom.W
hence whence,int numBytesToRead,[Function responseFactory = null]); | 2682 dynamic readToStream(core.MojoDataPipeProducer source,int offset,types_mojom.W
hence whence,int numBytesToRead,[Function responseFactory = null]); |
| 2124 dynamic writeFromStream(core.MojoDataPipeConsumer sink,int offset,types_mojom.
Whence whence,[Function responseFactory = null]); | 2683 dynamic writeFromStream(core.MojoDataPipeConsumer sink,int offset,types_mojom.
Whence whence,[Function responseFactory = null]); |
| 2125 dynamic tell([Function responseFactory = null]); | 2684 dynamic tell([Function responseFactory = null]); |
| 2126 dynamic seek(int offset,types_mojom.Whence whence,[Function responseFactory =
null]); | 2685 dynamic seek(int offset,types_mojom.Whence whence,[Function responseFactory =
null]); |
| 2127 dynamic stat([Function responseFactory = null]); | 2686 dynamic stat([Function responseFactory = null]); |
| 2128 dynamic truncate(int size,[Function responseFactory = null]); | 2687 dynamic truncate(int size,[Function responseFactory = null]); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 2145 FileProxyImpl.unbound() : super.unbound(); | 2704 FileProxyImpl.unbound() : super.unbound(); |
| 2146 | 2705 |
| 2147 static FileProxyImpl newFromEndpoint( | 2706 static FileProxyImpl newFromEndpoint( |
| 2148 core.MojoMessagePipeEndpoint endpoint) { | 2707 core.MojoMessagePipeEndpoint endpoint) { |
| 2149 assert(endpoint.setDescription("For FileProxyImpl")); | 2708 assert(endpoint.setDescription("For FileProxyImpl")); |
| 2150 return new FileProxyImpl.fromEndpoint(endpoint); | 2709 return new FileProxyImpl.fromEndpoint(endpoint); |
| 2151 } | 2710 } |
| 2152 | 2711 |
| 2153 String get name => FileName; | 2712 String get name => FileName; |
| 2154 | 2713 |
| 2714 service_describer.ServiceDescription get serviceDescription => |
| 2715 new _FileServiceDescription(); |
| 2716 |
| 2155 void handleResponse(bindings.ServiceMessage message) { | 2717 void handleResponse(bindings.ServiceMessage message) { |
| 2156 switch (message.header.type) { | 2718 switch (message.header.type) { |
| 2157 case kFile_close_name: | 2719 case kFile_close_name: |
| 2158 var r = FileCloseResponseParams.deserialize( | 2720 var r = FileCloseResponseParams.deserialize( |
| 2159 message.payload); | 2721 message.payload); |
| 2160 if (!message.header.hasRequestId) { | 2722 if (!message.header.hasRequestId) { |
| 2161 proxyError("Expected a message with a valid request Id."); | 2723 proxyError("Expected a message with a valid request Id."); |
| 2162 return; | 2724 return; |
| 2163 } | 2725 } |
| 2164 Completer c = completerMap[message.header.requestId]; | 2726 Completer c = completerMap[message.header.requestId]; |
| (...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3075 assert(_impl == null); | 3637 assert(_impl == null); |
| 3076 _impl = d; | 3638 _impl = d; |
| 3077 } | 3639 } |
| 3078 | 3640 |
| 3079 String toString() { | 3641 String toString() { |
| 3080 var superString = super.toString(); | 3642 var superString = super.toString(); |
| 3081 return "FileStub($superString)"; | 3643 return "FileStub($superString)"; |
| 3082 } | 3644 } |
| 3083 | 3645 |
| 3084 int get version => 0; | 3646 int get version => 0; |
| 3647 |
| 3648 service_describer.ServiceDescription get serviceDescription => |
| 3649 new _FileServiceDescription(); |
| 3085 } | 3650 } |
| 3086 | 3651 |
| 3087 | 3652 |
| 3653 |
| 3654 |
| 3655 |
| 3656 |
| 3657 |
| 3658 |
| 3659 var _MojomDesc__ = _initDescriptions(); |
| 3660 |
| 3661 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 3662 var map = new Map<String, mojom_types.UserDefinedType>(); |
| 3663 |
| 3664 map["_file_File_Close_Params__"] = |
| 3665 new mojom_types.UserDefinedType() |
| 3666 ..structType = _file_File_Close_Params__(); |
| 3667 |
| 3668 |
| 3669 |
| 3670 map["_file_File_Close_ResponseParams__"] = |
| 3671 new mojom_types.UserDefinedType() |
| 3672 ..structType = _file_File_Close_ResponseParams__(); |
| 3673 |
| 3674 |
| 3675 |
| 3676 |
| 3677 |
| 3678 map["_file_File_Read_Params__"] = |
| 3679 new mojom_types.UserDefinedType() |
| 3680 ..structType = _file_File_Read_Params__(); |
| 3681 |
| 3682 |
| 3683 |
| 3684 |
| 3685 |
| 3686 |
| 3687 |
| 3688 |
| 3689 |
| 3690 map["_file_File_Read_ResponseParams__"] = |
| 3691 new mojom_types.UserDefinedType() |
| 3692 ..structType = _file_File_Read_ResponseParams__(); |
| 3693 |
| 3694 |
| 3695 |
| 3696 |
| 3697 |
| 3698 |
| 3699 |
| 3700 map["_file_File_Write_Params__"] = |
| 3701 new mojom_types.UserDefinedType() |
| 3702 ..structType = _file_File_Write_Params__(); |
| 3703 |
| 3704 |
| 3705 |
| 3706 |
| 3707 |
| 3708 |
| 3709 |
| 3710 |
| 3711 |
| 3712 map["_file_File_Write_ResponseParams__"] = |
| 3713 new mojom_types.UserDefinedType() |
| 3714 ..structType = _file_File_Write_ResponseParams__(); |
| 3715 |
| 3716 |
| 3717 |
| 3718 |
| 3719 |
| 3720 |
| 3721 |
| 3722 map["_file_File_ReadToStream_Params__"] = |
| 3723 new mojom_types.UserDefinedType() |
| 3724 ..structType = _file_File_ReadToStream_Params__(); |
| 3725 |
| 3726 |
| 3727 |
| 3728 |
| 3729 |
| 3730 |
| 3731 |
| 3732 |
| 3733 |
| 3734 |
| 3735 |
| 3736 map["_file_File_ReadToStream_ResponseParams__"] = |
| 3737 new mojom_types.UserDefinedType() |
| 3738 ..structType = _file_File_ReadToStream_ResponseParams__(); |
| 3739 |
| 3740 |
| 3741 |
| 3742 |
| 3743 |
| 3744 map["_file_File_WriteFromStream_Params__"] = |
| 3745 new mojom_types.UserDefinedType() |
| 3746 ..structType = _file_File_WriteFromStream_Params__(); |
| 3747 |
| 3748 |
| 3749 |
| 3750 |
| 3751 |
| 3752 |
| 3753 |
| 3754 |
| 3755 |
| 3756 map["_file_File_WriteFromStream_ResponseParams__"] = |
| 3757 new mojom_types.UserDefinedType() |
| 3758 ..structType = _file_File_WriteFromStream_ResponseParams__(); |
| 3759 |
| 3760 |
| 3761 |
| 3762 |
| 3763 |
| 3764 map["_file_File_Tell_Params__"] = |
| 3765 new mojom_types.UserDefinedType() |
| 3766 ..structType = _file_File_Tell_Params__(); |
| 3767 |
| 3768 |
| 3769 |
| 3770 map["_file_File_Tell_ResponseParams__"] = |
| 3771 new mojom_types.UserDefinedType() |
| 3772 ..structType = _file_File_Tell_ResponseParams__(); |
| 3773 |
| 3774 |
| 3775 |
| 3776 |
| 3777 |
| 3778 |
| 3779 |
| 3780 map["_file_File_Seek_Params__"] = |
| 3781 new mojom_types.UserDefinedType() |
| 3782 ..structType = _file_File_Seek_Params__(); |
| 3783 |
| 3784 |
| 3785 |
| 3786 |
| 3787 |
| 3788 |
| 3789 |
| 3790 map["_file_File_Seek_ResponseParams__"] = |
| 3791 new mojom_types.UserDefinedType() |
| 3792 ..structType = _file_File_Seek_ResponseParams__(); |
| 3793 |
| 3794 |
| 3795 |
| 3796 |
| 3797 |
| 3798 |
| 3799 |
| 3800 map["_file_File_Stat_Params__"] = |
| 3801 new mojom_types.UserDefinedType() |
| 3802 ..structType = _file_File_Stat_Params__(); |
| 3803 |
| 3804 |
| 3805 |
| 3806 map["_file_File_Stat_ResponseParams__"] = |
| 3807 new mojom_types.UserDefinedType() |
| 3808 ..structType = _file_File_Stat_ResponseParams__(); |
| 3809 |
| 3810 |
| 3811 |
| 3812 |
| 3813 |
| 3814 |
| 3815 |
| 3816 map["_file_File_Truncate_Params__"] = |
| 3817 new mojom_types.UserDefinedType() |
| 3818 ..structType = _file_File_Truncate_Params__(); |
| 3819 |
| 3820 |
| 3821 |
| 3822 |
| 3823 |
| 3824 map["_file_File_Truncate_ResponseParams__"] = |
| 3825 new mojom_types.UserDefinedType() |
| 3826 ..structType = _file_File_Truncate_ResponseParams__(); |
| 3827 |
| 3828 |
| 3829 |
| 3830 |
| 3831 |
| 3832 map["_file_File_Touch_Params__"] = |
| 3833 new mojom_types.UserDefinedType() |
| 3834 ..structType = _file_File_Touch_Params__(); |
| 3835 |
| 3836 |
| 3837 |
| 3838 |
| 3839 |
| 3840 |
| 3841 |
| 3842 map["_file_File_Touch_ResponseParams__"] = |
| 3843 new mojom_types.UserDefinedType() |
| 3844 ..structType = _file_File_Touch_ResponseParams__(); |
| 3845 |
| 3846 |
| 3847 |
| 3848 |
| 3849 |
| 3850 map["_file_File_Dup_Params__"] = |
| 3851 new mojom_types.UserDefinedType() |
| 3852 ..structType = _file_File_Dup_Params__(); |
| 3853 |
| 3854 |
| 3855 |
| 3856 |
| 3857 |
| 3858 map["_file_File_Dup_ResponseParams__"] = |
| 3859 new mojom_types.UserDefinedType() |
| 3860 ..structType = _file_File_Dup_ResponseParams__(); |
| 3861 |
| 3862 |
| 3863 |
| 3864 |
| 3865 |
| 3866 map["_file_File_Reopen_Params__"] = |
| 3867 new mojom_types.UserDefinedType() |
| 3868 ..structType = _file_File_Reopen_Params__(); |
| 3869 |
| 3870 |
| 3871 |
| 3872 |
| 3873 |
| 3874 |
| 3875 |
| 3876 map["_file_File_Reopen_ResponseParams__"] = |
| 3877 new mojom_types.UserDefinedType() |
| 3878 ..structType = _file_File_Reopen_ResponseParams__(); |
| 3879 |
| 3880 |
| 3881 |
| 3882 |
| 3883 |
| 3884 map["_file_File_AsBuffer_Params__"] = |
| 3885 new mojom_types.UserDefinedType() |
| 3886 ..structType = _file_File_AsBuffer_Params__(); |
| 3887 |
| 3888 |
| 3889 |
| 3890 map["_file_File_AsBuffer_ResponseParams__"] = |
| 3891 new mojom_types.UserDefinedType() |
| 3892 ..structType = _file_File_AsBuffer_ResponseParams__(); |
| 3893 |
| 3894 |
| 3895 |
| 3896 |
| 3897 |
| 3898 |
| 3899 |
| 3900 map["_file_File_Ioctl_Params__"] = |
| 3901 new mojom_types.UserDefinedType() |
| 3902 ..structType = _file_File_Ioctl_Params__(); |
| 3903 |
| 3904 |
| 3905 |
| 3906 |
| 3907 |
| 3908 |
| 3909 |
| 3910 map["_file_File_Ioctl_ResponseParams__"] = |
| 3911 new mojom_types.UserDefinedType() |
| 3912 ..structType = _file_File_Ioctl_ResponseParams__(); |
| 3913 |
| 3914 |
| 3915 |
| 3916 |
| 3917 |
| 3918 |
| 3919 |
| 3920 map["_file_File__"] = |
| 3921 new mojom_types.UserDefinedType() |
| 3922 ..interfaceType = _file_File__(); |
| 3923 |
| 3924 types_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefi
nedType udt) { |
| 3925 map[s] = udt; |
| 3926 }); |
| 3927 return map; |
| 3928 } |
| 3929 |
| 3930 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 3931 return _MojomDesc__; |
| 3932 } |
| 3933 |
| 3934 |
| OLD | NEW |