| 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 import 'dart:collection'; |
| 8 | 9 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 10 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 11 import 'package:mojo/core.dart' as core; |
| 12 import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
| 13 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 11 import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom; | 14 import 'package:mojo_services/mojo/files/types.mojom.dart' as types_mojom; |
| 12 | 15 |
| 13 | 16 |
| 14 | 17 |
| 15 class _FileCloseParams extends bindings.Struct { | 18 class _FileCloseParams extends bindings.Struct { |
| 16 static const List<bindings.StructDataHeader> kVersions = const [ | 19 static const List<bindings.StructDataHeader> kVersions = const [ |
| 17 const bindings.StructDataHeader(8, 0) | 20 const bindings.StructDataHeader(8, 0) |
| 18 ]; | 21 ]; |
| 19 | 22 |
| 20 _FileCloseParams() : super(kVersions.last.size); | 23 _FileCloseParams() : super(kVersions.last.size); |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 64 |
| 62 String toString() { | 65 String toString() { |
| 63 return "_FileCloseParams("")"; | 66 return "_FileCloseParams("")"; |
| 64 } | 67 } |
| 65 | 68 |
| 66 Map toJson() { | 69 Map toJson() { |
| 67 Map map = new Map(); | 70 Map map = new Map(); |
| 68 return map; | 71 return map; |
| 69 } | 72 } |
| 70 } | 73 } |
| 74 mojom_types.MojomStruct _file_File_Close_Params__() { |
| 75 return new mojom_types.MojomStruct() |
| 76 ..declData = (new mojom_types.DeclarationData() |
| 77 ..shortName = '_FileCloseParams' |
| 78 ..fullIdentifier = 'mojo.files._FileCloseParams') |
| 79 ..fields = <mojom_types.StructField>[]; |
| 80 } |
| 71 | 81 |
| 72 | 82 |
| 73 class FileCloseResponseParams extends bindings.Struct { | 83 class FileCloseResponseParams extends bindings.Struct { |
| 74 static const List<bindings.StructDataHeader> kVersions = const [ | 84 static const List<bindings.StructDataHeader> kVersions = const [ |
| 75 const bindings.StructDataHeader(16, 0) | 85 const bindings.StructDataHeader(16, 0) |
| 76 ]; | 86 ]; |
| 77 types_mojom.Error err = null; | 87 types_mojom.Error err = null; |
| 78 | 88 |
| 79 FileCloseResponseParams() : super(kVersions.last.size); | 89 FileCloseResponseParams() : super(kVersions.last.size); |
| 80 | 90 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return "FileCloseResponseParams(" | 142 return "FileCloseResponseParams(" |
| 133 "err: $err" ")"; | 143 "err: $err" ")"; |
| 134 } | 144 } |
| 135 | 145 |
| 136 Map toJson() { | 146 Map toJson() { |
| 137 Map map = new Map(); | 147 Map map = new Map(); |
| 138 map["err"] = err; | 148 map["err"] = err; |
| 139 return map; | 149 return map; |
| 140 } | 150 } |
| 141 } | 151 } |
| 152 mojom_types.MojomStruct _file_File_Close_ResponseParams__() { |
| 153 return new mojom_types.MojomStruct() |
| 154 ..declData = (new mojom_types.DeclarationData() |
| 155 ..shortName = 'FileCloseResponseParams' |
| 156 ..fullIdentifier = 'mojo.files.FileCloseResponseParams') |
| 157 ..fields = <mojom_types.StructField>[ |
| 158 new mojom_types.StructField() |
| 159 ..declData = (new mojom_types.DeclarationData()..shortName = 'Err') |
| 160 ..type = (new mojom_types.Type() |
| 161 ..typeReference = (new mojom_types.TypeReference() |
| 162 |
| 163 ..identifier = '_types_Error__' |
| 164 ..typeKey = '_types_Error__' |
| 165 )), |
| 166 ]; |
| 167 } |
| 142 | 168 |
| 143 | 169 |
| 144 class _FileReadParams extends bindings.Struct { | 170 class _FileReadParams extends bindings.Struct { |
| 145 static const List<bindings.StructDataHeader> kVersions = const [ | 171 static const List<bindings.StructDataHeader> kVersions = const [ |
| 146 const bindings.StructDataHeader(24, 0) | 172 const bindings.StructDataHeader(24, 0) |
| 147 ]; | 173 ]; |
| 148 int numBytesToRead = 0; | 174 int numBytesToRead = 0; |
| 149 types_mojom.Whence whence = null; | 175 types_mojom.Whence whence = null; |
| 150 int offset = 0; | 176 int offset = 0; |
| 151 | 177 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 } | 247 } |
| 222 | 248 |
| 223 Map toJson() { | 249 Map toJson() { |
| 224 Map map = new Map(); | 250 Map map = new Map(); |
| 225 map["numBytesToRead"] = numBytesToRead; | 251 map["numBytesToRead"] = numBytesToRead; |
| 226 map["whence"] = whence; | 252 map["whence"] = whence; |
| 227 map["offset"] = offset; | 253 map["offset"] = offset; |
| 228 return map; | 254 return map; |
| 229 } | 255 } |
| 230 } | 256 } |
| 257 mojom_types.MojomStruct _file_File_Read_Params__() { |
| 258 return new mojom_types.MojomStruct() |
| 259 ..declData = (new mojom_types.DeclarationData() |
| 260 ..shortName = '_FileReadParams' |
| 261 ..fullIdentifier = 'mojo.files._FileReadParams') |
| 262 ..fields = <mojom_types.StructField>[ |
| 263 new mojom_types.StructField() |
| 264 ..declData = (new mojom_types.DeclarationData()..shortName = 'NumBytesTo
Read') |
| 265 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt32), |
| 266 |
| 267 new mojom_types.StructField() |
| 268 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 269 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 270 |
| 271 new mojom_types.StructField() |
| 272 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 273 ..type = (new mojom_types.Type() |
| 274 ..typeReference = (new mojom_types.TypeReference() |
| 275 |
| 276 ..identifier = '_types_Whence__' |
| 277 ..typeKey = '_types_Whence__' |
| 278 )), |
| 279 ]; |
| 280 } |
| 231 | 281 |
| 232 | 282 |
| 233 class FileReadResponseParams extends bindings.Struct { | 283 class FileReadResponseParams extends bindings.Struct { |
| 234 static const List<bindings.StructDataHeader> kVersions = const [ | 284 static const List<bindings.StructDataHeader> kVersions = const [ |
| 235 const bindings.StructDataHeader(24, 0) | 285 const bindings.StructDataHeader(24, 0) |
| 236 ]; | 286 ]; |
| 237 types_mojom.Error error = null; | 287 types_mojom.Error error = null; |
| 238 List<int> bytesRead = null; | 288 List<int> bytesRead = null; |
| 239 | 289 |
| 240 FileReadResponseParams() : super(kVersions.last.size); | 290 FileReadResponseParams() : super(kVersions.last.size); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 "bytesRead: $bytesRead" ")"; | 351 "bytesRead: $bytesRead" ")"; |
| 302 } | 352 } |
| 303 | 353 |
| 304 Map toJson() { | 354 Map toJson() { |
| 305 Map map = new Map(); | 355 Map map = new Map(); |
| 306 map["error"] = error; | 356 map["error"] = error; |
| 307 map["bytesRead"] = bytesRead; | 357 map["bytesRead"] = bytesRead; |
| 308 return map; | 358 return map; |
| 309 } | 359 } |
| 310 } | 360 } |
| 361 mojom_types.MojomStruct _file_File_Read_ResponseParams__() { |
| 362 return new mojom_types.MojomStruct() |
| 363 ..declData = (new mojom_types.DeclarationData() |
| 364 ..shortName = 'FileReadResponseParams' |
| 365 ..fullIdentifier = 'mojo.files.FileReadResponseParams') |
| 366 ..fields = <mojom_types.StructField>[ |
| 367 new mojom_types.StructField() |
| 368 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 369 ..type = (new mojom_types.Type() |
| 370 ..typeReference = (new mojom_types.TypeReference() |
| 371 |
| 372 ..identifier = '_types_Error__' |
| 373 ..typeKey = '_types_Error__' |
| 374 )), |
| 375 |
| 376 new mojom_types.StructField() |
| 377 ..declData = (new mojom_types.DeclarationData()..shortName = 'BytesRead'
) |
| 378 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 379 ..nullable = true |
| 380 |
| 381 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.uint8))), |
| 382 ]; |
| 383 } |
| 311 | 384 |
| 312 | 385 |
| 313 class _FileWriteParams extends bindings.Struct { | 386 class _FileWriteParams extends bindings.Struct { |
| 314 static const List<bindings.StructDataHeader> kVersions = const [ | 387 static const List<bindings.StructDataHeader> kVersions = const [ |
| 315 const bindings.StructDataHeader(32, 0) | 388 const bindings.StructDataHeader(32, 0) |
| 316 ]; | 389 ]; |
| 317 List<int> bytesToWrite = null; | 390 List<int> bytesToWrite = null; |
| 318 int offset = 0; | 391 int offset = 0; |
| 319 types_mojom.Whence whence = null; | 392 types_mojom.Whence whence = null; |
| 320 | 393 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 } | 463 } |
| 391 | 464 |
| 392 Map toJson() { | 465 Map toJson() { |
| 393 Map map = new Map(); | 466 Map map = new Map(); |
| 394 map["bytesToWrite"] = bytesToWrite; | 467 map["bytesToWrite"] = bytesToWrite; |
| 395 map["offset"] = offset; | 468 map["offset"] = offset; |
| 396 map["whence"] = whence; | 469 map["whence"] = whence; |
| 397 return map; | 470 return map; |
| 398 } | 471 } |
| 399 } | 472 } |
| 473 mojom_types.MojomStruct _file_File_Write_Params__() { |
| 474 return new mojom_types.MojomStruct() |
| 475 ..declData = (new mojom_types.DeclarationData() |
| 476 ..shortName = '_FileWriteParams' |
| 477 ..fullIdentifier = 'mojo.files._FileWriteParams') |
| 478 ..fields = <mojom_types.StructField>[ |
| 479 new mojom_types.StructField() |
| 480 ..declData = (new mojom_types.DeclarationData()..shortName = 'BytesToWri
te') |
| 481 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 482 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.uint8))), |
| 483 |
| 484 new mojom_types.StructField() |
| 485 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 486 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 487 |
| 488 new mojom_types.StructField() |
| 489 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 490 ..type = (new mojom_types.Type() |
| 491 ..typeReference = (new mojom_types.TypeReference() |
| 492 |
| 493 ..identifier = '_types_Whence__' |
| 494 ..typeKey = '_types_Whence__' |
| 495 )), |
| 496 ]; |
| 497 } |
| 400 | 498 |
| 401 | 499 |
| 402 class FileWriteResponseParams extends bindings.Struct { | 500 class FileWriteResponseParams extends bindings.Struct { |
| 403 static const List<bindings.StructDataHeader> kVersions = const [ | 501 static const List<bindings.StructDataHeader> kVersions = const [ |
| 404 const bindings.StructDataHeader(16, 0) | 502 const bindings.StructDataHeader(16, 0) |
| 405 ]; | 503 ]; |
| 406 types_mojom.Error error = null; | 504 types_mojom.Error error = null; |
| 407 int numBytesWritten = 0; | 505 int numBytesWritten = 0; |
| 408 | 506 |
| 409 FileWriteResponseParams() : super(kVersions.last.size); | 507 FileWriteResponseParams() : super(kVersions.last.size); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 470 "numBytesWritten: $numBytesWritten" ")"; | 568 "numBytesWritten: $numBytesWritten" ")"; |
| 471 } | 569 } |
| 472 | 570 |
| 473 Map toJson() { | 571 Map toJson() { |
| 474 Map map = new Map(); | 572 Map map = new Map(); |
| 475 map["error"] = error; | 573 map["error"] = error; |
| 476 map["numBytesWritten"] = numBytesWritten; | 574 map["numBytesWritten"] = numBytesWritten; |
| 477 return map; | 575 return map; |
| 478 } | 576 } |
| 479 } | 577 } |
| 578 mojom_types.MojomStruct _file_File_Write_ResponseParams__() { |
| 579 return new mojom_types.MojomStruct() |
| 580 ..declData = (new mojom_types.DeclarationData() |
| 581 ..shortName = 'FileWriteResponseParams' |
| 582 ..fullIdentifier = 'mojo.files.FileWriteResponseParams') |
| 583 ..fields = <mojom_types.StructField>[ |
| 584 new mojom_types.StructField() |
| 585 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 586 ..type = (new mojom_types.Type() |
| 587 ..typeReference = (new mojom_types.TypeReference() |
| 588 |
| 589 ..identifier = '_types_Error__' |
| 590 ..typeKey = '_types_Error__' |
| 591 )), |
| 592 |
| 593 new mojom_types.StructField() |
| 594 ..declData = (new mojom_types.DeclarationData()..shortName = 'NumBytesWr
itten') |
| 595 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt32), |
| 596 ]; |
| 597 } |
| 480 | 598 |
| 481 | 599 |
| 482 class _FileReadToStreamParams extends bindings.Struct { | 600 class _FileReadToStreamParams extends bindings.Struct { |
| 483 static const List<bindings.StructDataHeader> kVersions = const [ | 601 static const List<bindings.StructDataHeader> kVersions = const [ |
| 484 const bindings.StructDataHeader(32, 0) | 602 const bindings.StructDataHeader(32, 0) |
| 485 ]; | 603 ]; |
| 486 core.MojoDataPipeProducer source = null; | 604 core.MojoDataPipeProducer source = null; |
| 487 types_mojom.Whence whence = null; | 605 types_mojom.Whence whence = null; |
| 488 int offset = 0; | 606 int offset = 0; |
| 489 int numBytesToRead = 0; | 607 int numBytesToRead = 0; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 "whence: $whence" ", " | 682 "whence: $whence" ", " |
| 565 "offset: $offset" ", " | 683 "offset: $offset" ", " |
| 566 "numBytesToRead: $numBytesToRead" ")"; | 684 "numBytesToRead: $numBytesToRead" ")"; |
| 567 } | 685 } |
| 568 | 686 |
| 569 Map toJson() { | 687 Map toJson() { |
| 570 throw new bindings.MojoCodecError( | 688 throw new bindings.MojoCodecError( |
| 571 'Object containing handles cannot be encoded to JSON.'); | 689 'Object containing handles cannot be encoded to JSON.'); |
| 572 } | 690 } |
| 573 } | 691 } |
| 692 mojom_types.MojomStruct _file_File_ReadToStream_Params__() { |
| 693 return new mojom_types.MojomStruct() |
| 694 ..declData = (new mojom_types.DeclarationData() |
| 695 ..shortName = '_FileReadToStreamParams' |
| 696 ..fullIdentifier = 'mojo.files._FileReadToStreamParams') |
| 697 ..fields = <mojom_types.StructField>[ |
| 698 new mojom_types.StructField() |
| 699 ..declData = (new mojom_types.DeclarationData()..shortName = 'Source') |
| 700 ..type = (new mojom_types.Type() |
| 701 ..handleType = (new mojom_types.HandleType() |
| 702 ..kind = mojom_types.HandleTypeKind.dataPipeProducer |
| 703 ..nullable = false)), |
| 704 |
| 705 new mojom_types.StructField() |
| 706 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 707 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 708 |
| 709 new mojom_types.StructField() |
| 710 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 711 ..type = (new mojom_types.Type() |
| 712 ..typeReference = (new mojom_types.TypeReference() |
| 713 |
| 714 ..identifier = '_types_Whence__' |
| 715 ..typeKey = '_types_Whence__' |
| 716 )), |
| 717 |
| 718 new mojom_types.StructField() |
| 719 ..declData = (new mojom_types.DeclarationData()..shortName = 'NumBytesTo
Read') |
| 720 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 721 ]; |
| 722 } |
| 574 | 723 |
| 575 | 724 |
| 576 class FileReadToStreamResponseParams extends bindings.Struct { | 725 class FileReadToStreamResponseParams extends bindings.Struct { |
| 577 static const List<bindings.StructDataHeader> kVersions = const [ | 726 static const List<bindings.StructDataHeader> kVersions = const [ |
| 578 const bindings.StructDataHeader(16, 0) | 727 const bindings.StructDataHeader(16, 0) |
| 579 ]; | 728 ]; |
| 580 types_mojom.Error error = null; | 729 types_mojom.Error error = null; |
| 581 | 730 |
| 582 FileReadToStreamResponseParams() : super(kVersions.last.size); | 731 FileReadToStreamResponseParams() : super(kVersions.last.size); |
| 583 | 732 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 return "FileReadToStreamResponseParams(" | 784 return "FileReadToStreamResponseParams(" |
| 636 "error: $error" ")"; | 785 "error: $error" ")"; |
| 637 } | 786 } |
| 638 | 787 |
| 639 Map toJson() { | 788 Map toJson() { |
| 640 Map map = new Map(); | 789 Map map = new Map(); |
| 641 map["error"] = error; | 790 map["error"] = error; |
| 642 return map; | 791 return map; |
| 643 } | 792 } |
| 644 } | 793 } |
| 794 mojom_types.MojomStruct _file_File_ReadToStream_ResponseParams__() { |
| 795 return new mojom_types.MojomStruct() |
| 796 ..declData = (new mojom_types.DeclarationData() |
| 797 ..shortName = 'FileReadToStreamResponseParams' |
| 798 ..fullIdentifier = 'mojo.files.FileReadToStreamResponseParams') |
| 799 ..fields = <mojom_types.StructField>[ |
| 800 new mojom_types.StructField() |
| 801 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 802 ..type = (new mojom_types.Type() |
| 803 ..typeReference = (new mojom_types.TypeReference() |
| 804 |
| 805 ..identifier = '_types_Error__' |
| 806 ..typeKey = '_types_Error__' |
| 807 )), |
| 808 ]; |
| 809 } |
| 645 | 810 |
| 646 | 811 |
| 647 class _FileWriteFromStreamParams extends bindings.Struct { | 812 class _FileWriteFromStreamParams extends bindings.Struct { |
| 648 static const List<bindings.StructDataHeader> kVersions = const [ | 813 static const List<bindings.StructDataHeader> kVersions = const [ |
| 649 const bindings.StructDataHeader(24, 0) | 814 const bindings.StructDataHeader(24, 0) |
| 650 ]; | 815 ]; |
| 651 core.MojoDataPipeConsumer sink = null; | 816 core.MojoDataPipeConsumer sink = null; |
| 652 types_mojom.Whence whence = null; | 817 types_mojom.Whence whence = null; |
| 653 int offset = 0; | 818 int offset = 0; |
| 654 | 819 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 721 "sink: $sink" ", " | 886 "sink: $sink" ", " |
| 722 "whence: $whence" ", " | 887 "whence: $whence" ", " |
| 723 "offset: $offset" ")"; | 888 "offset: $offset" ")"; |
| 724 } | 889 } |
| 725 | 890 |
| 726 Map toJson() { | 891 Map toJson() { |
| 727 throw new bindings.MojoCodecError( | 892 throw new bindings.MojoCodecError( |
| 728 'Object containing handles cannot be encoded to JSON.'); | 893 'Object containing handles cannot be encoded to JSON.'); |
| 729 } | 894 } |
| 730 } | 895 } |
| 896 mojom_types.MojomStruct _file_File_WriteFromStream_Params__() { |
| 897 return new mojom_types.MojomStruct() |
| 898 ..declData = (new mojom_types.DeclarationData() |
| 899 ..shortName = '_FileWriteFromStreamParams' |
| 900 ..fullIdentifier = 'mojo.files._FileWriteFromStreamParams') |
| 901 ..fields = <mojom_types.StructField>[ |
| 902 new mojom_types.StructField() |
| 903 ..declData = (new mojom_types.DeclarationData()..shortName = 'Sink') |
| 904 ..type = (new mojom_types.Type() |
| 905 ..handleType = (new mojom_types.HandleType() |
| 906 ..kind = mojom_types.HandleTypeKind.dataPipeConsumer |
| 907 ..nullable = false)), |
| 908 |
| 909 new mojom_types.StructField() |
| 910 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 911 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 912 |
| 913 new mojom_types.StructField() |
| 914 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 915 ..type = (new mojom_types.Type() |
| 916 ..typeReference = (new mojom_types.TypeReference() |
| 917 |
| 918 ..identifier = '_types_Whence__' |
| 919 ..typeKey = '_types_Whence__' |
| 920 )), |
| 921 ]; |
| 922 } |
| 731 | 923 |
| 732 | 924 |
| 733 class FileWriteFromStreamResponseParams extends bindings.Struct { | 925 class FileWriteFromStreamResponseParams extends bindings.Struct { |
| 734 static const List<bindings.StructDataHeader> kVersions = const [ | 926 static const List<bindings.StructDataHeader> kVersions = const [ |
| 735 const bindings.StructDataHeader(16, 0) | 927 const bindings.StructDataHeader(16, 0) |
| 736 ]; | 928 ]; |
| 737 types_mojom.Error error = null; | 929 types_mojom.Error error = null; |
| 738 | 930 |
| 739 FileWriteFromStreamResponseParams() : super(kVersions.last.size); | 931 FileWriteFromStreamResponseParams() : super(kVersions.last.size); |
| 740 | 932 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 return "FileWriteFromStreamResponseParams(" | 984 return "FileWriteFromStreamResponseParams(" |
| 793 "error: $error" ")"; | 985 "error: $error" ")"; |
| 794 } | 986 } |
| 795 | 987 |
| 796 Map toJson() { | 988 Map toJson() { |
| 797 Map map = new Map(); | 989 Map map = new Map(); |
| 798 map["error"] = error; | 990 map["error"] = error; |
| 799 return map; | 991 return map; |
| 800 } | 992 } |
| 801 } | 993 } |
| 994 mojom_types.MojomStruct _file_File_WriteFromStream_ResponseParams__() { |
| 995 return new mojom_types.MojomStruct() |
| 996 ..declData = (new mojom_types.DeclarationData() |
| 997 ..shortName = 'FileWriteFromStreamResponseParams' |
| 998 ..fullIdentifier = 'mojo.files.FileWriteFromStreamResponseParams') |
| 999 ..fields = <mojom_types.StructField>[ |
| 1000 new mojom_types.StructField() |
| 1001 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1002 ..type = (new mojom_types.Type() |
| 1003 ..typeReference = (new mojom_types.TypeReference() |
| 1004 |
| 1005 ..identifier = '_types_Error__' |
| 1006 ..typeKey = '_types_Error__' |
| 1007 )), |
| 1008 ]; |
| 1009 } |
| 802 | 1010 |
| 803 | 1011 |
| 804 class _FileTellParams extends bindings.Struct { | 1012 class _FileTellParams extends bindings.Struct { |
| 805 static const List<bindings.StructDataHeader> kVersions = const [ | 1013 static const List<bindings.StructDataHeader> kVersions = const [ |
| 806 const bindings.StructDataHeader(8, 0) | 1014 const bindings.StructDataHeader(8, 0) |
| 807 ]; | 1015 ]; |
| 808 | 1016 |
| 809 _FileTellParams() : super(kVersions.last.size); | 1017 _FileTellParams() : super(kVersions.last.size); |
| 810 | 1018 |
| 811 static _FileTellParams deserialize(bindings.Message message) { | 1019 static _FileTellParams deserialize(bindings.Message message) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 | 1058 |
| 851 String toString() { | 1059 String toString() { |
| 852 return "_FileTellParams("")"; | 1060 return "_FileTellParams("")"; |
| 853 } | 1061 } |
| 854 | 1062 |
| 855 Map toJson() { | 1063 Map toJson() { |
| 856 Map map = new Map(); | 1064 Map map = new Map(); |
| 857 return map; | 1065 return map; |
| 858 } | 1066 } |
| 859 } | 1067 } |
| 1068 mojom_types.MojomStruct _file_File_Tell_Params__() { |
| 1069 return new mojom_types.MojomStruct() |
| 1070 ..declData = (new mojom_types.DeclarationData() |
| 1071 ..shortName = '_FileTellParams' |
| 1072 ..fullIdentifier = 'mojo.files._FileTellParams') |
| 1073 ..fields = <mojom_types.StructField>[]; |
| 1074 } |
| 860 | 1075 |
| 861 | 1076 |
| 862 class FileTellResponseParams extends bindings.Struct { | 1077 class FileTellResponseParams extends bindings.Struct { |
| 863 static const List<bindings.StructDataHeader> kVersions = const [ | 1078 static const List<bindings.StructDataHeader> kVersions = const [ |
| 864 const bindings.StructDataHeader(24, 0) | 1079 const bindings.StructDataHeader(24, 0) |
| 865 ]; | 1080 ]; |
| 866 types_mojom.Error error = null; | 1081 types_mojom.Error error = null; |
| 867 int position = 0; | 1082 int position = 0; |
| 868 | 1083 |
| 869 FileTellResponseParams() : super(kVersions.last.size); | 1084 FileTellResponseParams() : super(kVersions.last.size); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 930 "position: $position" ")"; | 1145 "position: $position" ")"; |
| 931 } | 1146 } |
| 932 | 1147 |
| 933 Map toJson() { | 1148 Map toJson() { |
| 934 Map map = new Map(); | 1149 Map map = new Map(); |
| 935 map["error"] = error; | 1150 map["error"] = error; |
| 936 map["position"] = position; | 1151 map["position"] = position; |
| 937 return map; | 1152 return map; |
| 938 } | 1153 } |
| 939 } | 1154 } |
| 1155 mojom_types.MojomStruct _file_File_Tell_ResponseParams__() { |
| 1156 return new mojom_types.MojomStruct() |
| 1157 ..declData = (new mojom_types.DeclarationData() |
| 1158 ..shortName = 'FileTellResponseParams' |
| 1159 ..fullIdentifier = 'mojo.files.FileTellResponseParams') |
| 1160 ..fields = <mojom_types.StructField>[ |
| 1161 new mojom_types.StructField() |
| 1162 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1163 ..type = (new mojom_types.Type() |
| 1164 ..typeReference = (new mojom_types.TypeReference() |
| 1165 |
| 1166 ..identifier = '_types_Error__' |
| 1167 ..typeKey = '_types_Error__' |
| 1168 )), |
| 1169 |
| 1170 new mojom_types.StructField() |
| 1171 ..declData = (new mojom_types.DeclarationData()..shortName = 'Position') |
| 1172 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 1173 ]; |
| 1174 } |
| 940 | 1175 |
| 941 | 1176 |
| 942 class _FileSeekParams extends bindings.Struct { | 1177 class _FileSeekParams extends bindings.Struct { |
| 943 static const List<bindings.StructDataHeader> kVersions = const [ | 1178 static const List<bindings.StructDataHeader> kVersions = const [ |
| 944 const bindings.StructDataHeader(24, 0) | 1179 const bindings.StructDataHeader(24, 0) |
| 945 ]; | 1180 ]; |
| 946 int offset = 0; | 1181 int offset = 0; |
| 947 types_mojom.Whence whence = null; | 1182 types_mojom.Whence whence = null; |
| 948 | 1183 |
| 949 _FileSeekParams() : super(kVersions.last.size); | 1184 _FileSeekParams() : super(kVersions.last.size); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1010 "whence: $whence" ")"; | 1245 "whence: $whence" ")"; |
| 1011 } | 1246 } |
| 1012 | 1247 |
| 1013 Map toJson() { | 1248 Map toJson() { |
| 1014 Map map = new Map(); | 1249 Map map = new Map(); |
| 1015 map["offset"] = offset; | 1250 map["offset"] = offset; |
| 1016 map["whence"] = whence; | 1251 map["whence"] = whence; |
| 1017 return map; | 1252 return map; |
| 1018 } | 1253 } |
| 1019 } | 1254 } |
| 1255 mojom_types.MojomStruct _file_File_Seek_Params__() { |
| 1256 return new mojom_types.MojomStruct() |
| 1257 ..declData = (new mojom_types.DeclarationData() |
| 1258 ..shortName = '_FileSeekParams' |
| 1259 ..fullIdentifier = 'mojo.files._FileSeekParams') |
| 1260 ..fields = <mojom_types.StructField>[ |
| 1261 new mojom_types.StructField() |
| 1262 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 1263 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 1264 |
| 1265 new mojom_types.StructField() |
| 1266 ..declData = (new mojom_types.DeclarationData()..shortName = 'Whence') |
| 1267 ..type = (new mojom_types.Type() |
| 1268 ..typeReference = (new mojom_types.TypeReference() |
| 1269 |
| 1270 ..identifier = '_types_Whence__' |
| 1271 ..typeKey = '_types_Whence__' |
| 1272 )), |
| 1273 ]; |
| 1274 } |
| 1020 | 1275 |
| 1021 | 1276 |
| 1022 class FileSeekResponseParams extends bindings.Struct { | 1277 class FileSeekResponseParams extends bindings.Struct { |
| 1023 static const List<bindings.StructDataHeader> kVersions = const [ | 1278 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1024 const bindings.StructDataHeader(24, 0) | 1279 const bindings.StructDataHeader(24, 0) |
| 1025 ]; | 1280 ]; |
| 1026 types_mojom.Error error = null; | 1281 types_mojom.Error error = null; |
| 1027 int position = 0; | 1282 int position = 0; |
| 1028 | 1283 |
| 1029 FileSeekResponseParams() : super(kVersions.last.size); | 1284 FileSeekResponseParams() : super(kVersions.last.size); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 "position: $position" ")"; | 1345 "position: $position" ")"; |
| 1091 } | 1346 } |
| 1092 | 1347 |
| 1093 Map toJson() { | 1348 Map toJson() { |
| 1094 Map map = new Map(); | 1349 Map map = new Map(); |
| 1095 map["error"] = error; | 1350 map["error"] = error; |
| 1096 map["position"] = position; | 1351 map["position"] = position; |
| 1097 return map; | 1352 return map; |
| 1098 } | 1353 } |
| 1099 } | 1354 } |
| 1355 mojom_types.MojomStruct _file_File_Seek_ResponseParams__() { |
| 1356 return new mojom_types.MojomStruct() |
| 1357 ..declData = (new mojom_types.DeclarationData() |
| 1358 ..shortName = 'FileSeekResponseParams' |
| 1359 ..fullIdentifier = 'mojo.files.FileSeekResponseParams') |
| 1360 ..fields = <mojom_types.StructField>[ |
| 1361 new mojom_types.StructField() |
| 1362 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1363 ..type = (new mojom_types.Type() |
| 1364 ..typeReference = (new mojom_types.TypeReference() |
| 1365 |
| 1366 ..identifier = '_types_Error__' |
| 1367 ..typeKey = '_types_Error__' |
| 1368 )), |
| 1369 |
| 1370 new mojom_types.StructField() |
| 1371 ..declData = (new mojom_types.DeclarationData()..shortName = 'Position') |
| 1372 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 1373 ]; |
| 1374 } |
| 1100 | 1375 |
| 1101 | 1376 |
| 1102 class _FileStatParams extends bindings.Struct { | 1377 class _FileStatParams extends bindings.Struct { |
| 1103 static const List<bindings.StructDataHeader> kVersions = const [ | 1378 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1104 const bindings.StructDataHeader(8, 0) | 1379 const bindings.StructDataHeader(8, 0) |
| 1105 ]; | 1380 ]; |
| 1106 | 1381 |
| 1107 _FileStatParams() : super(kVersions.last.size); | 1382 _FileStatParams() : super(kVersions.last.size); |
| 1108 | 1383 |
| 1109 static _FileStatParams deserialize(bindings.Message message) { | 1384 static _FileStatParams deserialize(bindings.Message message) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 | 1423 |
| 1149 String toString() { | 1424 String toString() { |
| 1150 return "_FileStatParams("")"; | 1425 return "_FileStatParams("")"; |
| 1151 } | 1426 } |
| 1152 | 1427 |
| 1153 Map toJson() { | 1428 Map toJson() { |
| 1154 Map map = new Map(); | 1429 Map map = new Map(); |
| 1155 return map; | 1430 return map; |
| 1156 } | 1431 } |
| 1157 } | 1432 } |
| 1433 mojom_types.MojomStruct _file_File_Stat_Params__() { |
| 1434 return new mojom_types.MojomStruct() |
| 1435 ..declData = (new mojom_types.DeclarationData() |
| 1436 ..shortName = '_FileStatParams' |
| 1437 ..fullIdentifier = 'mojo.files._FileStatParams') |
| 1438 ..fields = <mojom_types.StructField>[]; |
| 1439 } |
| 1158 | 1440 |
| 1159 | 1441 |
| 1160 class FileStatResponseParams extends bindings.Struct { | 1442 class FileStatResponseParams extends bindings.Struct { |
| 1161 static const List<bindings.StructDataHeader> kVersions = const [ | 1443 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1162 const bindings.StructDataHeader(24, 0) | 1444 const bindings.StructDataHeader(24, 0) |
| 1163 ]; | 1445 ]; |
| 1164 types_mojom.Error error = null; | 1446 types_mojom.Error error = null; |
| 1165 types_mojom.FileInformation fileInformation = null; | 1447 types_mojom.FileInformation fileInformation = null; |
| 1166 | 1448 |
| 1167 FileStatResponseParams() : super(kVersions.last.size); | 1449 FileStatResponseParams() : super(kVersions.last.size); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1229 "fileInformation: $fileInformation" ")"; | 1511 "fileInformation: $fileInformation" ")"; |
| 1230 } | 1512 } |
| 1231 | 1513 |
| 1232 Map toJson() { | 1514 Map toJson() { |
| 1233 Map map = new Map(); | 1515 Map map = new Map(); |
| 1234 map["error"] = error; | 1516 map["error"] = error; |
| 1235 map["fileInformation"] = fileInformation; | 1517 map["fileInformation"] = fileInformation; |
| 1236 return map; | 1518 return map; |
| 1237 } | 1519 } |
| 1238 } | 1520 } |
| 1521 mojom_types.MojomStruct _file_File_Stat_ResponseParams__() { |
| 1522 return new mojom_types.MojomStruct() |
| 1523 ..declData = (new mojom_types.DeclarationData() |
| 1524 ..shortName = 'FileStatResponseParams' |
| 1525 ..fullIdentifier = 'mojo.files.FileStatResponseParams') |
| 1526 ..fields = <mojom_types.StructField>[ |
| 1527 new mojom_types.StructField() |
| 1528 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1529 ..type = (new mojom_types.Type() |
| 1530 ..typeReference = (new mojom_types.TypeReference() |
| 1531 |
| 1532 ..identifier = '_types_Error__' |
| 1533 ..typeKey = '_types_Error__' |
| 1534 )), |
| 1535 |
| 1536 new mojom_types.StructField() |
| 1537 ..declData = (new mojom_types.DeclarationData()..shortName = 'FileInform
ation') |
| 1538 ..type = (new mojom_types.Type() |
| 1539 ..typeReference = (new mojom_types.TypeReference() |
| 1540 ..nullable = true |
| 1541 |
| 1542 |
| 1543 ..identifier = '_types_FileInformation__' |
| 1544 ..typeKey = '_types_FileInformation__' |
| 1545 )), |
| 1546 ]; |
| 1547 } |
| 1239 | 1548 |
| 1240 | 1549 |
| 1241 class _FileTruncateParams extends bindings.Struct { | 1550 class _FileTruncateParams extends bindings.Struct { |
| 1242 static const List<bindings.StructDataHeader> kVersions = const [ | 1551 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1243 const bindings.StructDataHeader(16, 0) | 1552 const bindings.StructDataHeader(16, 0) |
| 1244 ]; | 1553 ]; |
| 1245 int size = 0; | 1554 int size = 0; |
| 1246 | 1555 |
| 1247 _FileTruncateParams() : super(kVersions.last.size); | 1556 _FileTruncateParams() : super(kVersions.last.size); |
| 1248 | 1557 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1296 return "_FileTruncateParams(" | 1605 return "_FileTruncateParams(" |
| 1297 "size: $size" ")"; | 1606 "size: $size" ")"; |
| 1298 } | 1607 } |
| 1299 | 1608 |
| 1300 Map toJson() { | 1609 Map toJson() { |
| 1301 Map map = new Map(); | 1610 Map map = new Map(); |
| 1302 map["size"] = size; | 1611 map["size"] = size; |
| 1303 return map; | 1612 return map; |
| 1304 } | 1613 } |
| 1305 } | 1614 } |
| 1615 mojom_types.MojomStruct _file_File_Truncate_Params__() { |
| 1616 return new mojom_types.MojomStruct() |
| 1617 ..declData = (new mojom_types.DeclarationData() |
| 1618 ..shortName = '_FileTruncateParams' |
| 1619 ..fullIdentifier = 'mojo.files._FileTruncateParams') |
| 1620 ..fields = <mojom_types.StructField>[ |
| 1621 new mojom_types.StructField() |
| 1622 ..declData = (new mojom_types.DeclarationData()..shortName = 'Size') |
| 1623 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 1624 ]; |
| 1625 } |
| 1306 | 1626 |
| 1307 | 1627 |
| 1308 class FileTruncateResponseParams extends bindings.Struct { | 1628 class FileTruncateResponseParams extends bindings.Struct { |
| 1309 static const List<bindings.StructDataHeader> kVersions = const [ | 1629 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1310 const bindings.StructDataHeader(16, 0) | 1630 const bindings.StructDataHeader(16, 0) |
| 1311 ]; | 1631 ]; |
| 1312 types_mojom.Error error = null; | 1632 types_mojom.Error error = null; |
| 1313 | 1633 |
| 1314 FileTruncateResponseParams() : super(kVersions.last.size); | 1634 FileTruncateResponseParams() : super(kVersions.last.size); |
| 1315 | 1635 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 return "FileTruncateResponseParams(" | 1687 return "FileTruncateResponseParams(" |
| 1368 "error: $error" ")"; | 1688 "error: $error" ")"; |
| 1369 } | 1689 } |
| 1370 | 1690 |
| 1371 Map toJson() { | 1691 Map toJson() { |
| 1372 Map map = new Map(); | 1692 Map map = new Map(); |
| 1373 map["error"] = error; | 1693 map["error"] = error; |
| 1374 return map; | 1694 return map; |
| 1375 } | 1695 } |
| 1376 } | 1696 } |
| 1697 mojom_types.MojomStruct _file_File_Truncate_ResponseParams__() { |
| 1698 return new mojom_types.MojomStruct() |
| 1699 ..declData = (new mojom_types.DeclarationData() |
| 1700 ..shortName = 'FileTruncateResponseParams' |
| 1701 ..fullIdentifier = 'mojo.files.FileTruncateResponseParams') |
| 1702 ..fields = <mojom_types.StructField>[ |
| 1703 new mojom_types.StructField() |
| 1704 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1705 ..type = (new mojom_types.Type() |
| 1706 ..typeReference = (new mojom_types.TypeReference() |
| 1707 |
| 1708 ..identifier = '_types_Error__' |
| 1709 ..typeKey = '_types_Error__' |
| 1710 )), |
| 1711 ]; |
| 1712 } |
| 1377 | 1713 |
| 1378 | 1714 |
| 1379 class _FileTouchParams extends bindings.Struct { | 1715 class _FileTouchParams extends bindings.Struct { |
| 1380 static const List<bindings.StructDataHeader> kVersions = const [ | 1716 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1381 const bindings.StructDataHeader(24, 0) | 1717 const bindings.StructDataHeader(24, 0) |
| 1382 ]; | 1718 ]; |
| 1383 types_mojom.TimespecOrNow atime = null; | 1719 types_mojom.TimespecOrNow atime = null; |
| 1384 types_mojom.TimespecOrNow mtime = null; | 1720 types_mojom.TimespecOrNow mtime = null; |
| 1385 | 1721 |
| 1386 _FileTouchParams() : super(kVersions.last.size); | 1722 _FileTouchParams() : super(kVersions.last.size); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1445 "mtime: $mtime" ")"; | 1781 "mtime: $mtime" ")"; |
| 1446 } | 1782 } |
| 1447 | 1783 |
| 1448 Map toJson() { | 1784 Map toJson() { |
| 1449 Map map = new Map(); | 1785 Map map = new Map(); |
| 1450 map["atime"] = atime; | 1786 map["atime"] = atime; |
| 1451 map["mtime"] = mtime; | 1787 map["mtime"] = mtime; |
| 1452 return map; | 1788 return map; |
| 1453 } | 1789 } |
| 1454 } | 1790 } |
| 1791 mojom_types.MojomStruct _file_File_Touch_Params__() { |
| 1792 return new mojom_types.MojomStruct() |
| 1793 ..declData = (new mojom_types.DeclarationData() |
| 1794 ..shortName = '_FileTouchParams' |
| 1795 ..fullIdentifier = 'mojo.files._FileTouchParams') |
| 1796 ..fields = <mojom_types.StructField>[ |
| 1797 new mojom_types.StructField() |
| 1798 ..declData = (new mojom_types.DeclarationData()..shortName = 'Atime') |
| 1799 ..type = (new mojom_types.Type() |
| 1800 ..typeReference = (new mojom_types.TypeReference() |
| 1801 ..nullable = true |
| 1802 |
| 1803 |
| 1804 ..identifier = '_types_TimespecOrNow__' |
| 1805 ..typeKey = '_types_TimespecOrNow__' |
| 1806 )), |
| 1807 |
| 1808 new mojom_types.StructField() |
| 1809 ..declData = (new mojom_types.DeclarationData()..shortName = 'Mtime') |
| 1810 ..type = (new mojom_types.Type() |
| 1811 ..typeReference = (new mojom_types.TypeReference() |
| 1812 ..nullable = true |
| 1813 |
| 1814 |
| 1815 ..identifier = '_types_TimespecOrNow__' |
| 1816 ..typeKey = '_types_TimespecOrNow__' |
| 1817 )), |
| 1818 ]; |
| 1819 } |
| 1455 | 1820 |
| 1456 | 1821 |
| 1457 class FileTouchResponseParams extends bindings.Struct { | 1822 class FileTouchResponseParams extends bindings.Struct { |
| 1458 static const List<bindings.StructDataHeader> kVersions = const [ | 1823 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1459 const bindings.StructDataHeader(16, 0) | 1824 const bindings.StructDataHeader(16, 0) |
| 1460 ]; | 1825 ]; |
| 1461 types_mojom.Error error = null; | 1826 types_mojom.Error error = null; |
| 1462 | 1827 |
| 1463 FileTouchResponseParams() : super(kVersions.last.size); | 1828 FileTouchResponseParams() : super(kVersions.last.size); |
| 1464 | 1829 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 return "FileTouchResponseParams(" | 1881 return "FileTouchResponseParams(" |
| 1517 "error: $error" ")"; | 1882 "error: $error" ")"; |
| 1518 } | 1883 } |
| 1519 | 1884 |
| 1520 Map toJson() { | 1885 Map toJson() { |
| 1521 Map map = new Map(); | 1886 Map map = new Map(); |
| 1522 map["error"] = error; | 1887 map["error"] = error; |
| 1523 return map; | 1888 return map; |
| 1524 } | 1889 } |
| 1525 } | 1890 } |
| 1891 mojom_types.MojomStruct _file_File_Touch_ResponseParams__() { |
| 1892 return new mojom_types.MojomStruct() |
| 1893 ..declData = (new mojom_types.DeclarationData() |
| 1894 ..shortName = 'FileTouchResponseParams' |
| 1895 ..fullIdentifier = 'mojo.files.FileTouchResponseParams') |
| 1896 ..fields = <mojom_types.StructField>[ |
| 1897 new mojom_types.StructField() |
| 1898 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 1899 ..type = (new mojom_types.Type() |
| 1900 ..typeReference = (new mojom_types.TypeReference() |
| 1901 |
| 1902 ..identifier = '_types_Error__' |
| 1903 ..typeKey = '_types_Error__' |
| 1904 )), |
| 1905 ]; |
| 1906 } |
| 1526 | 1907 |
| 1527 | 1908 |
| 1528 class _FileDupParams extends bindings.Struct { | 1909 class _FileDupParams extends bindings.Struct { |
| 1529 static const List<bindings.StructDataHeader> kVersions = const [ | 1910 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1530 const bindings.StructDataHeader(16, 0) | 1911 const bindings.StructDataHeader(16, 0) |
| 1531 ]; | 1912 ]; |
| 1532 Object file = null; | 1913 Object file = null; |
| 1533 | 1914 |
| 1534 _FileDupParams() : super(kVersions.last.size); | 1915 _FileDupParams() : super(kVersions.last.size); |
| 1535 | 1916 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1582 String toString() { | 1963 String toString() { |
| 1583 return "_FileDupParams(" | 1964 return "_FileDupParams(" |
| 1584 "file: $file" ")"; | 1965 "file: $file" ")"; |
| 1585 } | 1966 } |
| 1586 | 1967 |
| 1587 Map toJson() { | 1968 Map toJson() { |
| 1588 throw new bindings.MojoCodecError( | 1969 throw new bindings.MojoCodecError( |
| 1589 'Object containing handles cannot be encoded to JSON.'); | 1970 'Object containing handles cannot be encoded to JSON.'); |
| 1590 } | 1971 } |
| 1591 } | 1972 } |
| 1973 mojom_types.MojomStruct _file_File_Dup_Params__() { |
| 1974 return new mojom_types.MojomStruct() |
| 1975 ..declData = (new mojom_types.DeclarationData() |
| 1976 ..shortName = '_FileDupParams' |
| 1977 ..fullIdentifier = 'mojo.files._FileDupParams') |
| 1978 ..fields = <mojom_types.StructField>[ |
| 1979 new mojom_types.StructField() |
| 1980 ..declData = (new mojom_types.DeclarationData()..shortName = 'File') |
| 1981 ..type = (new mojom_types.Type() |
| 1982 ..typeReference = (new mojom_types.TypeReference() |
| 1983 |
| 1984 ..isInterfaceRequest = true |
| 1985 ..identifier = '_file_File__' |
| 1986 ..typeKey = '_file_File__' |
| 1987 )), |
| 1988 ]; |
| 1989 } |
| 1592 | 1990 |
| 1593 | 1991 |
| 1594 class FileDupResponseParams extends bindings.Struct { | 1992 class FileDupResponseParams extends bindings.Struct { |
| 1595 static const List<bindings.StructDataHeader> kVersions = const [ | 1993 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1596 const bindings.StructDataHeader(16, 0) | 1994 const bindings.StructDataHeader(16, 0) |
| 1597 ]; | 1995 ]; |
| 1598 types_mojom.Error error = null; | 1996 types_mojom.Error error = null; |
| 1599 | 1997 |
| 1600 FileDupResponseParams() : super(kVersions.last.size); | 1998 FileDupResponseParams() : super(kVersions.last.size); |
| 1601 | 1999 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 return "FileDupResponseParams(" | 2051 return "FileDupResponseParams(" |
| 1654 "error: $error" ")"; | 2052 "error: $error" ")"; |
| 1655 } | 2053 } |
| 1656 | 2054 |
| 1657 Map toJson() { | 2055 Map toJson() { |
| 1658 Map map = new Map(); | 2056 Map map = new Map(); |
| 1659 map["error"] = error; | 2057 map["error"] = error; |
| 1660 return map; | 2058 return map; |
| 1661 } | 2059 } |
| 1662 } | 2060 } |
| 2061 mojom_types.MojomStruct _file_File_Dup_ResponseParams__() { |
| 2062 return new mojom_types.MojomStruct() |
| 2063 ..declData = (new mojom_types.DeclarationData() |
| 2064 ..shortName = 'FileDupResponseParams' |
| 2065 ..fullIdentifier = 'mojo.files.FileDupResponseParams') |
| 2066 ..fields = <mojom_types.StructField>[ |
| 2067 new mojom_types.StructField() |
| 2068 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2069 ..type = (new mojom_types.Type() |
| 2070 ..typeReference = (new mojom_types.TypeReference() |
| 2071 |
| 2072 ..identifier = '_types_Error__' |
| 2073 ..typeKey = '_types_Error__' |
| 2074 )), |
| 2075 ]; |
| 2076 } |
| 1663 | 2077 |
| 1664 | 2078 |
| 1665 class _FileReopenParams extends bindings.Struct { | 2079 class _FileReopenParams extends bindings.Struct { |
| 1666 static const List<bindings.StructDataHeader> kVersions = const [ | 2080 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1667 const bindings.StructDataHeader(16, 0) | 2081 const bindings.StructDataHeader(16, 0) |
| 1668 ]; | 2082 ]; |
| 1669 Object file = null; | 2083 Object file = null; |
| 1670 int openFlags = 0; | 2084 int openFlags = 0; |
| 1671 | 2085 |
| 1672 _FileReopenParams() : super(kVersions.last.size); | 2086 _FileReopenParams() : super(kVersions.last.size); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1727 return "_FileReopenParams(" | 2141 return "_FileReopenParams(" |
| 1728 "file: $file" ", " | 2142 "file: $file" ", " |
| 1729 "openFlags: $openFlags" ")"; | 2143 "openFlags: $openFlags" ")"; |
| 1730 } | 2144 } |
| 1731 | 2145 |
| 1732 Map toJson() { | 2146 Map toJson() { |
| 1733 throw new bindings.MojoCodecError( | 2147 throw new bindings.MojoCodecError( |
| 1734 'Object containing handles cannot be encoded to JSON.'); | 2148 'Object containing handles cannot be encoded to JSON.'); |
| 1735 } | 2149 } |
| 1736 } | 2150 } |
| 2151 mojom_types.MojomStruct _file_File_Reopen_Params__() { |
| 2152 return new mojom_types.MojomStruct() |
| 2153 ..declData = (new mojom_types.DeclarationData() |
| 2154 ..shortName = '_FileReopenParams' |
| 2155 ..fullIdentifier = 'mojo.files._FileReopenParams') |
| 2156 ..fields = <mojom_types.StructField>[ |
| 2157 new mojom_types.StructField() |
| 2158 ..declData = (new mojom_types.DeclarationData()..shortName = 'File') |
| 2159 ..type = (new mojom_types.Type() |
| 2160 ..typeReference = (new mojom_types.TypeReference() |
| 2161 |
| 2162 ..isInterfaceRequest = true |
| 2163 ..identifier = '_file_File__' |
| 2164 ..typeKey = '_file_File__' |
| 2165 )), |
| 2166 |
| 2167 new mojom_types.StructField() |
| 2168 ..declData = (new mojom_types.DeclarationData()..shortName = 'OpenFlags'
) |
| 2169 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt32), |
| 2170 ]; |
| 2171 } |
| 1737 | 2172 |
| 1738 | 2173 |
| 1739 class FileReopenResponseParams extends bindings.Struct { | 2174 class FileReopenResponseParams extends bindings.Struct { |
| 1740 static const List<bindings.StructDataHeader> kVersions = const [ | 2175 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1741 const bindings.StructDataHeader(16, 0) | 2176 const bindings.StructDataHeader(16, 0) |
| 1742 ]; | 2177 ]; |
| 1743 types_mojom.Error error = null; | 2178 types_mojom.Error error = null; |
| 1744 | 2179 |
| 1745 FileReopenResponseParams() : super(kVersions.last.size); | 2180 FileReopenResponseParams() : super(kVersions.last.size); |
| 1746 | 2181 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1798 return "FileReopenResponseParams(" | 2233 return "FileReopenResponseParams(" |
| 1799 "error: $error" ")"; | 2234 "error: $error" ")"; |
| 1800 } | 2235 } |
| 1801 | 2236 |
| 1802 Map toJson() { | 2237 Map toJson() { |
| 1803 Map map = new Map(); | 2238 Map map = new Map(); |
| 1804 map["error"] = error; | 2239 map["error"] = error; |
| 1805 return map; | 2240 return map; |
| 1806 } | 2241 } |
| 1807 } | 2242 } |
| 2243 mojom_types.MojomStruct _file_File_Reopen_ResponseParams__() { |
| 2244 return new mojom_types.MojomStruct() |
| 2245 ..declData = (new mojom_types.DeclarationData() |
| 2246 ..shortName = 'FileReopenResponseParams' |
| 2247 ..fullIdentifier = 'mojo.files.FileReopenResponseParams') |
| 2248 ..fields = <mojom_types.StructField>[ |
| 2249 new mojom_types.StructField() |
| 2250 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2251 ..type = (new mojom_types.Type() |
| 2252 ..typeReference = (new mojom_types.TypeReference() |
| 2253 |
| 2254 ..identifier = '_types_Error__' |
| 2255 ..typeKey = '_types_Error__' |
| 2256 )), |
| 2257 ]; |
| 2258 } |
| 1808 | 2259 |
| 1809 | 2260 |
| 1810 class _FileAsBufferParams extends bindings.Struct { | 2261 class _FileAsBufferParams extends bindings.Struct { |
| 1811 static const List<bindings.StructDataHeader> kVersions = const [ | 2262 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1812 const bindings.StructDataHeader(8, 0) | 2263 const bindings.StructDataHeader(8, 0) |
| 1813 ]; | 2264 ]; |
| 1814 | 2265 |
| 1815 _FileAsBufferParams() : super(kVersions.last.size); | 2266 _FileAsBufferParams() : super(kVersions.last.size); |
| 1816 | 2267 |
| 1817 static _FileAsBufferParams deserialize(bindings.Message message) { | 2268 static _FileAsBufferParams deserialize(bindings.Message message) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1856 | 2307 |
| 1857 String toString() { | 2308 String toString() { |
| 1858 return "_FileAsBufferParams("")"; | 2309 return "_FileAsBufferParams("")"; |
| 1859 } | 2310 } |
| 1860 | 2311 |
| 1861 Map toJson() { | 2312 Map toJson() { |
| 1862 Map map = new Map(); | 2313 Map map = new Map(); |
| 1863 return map; | 2314 return map; |
| 1864 } | 2315 } |
| 1865 } | 2316 } |
| 2317 mojom_types.MojomStruct _file_File_AsBuffer_Params__() { |
| 2318 return new mojom_types.MojomStruct() |
| 2319 ..declData = (new mojom_types.DeclarationData() |
| 2320 ..shortName = '_FileAsBufferParams' |
| 2321 ..fullIdentifier = 'mojo.files._FileAsBufferParams') |
| 2322 ..fields = <mojom_types.StructField>[]; |
| 2323 } |
| 1866 | 2324 |
| 1867 | 2325 |
| 1868 class FileAsBufferResponseParams extends bindings.Struct { | 2326 class FileAsBufferResponseParams extends bindings.Struct { |
| 1869 static const List<bindings.StructDataHeader> kVersions = const [ | 2327 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1870 const bindings.StructDataHeader(16, 0) | 2328 const bindings.StructDataHeader(16, 0) |
| 1871 ]; | 2329 ]; |
| 1872 types_mojom.Error error = null; | 2330 types_mojom.Error error = null; |
| 1873 core.MojoSharedBuffer buffer = null; | 2331 core.MojoSharedBuffer buffer = null; |
| 1874 | 2332 |
| 1875 FileAsBufferResponseParams() : super(kVersions.last.size); | 2333 FileAsBufferResponseParams() : super(kVersions.last.size); |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1934 return "FileAsBufferResponseParams(" | 2392 return "FileAsBufferResponseParams(" |
| 1935 "error: $error" ", " | 2393 "error: $error" ", " |
| 1936 "buffer: $buffer" ")"; | 2394 "buffer: $buffer" ")"; |
| 1937 } | 2395 } |
| 1938 | 2396 |
| 1939 Map toJson() { | 2397 Map toJson() { |
| 1940 throw new bindings.MojoCodecError( | 2398 throw new bindings.MojoCodecError( |
| 1941 'Object containing handles cannot be encoded to JSON.'); | 2399 'Object containing handles cannot be encoded to JSON.'); |
| 1942 } | 2400 } |
| 1943 } | 2401 } |
| 2402 mojom_types.MojomStruct _file_File_AsBuffer_ResponseParams__() { |
| 2403 return new mojom_types.MojomStruct() |
| 2404 ..declData = (new mojom_types.DeclarationData() |
| 2405 ..shortName = 'FileAsBufferResponseParams' |
| 2406 ..fullIdentifier = 'mojo.files.FileAsBufferResponseParams') |
| 2407 ..fields = <mojom_types.StructField>[ |
| 2408 new mojom_types.StructField() |
| 2409 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2410 ..type = (new mojom_types.Type() |
| 2411 ..typeReference = (new mojom_types.TypeReference() |
| 2412 |
| 2413 ..identifier = '_types_Error__' |
| 2414 ..typeKey = '_types_Error__' |
| 2415 )), |
| 2416 |
| 2417 new mojom_types.StructField() |
| 2418 ..declData = (new mojom_types.DeclarationData()..shortName = 'Buffer') |
| 2419 ..type = (new mojom_types.Type() |
| 2420 ..handleType = (new mojom_types.HandleType() |
| 2421 ..kind = mojom_types.HandleTypeKind.sharedBuffer |
| 2422 ..nullable = true)), |
| 2423 ]; |
| 2424 } |
| 1944 | 2425 |
| 1945 | 2426 |
| 1946 class _FileIoctlParams extends bindings.Struct { | 2427 class _FileIoctlParams extends bindings.Struct { |
| 1947 static const List<bindings.StructDataHeader> kVersions = const [ | 2428 static const List<bindings.StructDataHeader> kVersions = const [ |
| 1948 const bindings.StructDataHeader(24, 0) | 2429 const bindings.StructDataHeader(24, 0) |
| 1949 ]; | 2430 ]; |
| 1950 int request = 0; | 2431 int request = 0; |
| 1951 List<int> inValues = null; | 2432 List<int> inValues = null; |
| 1952 | 2433 |
| 1953 _FileIoctlParams() : super(kVersions.last.size); | 2434 _FileIoctlParams() : super(kVersions.last.size); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2010 "inValues: $inValues" ")"; | 2491 "inValues: $inValues" ")"; |
| 2011 } | 2492 } |
| 2012 | 2493 |
| 2013 Map toJson() { | 2494 Map toJson() { |
| 2014 Map map = new Map(); | 2495 Map map = new Map(); |
| 2015 map["request"] = request; | 2496 map["request"] = request; |
| 2016 map["inValues"] = inValues; | 2497 map["inValues"] = inValues; |
| 2017 return map; | 2498 return map; |
| 2018 } | 2499 } |
| 2019 } | 2500 } |
| 2501 mojom_types.MojomStruct _file_File_Ioctl_Params__() { |
| 2502 return new mojom_types.MojomStruct() |
| 2503 ..declData = (new mojom_types.DeclarationData() |
| 2504 ..shortName = '_FileIoctlParams' |
| 2505 ..fullIdentifier = 'mojo.files._FileIoctlParams') |
| 2506 ..fields = <mojom_types.StructField>[ |
| 2507 new mojom_types.StructField() |
| 2508 ..declData = (new mojom_types.DeclarationData()..shortName = 'Request') |
| 2509 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt32), |
| 2510 |
| 2511 new mojom_types.StructField() |
| 2512 ..declData = (new mojom_types.DeclarationData()..shortName = 'InValues') |
| 2513 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 2514 ..nullable = true |
| 2515 |
| 2516 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.uint32))), |
| 2517 ]; |
| 2518 } |
| 2020 | 2519 |
| 2021 | 2520 |
| 2022 class FileIoctlResponseParams extends bindings.Struct { | 2521 class FileIoctlResponseParams extends bindings.Struct { |
| 2023 static const List<bindings.StructDataHeader> kVersions = const [ | 2522 static const List<bindings.StructDataHeader> kVersions = const [ |
| 2024 const bindings.StructDataHeader(24, 0) | 2523 const bindings.StructDataHeader(24, 0) |
| 2025 ]; | 2524 ]; |
| 2026 types_mojom.Error error = null; | 2525 types_mojom.Error error = null; |
| 2027 List<int> outValues = null; | 2526 List<int> outValues = null; |
| 2028 | 2527 |
| 2029 FileIoctlResponseParams() : super(kVersions.last.size); | 2528 FileIoctlResponseParams() : super(kVersions.last.size); |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2090 "outValues: $outValues" ")"; | 2589 "outValues: $outValues" ")"; |
| 2091 } | 2590 } |
| 2092 | 2591 |
| 2093 Map toJson() { | 2592 Map toJson() { |
| 2094 Map map = new Map(); | 2593 Map map = new Map(); |
| 2095 map["error"] = error; | 2594 map["error"] = error; |
| 2096 map["outValues"] = outValues; | 2595 map["outValues"] = outValues; |
| 2097 return map; | 2596 return map; |
| 2098 } | 2597 } |
| 2099 } | 2598 } |
| 2599 mojom_types.MojomStruct _file_File_Ioctl_ResponseParams__() { |
| 2600 return new mojom_types.MojomStruct() |
| 2601 ..declData = (new mojom_types.DeclarationData() |
| 2602 ..shortName = 'FileIoctlResponseParams' |
| 2603 ..fullIdentifier = 'mojo.files.FileIoctlResponseParams') |
| 2604 ..fields = <mojom_types.StructField>[ |
| 2605 new mojom_types.StructField() |
| 2606 ..declData = (new mojom_types.DeclarationData()..shortName = 'Error') |
| 2607 ..type = (new mojom_types.Type() |
| 2608 ..typeReference = (new mojom_types.TypeReference() |
| 2609 |
| 2610 ..identifier = '_types_Error__' |
| 2611 ..typeKey = '_types_Error__' |
| 2612 )), |
| 2613 |
| 2614 new mojom_types.StructField() |
| 2615 ..declData = (new mojom_types.DeclarationData()..shortName = 'OutValues'
) |
| 2616 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 2617 ..nullable = true |
| 2618 |
| 2619 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.uint32))), |
| 2620 ]; |
| 2621 } |
| 2622 |
| 2100 | 2623 |
| 2101 const int _File_closeName = 0; | 2624 const int _File_closeName = 0; |
| 2102 const int _File_readName = 1; | 2625 const int _File_readName = 1; |
| 2103 const int _File_writeName = 2; | 2626 const int _File_writeName = 2; |
| 2104 const int _File_readToStreamName = 3; | 2627 const int _File_readToStreamName = 3; |
| 2105 const int _File_writeFromStreamName = 4; | 2628 const int _File_writeFromStreamName = 4; |
| 2106 const int _File_tellName = 5; | 2629 const int _File_tellName = 5; |
| 2107 const int _File_seekName = 6; | 2630 const int _File_seekName = 6; |
| 2108 const int _File_statName = 7; | 2631 const int _File_statName = 7; |
| 2109 const int _File_truncateName = 8; | 2632 const int _File_truncateName = 8; |
| 2110 const int _File_touchName = 9; | 2633 const int _File_touchName = 9; |
| 2111 const int _File_dupName = 10; | 2634 const int _File_dupName = 10; |
| 2112 const int _File_reopenName = 11; | 2635 const int _File_reopenName = 11; |
| 2113 const int _File_asBufferName = 12; | 2636 const int _File_asBufferName = 12; |
| 2114 const int _File_ioctlName = 13; | 2637 const int _File_ioctlName = 13; |
| 2115 | 2638 |
| 2639 mojom_types.MojomInterface _file_File__() { |
| 2640 return new mojom_types.MojomInterface() |
| 2641 ..declData = (new mojom_types.DeclarationData() |
| 2642 ..shortName = 'File' |
| 2643 ..fullIdentifier = 'mojo.files.File') |
| 2644 ..interfaceName = 'File' |
| 2645 ..methods = <int, mojom_types.MojomMethod>{ |
| 2646 _File_closeName: new mojom_types.MojomMethod() |
| 2647 ..declData = (new mojom_types.DeclarationData()..shortName = 'Close') |
| 2648 ..ordinal = _File_closeName |
| 2649 ..responseParams = _file_File_Close_ResponseParams__()..parameters = _fi
le_File_Close_Params__(),_File_readName: new mojom_types.MojomMethod() |
| 2650 ..declData = (new mojom_types.DeclarationData()..shortName = 'Read') |
| 2651 ..ordinal = _File_readName |
| 2652 ..responseParams = _file_File_Read_ResponseParams__()..parameters = _fil
e_File_Read_Params__(),_File_writeName: new mojom_types.MojomMethod() |
| 2653 ..declData = (new mojom_types.DeclarationData()..shortName = 'Write') |
| 2654 ..ordinal = _File_writeName |
| 2655 ..responseParams = _file_File_Write_ResponseParams__()..parameters = _fi
le_File_Write_Params__(),_File_readToStreamName: new mojom_types.MojomMethod() |
| 2656 ..declData = (new mojom_types.DeclarationData()..shortName = 'ReadToStre
am') |
| 2657 ..ordinal = _File_readToStreamName |
| 2658 ..responseParams = _file_File_ReadToStream_ResponseParams__()..parameter
s = _file_File_ReadToStream_Params__(),_File_writeFromStreamName: new mojom_type
s.MojomMethod() |
| 2659 ..declData = (new mojom_types.DeclarationData()..shortName = 'WriteFromS
tream') |
| 2660 ..ordinal = _File_writeFromStreamName |
| 2661 ..responseParams = _file_File_WriteFromStream_ResponseParams__()..parame
ters = _file_File_WriteFromStream_Params__(),_File_tellName: new mojom_types.Moj
omMethod() |
| 2662 ..declData = (new mojom_types.DeclarationData()..shortName = 'Tell') |
| 2663 ..ordinal = _File_tellName |
| 2664 ..responseParams = _file_File_Tell_ResponseParams__()..parameters = _fil
e_File_Tell_Params__(),_File_seekName: new mojom_types.MojomMethod() |
| 2665 ..declData = (new mojom_types.DeclarationData()..shortName = 'Seek') |
| 2666 ..ordinal = _File_seekName |
| 2667 ..responseParams = _file_File_Seek_ResponseParams__()..parameters = _fil
e_File_Seek_Params__(),_File_statName: new mojom_types.MojomMethod() |
| 2668 ..declData = (new mojom_types.DeclarationData()..shortName = 'Stat') |
| 2669 ..ordinal = _File_statName |
| 2670 ..responseParams = _file_File_Stat_ResponseParams__()..parameters = _fil
e_File_Stat_Params__(),_File_truncateName: new mojom_types.MojomMethod() |
| 2671 ..declData = (new mojom_types.DeclarationData()..shortName = 'Truncate') |
| 2672 ..ordinal = _File_truncateName |
| 2673 ..responseParams = _file_File_Truncate_ResponseParams__()..parameters =
_file_File_Truncate_Params__(),_File_touchName: new mojom_types.MojomMethod() |
| 2674 ..declData = (new mojom_types.DeclarationData()..shortName = 'Touch') |
| 2675 ..ordinal = _File_touchName |
| 2676 ..responseParams = _file_File_Touch_ResponseParams__()..parameters = _fi
le_File_Touch_Params__(),_File_dupName: new mojom_types.MojomMethod() |
| 2677 ..declData = (new mojom_types.DeclarationData()..shortName = 'Dup') |
| 2678 ..ordinal = _File_dupName |
| 2679 ..responseParams = _file_File_Dup_ResponseParams__()..parameters = _file
_File_Dup_Params__(),_File_reopenName: new mojom_types.MojomMethod() |
| 2680 ..declData = (new mojom_types.DeclarationData()..shortName = 'Reopen') |
| 2681 ..ordinal = _File_reopenName |
| 2682 ..responseParams = _file_File_Reopen_ResponseParams__()..parameters = _f
ile_File_Reopen_Params__(),_File_asBufferName: new mojom_types.MojomMethod() |
| 2683 ..declData = (new mojom_types.DeclarationData()..shortName = 'AsBuffer') |
| 2684 ..ordinal = _File_asBufferName |
| 2685 ..responseParams = _file_File_AsBuffer_ResponseParams__()..parameters =
_file_File_AsBuffer_Params__(),_File_ioctlName: new mojom_types.MojomMethod() |
| 2686 ..declData = (new mojom_types.DeclarationData()..shortName = 'Ioctl') |
| 2687 ..ordinal = _File_ioctlName |
| 2688 ..responseParams = _file_File_Ioctl_ResponseParams__()..parameters = _fi
le_File_Ioctl_Params__(), |
| 2689 }; |
| 2690 } |
| 2691 |
| 2692 class _FileServiceDescription implements service_describer.ServiceDescription { |
| 2693 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 2694 return _file_File__(); |
| 2695 } |
| 2696 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 2697 return getAllMojomTypeDefinitions()[typeKey]; |
| 2698 } |
| 2699 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 2700 return getAllMojomTypeDefinitions(); |
| 2701 } |
| 2702 } |
| 2703 |
| 2116 abstract class File { | 2704 abstract class File { |
| 2117 static const String serviceName = null; | 2705 static const String serviceName = null; |
| 2118 dynamic close([Function responseFactory = null]); | 2706 dynamic close([Function responseFactory = null]); |
| 2119 dynamic read(int numBytesToRead,int offset,types_mojom.Whence whence,[Function
responseFactory = null]); | 2707 dynamic read(int numBytesToRead,int offset,types_mojom.Whence whence,[Function
responseFactory = null]); |
| 2120 dynamic write(List<int> bytesToWrite,int offset,types_mojom.Whence whence,[Fun
ction responseFactory = null]); | 2708 dynamic write(List<int> bytesToWrite,int offset,types_mojom.Whence whence,[Fun
ction responseFactory = null]); |
| 2121 dynamic readToStream(core.MojoDataPipeProducer source,int offset,types_mojom.W
hence whence,int numBytesToRead,[Function responseFactory = null]); | 2709 dynamic readToStream(core.MojoDataPipeProducer source,int offset,types_mojom.W
hence whence,int numBytesToRead,[Function responseFactory = null]); |
| 2122 dynamic writeFromStream(core.MojoDataPipeConsumer sink,int offset,types_mojom.
Whence whence,[Function responseFactory = null]); | 2710 dynamic writeFromStream(core.MojoDataPipeConsumer sink,int offset,types_mojom.
Whence whence,[Function responseFactory = null]); |
| 2123 dynamic tell([Function responseFactory = null]); | 2711 dynamic tell([Function responseFactory = null]); |
| 2124 dynamic seek(int offset,types_mojom.Whence whence,[Function responseFactory =
null]); | 2712 dynamic seek(int offset,types_mojom.Whence whence,[Function responseFactory =
null]); |
| 2125 dynamic stat([Function responseFactory = null]); | 2713 dynamic stat([Function responseFactory = null]); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 2140 super.fromHandle(handle); | 2728 super.fromHandle(handle); |
| 2141 | 2729 |
| 2142 _FileProxyImpl.unbound() : super.unbound(); | 2730 _FileProxyImpl.unbound() : super.unbound(); |
| 2143 | 2731 |
| 2144 static _FileProxyImpl newFromEndpoint( | 2732 static _FileProxyImpl newFromEndpoint( |
| 2145 core.MojoMessagePipeEndpoint endpoint) { | 2733 core.MojoMessagePipeEndpoint endpoint) { |
| 2146 assert(endpoint.setDescription("For _FileProxyImpl")); | 2734 assert(endpoint.setDescription("For _FileProxyImpl")); |
| 2147 return new _FileProxyImpl.fromEndpoint(endpoint); | 2735 return new _FileProxyImpl.fromEndpoint(endpoint); |
| 2148 } | 2736 } |
| 2149 | 2737 |
| 2738 service_describer.ServiceDescription get serviceDescription => |
| 2739 new _FileServiceDescription(); |
| 2740 |
| 2150 void handleResponse(bindings.ServiceMessage message) { | 2741 void handleResponse(bindings.ServiceMessage message) { |
| 2151 switch (message.header.type) { | 2742 switch (message.header.type) { |
| 2152 case _File_closeName: | 2743 case _File_closeName: |
| 2153 var r = FileCloseResponseParams.deserialize( | 2744 var r = FileCloseResponseParams.deserialize( |
| 2154 message.payload); | 2745 message.payload); |
| 2155 if (!message.header.hasRequestId) { | 2746 if (!message.header.hasRequestId) { |
| 2156 proxyError("Expected a message with a valid request Id."); | 2747 proxyError("Expected a message with a valid request Id."); |
| 2157 return; | 2748 return; |
| 2158 } | 2749 } |
| 2159 Completer c = completerMap[message.header.requestId]; | 2750 Completer c = completerMap[message.header.requestId]; |
| (...skipping 909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3069 assert(_impl == null); | 3660 assert(_impl == null); |
| 3070 _impl = d; | 3661 _impl = d; |
| 3071 } | 3662 } |
| 3072 | 3663 |
| 3073 String toString() { | 3664 String toString() { |
| 3074 var superString = super.toString(); | 3665 var superString = super.toString(); |
| 3075 return "FileStub($superString)"; | 3666 return "FileStub($superString)"; |
| 3076 } | 3667 } |
| 3077 | 3668 |
| 3078 int get version => 0; | 3669 int get version => 0; |
| 3670 |
| 3671 |
| 3672 service_describer.ServiceDescription get serviceDescription => |
| 3673 new _FileServiceDescription(); |
| 3079 } | 3674 } |
| 3080 | 3675 |
| 3081 | 3676 |
| 3677 |
| 3678 |
| 3679 |
| 3680 |
| 3681 |
| 3682 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 3683 var map = new HashMap<String, mojom_types.UserDefinedType>(); |
| 3684 map["_file_File_Close_Params__"] = |
| 3685 new mojom_types.UserDefinedType() |
| 3686 ..structType = _file_File_Close_Params__(); |
| 3687 map["_file_File_Close_ResponseParams__"] = |
| 3688 new mojom_types.UserDefinedType() |
| 3689 ..structType = _file_File_Close_ResponseParams__(); |
| 3690 map["_file_File_Read_Params__"] = |
| 3691 new mojom_types.UserDefinedType() |
| 3692 ..structType = _file_File_Read_Params__(); |
| 3693 map["_file_File_Read_ResponseParams__"] = |
| 3694 new mojom_types.UserDefinedType() |
| 3695 ..structType = _file_File_Read_ResponseParams__(); |
| 3696 map["_file_File_Write_Params__"] = |
| 3697 new mojom_types.UserDefinedType() |
| 3698 ..structType = _file_File_Write_Params__(); |
| 3699 map["_file_File_Write_ResponseParams__"] = |
| 3700 new mojom_types.UserDefinedType() |
| 3701 ..structType = _file_File_Write_ResponseParams__(); |
| 3702 map["_file_File_ReadToStream_Params__"] = |
| 3703 new mojom_types.UserDefinedType() |
| 3704 ..structType = _file_File_ReadToStream_Params__(); |
| 3705 map["_file_File_ReadToStream_ResponseParams__"] = |
| 3706 new mojom_types.UserDefinedType() |
| 3707 ..structType = _file_File_ReadToStream_ResponseParams__(); |
| 3708 map["_file_File_WriteFromStream_Params__"] = |
| 3709 new mojom_types.UserDefinedType() |
| 3710 ..structType = _file_File_WriteFromStream_Params__(); |
| 3711 map["_file_File_WriteFromStream_ResponseParams__"] = |
| 3712 new mojom_types.UserDefinedType() |
| 3713 ..structType = _file_File_WriteFromStream_ResponseParams__(); |
| 3714 map["_file_File_Tell_Params__"] = |
| 3715 new mojom_types.UserDefinedType() |
| 3716 ..structType = _file_File_Tell_Params__(); |
| 3717 map["_file_File_Tell_ResponseParams__"] = |
| 3718 new mojom_types.UserDefinedType() |
| 3719 ..structType = _file_File_Tell_ResponseParams__(); |
| 3720 map["_file_File_Seek_Params__"] = |
| 3721 new mojom_types.UserDefinedType() |
| 3722 ..structType = _file_File_Seek_Params__(); |
| 3723 map["_file_File_Seek_ResponseParams__"] = |
| 3724 new mojom_types.UserDefinedType() |
| 3725 ..structType = _file_File_Seek_ResponseParams__(); |
| 3726 map["_file_File_Stat_Params__"] = |
| 3727 new mojom_types.UserDefinedType() |
| 3728 ..structType = _file_File_Stat_Params__(); |
| 3729 map["_file_File_Stat_ResponseParams__"] = |
| 3730 new mojom_types.UserDefinedType() |
| 3731 ..structType = _file_File_Stat_ResponseParams__(); |
| 3732 map["_file_File_Truncate_Params__"] = |
| 3733 new mojom_types.UserDefinedType() |
| 3734 ..structType = _file_File_Truncate_Params__(); |
| 3735 map["_file_File_Truncate_ResponseParams__"] = |
| 3736 new mojom_types.UserDefinedType() |
| 3737 ..structType = _file_File_Truncate_ResponseParams__(); |
| 3738 map["_file_File_Touch_Params__"] = |
| 3739 new mojom_types.UserDefinedType() |
| 3740 ..structType = _file_File_Touch_Params__(); |
| 3741 map["_file_File_Touch_ResponseParams__"] = |
| 3742 new mojom_types.UserDefinedType() |
| 3743 ..structType = _file_File_Touch_ResponseParams__(); |
| 3744 map["_file_File_Dup_Params__"] = |
| 3745 new mojom_types.UserDefinedType() |
| 3746 ..structType = _file_File_Dup_Params__(); |
| 3747 map["_file_File_Dup_ResponseParams__"] = |
| 3748 new mojom_types.UserDefinedType() |
| 3749 ..structType = _file_File_Dup_ResponseParams__(); |
| 3750 map["_file_File_Reopen_Params__"] = |
| 3751 new mojom_types.UserDefinedType() |
| 3752 ..structType = _file_File_Reopen_Params__(); |
| 3753 map["_file_File_Reopen_ResponseParams__"] = |
| 3754 new mojom_types.UserDefinedType() |
| 3755 ..structType = _file_File_Reopen_ResponseParams__(); |
| 3756 map["_file_File_AsBuffer_Params__"] = |
| 3757 new mojom_types.UserDefinedType() |
| 3758 ..structType = _file_File_AsBuffer_Params__(); |
| 3759 map["_file_File_AsBuffer_ResponseParams__"] = |
| 3760 new mojom_types.UserDefinedType() |
| 3761 ..structType = _file_File_AsBuffer_ResponseParams__(); |
| 3762 map["_file_File_Ioctl_Params__"] = |
| 3763 new mojom_types.UserDefinedType() |
| 3764 ..structType = _file_File_Ioctl_Params__(); |
| 3765 map["_file_File_Ioctl_ResponseParams__"] = |
| 3766 new mojom_types.UserDefinedType() |
| 3767 ..structType = _file_File_Ioctl_ResponseParams__(); |
| 3768 map["_file_File__"] = |
| 3769 new mojom_types.UserDefinedType() |
| 3770 ..interfaceType = _file_File__(); |
| 3771 types_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefi
nedType udt) { |
| 3772 map[s] = udt; |
| 3773 }); |
| 3774 |
| 3775 return map; |
| 3776 } |
| 3777 |
| 3778 var _MojomDesc; |
| 3779 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 3780 if (_MojomDesc == null) { |
| 3781 _MojomDesc = _initDescriptions(); |
| 3782 } |
| 3783 return _MojomDesc; |
| 3784 } |
| 3785 |
| OLD | NEW |