| 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 media_pipe_mojom; | 5 library media_pipe_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/media/media_common.mojom.dart' as media_commo
n_mojom; | 14 import 'package:mojo_services/mojo/media/media_common.mojom.dart' as media_commo
n_mojom; |
| 12 | 15 |
| 13 | 16 |
| 14 | 17 |
| 15 class MediaPacketRegion extends bindings.Struct { | 18 class MediaPacketRegion extends bindings.Struct { |
| 16 static const List<bindings.StructDataHeader> kVersions = const [ | 19 static const List<bindings.StructDataHeader> kVersions = const [ |
| 17 const bindings.StructDataHeader(24, 0) | 20 const bindings.StructDataHeader(24, 0) |
| 18 ]; | 21 ]; |
| 19 int offset = 0; | 22 int offset = 0; |
| 20 int length = 0; | 23 int length = 0; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 "length: $length" ")"; | 82 "length: $length" ")"; |
| 80 } | 83 } |
| 81 | 84 |
| 82 Map toJson() { | 85 Map toJson() { |
| 83 Map map = new Map(); | 86 Map map = new Map(); |
| 84 map["offset"] = offset; | 87 map["offset"] = offset; |
| 85 map["length"] = length; | 88 map["length"] = length; |
| 86 return map; | 89 return map; |
| 87 } | 90 } |
| 88 } | 91 } |
| 92 mojom_types.MojomStruct _media_pipe_MediaPacketRegion__() { |
| 93 return new mojom_types.MojomStruct() |
| 94 ..declData = (new mojom_types.DeclarationData() |
| 95 ..shortName = 'MediaPacketRegion' |
| 96 ..fullIdentifier = 'mojo.media.MediaPacketRegion') |
| 97 ..fields = <mojom_types.StructField>[ |
| 98 new mojom_types.StructField() |
| 99 ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset') |
| 100 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt64), |
| 101 |
| 102 new mojom_types.StructField() |
| 103 ..declData = (new mojom_types.DeclarationData()..shortName = 'Length') |
| 104 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt64), |
| 105 ]; |
| 106 } |
| 89 | 107 |
| 90 | 108 |
| 91 class MediaPacket extends bindings.Struct { | 109 class MediaPacket extends bindings.Struct { |
| 92 static const List<bindings.StructDataHeader> kVersions = const [ | 110 static const List<bindings.StructDataHeader> kVersions = const [ |
| 93 const bindings.StructDataHeader(48, 0) | 111 const bindings.StructDataHeader(48, 0) |
| 94 ]; | 112 ]; |
| 95 static const int kNoTimestamp = 9223372036854775807; | 113 static const int kNoTimestamp = 9223372036854775807; |
| 96 int pts = 9223372036854775807; | 114 int pts = 9223372036854775807; |
| 97 int duration = 0; | 115 int duration = 0; |
| 98 bool endOfStream = false; | 116 bool endOfStream = false; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 Map toJson() { | 221 Map toJson() { |
| 204 Map map = new Map(); | 222 Map map = new Map(); |
| 205 map["pts"] = pts; | 223 map["pts"] = pts; |
| 206 map["duration"] = duration; | 224 map["duration"] = duration; |
| 207 map["endOfStream"] = endOfStream; | 225 map["endOfStream"] = endOfStream; |
| 208 map["payload"] = payload; | 226 map["payload"] = payload; |
| 209 map["extraPayload"] = extraPayload; | 227 map["extraPayload"] = extraPayload; |
| 210 return map; | 228 return map; |
| 211 } | 229 } |
| 212 } | 230 } |
| 231 mojom_types.MojomStruct _media_pipe_MediaPacket__() { |
| 232 return new mojom_types.MojomStruct() |
| 233 ..declData = (new mojom_types.DeclarationData() |
| 234 ..shortName = 'MediaPacket' |
| 235 ..fullIdentifier = 'mojo.media.MediaPacket') |
| 236 ..fields = <mojom_types.StructField>[ |
| 237 new mojom_types.StructField() |
| 238 ..declData = (new mojom_types.DeclarationData()..shortName = 'Pts') |
| 239 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.in
t64), |
| 240 |
| 241 new mojom_types.StructField() |
| 242 ..declData = (new mojom_types.DeclarationData()..shortName = 'Duration') |
| 243 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt64), |
| 244 |
| 245 new mojom_types.StructField() |
| 246 ..declData = (new mojom_types.DeclarationData()..shortName = 'EndOfStrea
m') |
| 247 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bo
ol), |
| 248 |
| 249 new mojom_types.StructField() |
| 250 ..declData = (new mojom_types.DeclarationData()..shortName = 'Payload') |
| 251 ..type = (new mojom_types.Type() |
| 252 ..typeReference = (new mojom_types.TypeReference() |
| 253 |
| 254 ..identifier = '_media_pipe_MediaPacketRegion__' |
| 255 ..typeKey = '_media_pipe_MediaPacketRegion__' |
| 256 )), |
| 257 |
| 258 new mojom_types.StructField() |
| 259 ..declData = (new mojom_types.DeclarationData()..shortName = 'ExtraPaylo
ad') |
| 260 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 261 ..nullable = true |
| 262 |
| 263 ..elementType = (new mojom_types.Type() |
| 264 ..typeReference = (new mojom_types.TypeReference() |
| 265 |
| 266 ..identifier = '_media_pipe_MediaPacketRegion__' |
| 267 ..typeKey = '_media_pipe_MediaPacketRegion__' |
| 268 )))), |
| 269 ]; |
| 270 } |
| 213 | 271 |
| 214 | 272 |
| 215 class MediaPipeState extends bindings.Struct { | 273 class MediaPipeState extends bindings.Struct { |
| 216 static const List<bindings.StructDataHeader> kVersions = const [ | 274 static const List<bindings.StructDataHeader> kVersions = const [ |
| 217 const bindings.StructDataHeader(24, 0) | 275 const bindings.StructDataHeader(24, 0) |
| 218 ]; | 276 ]; |
| 219 static const int kMaxPayloadLen = 4611686018427387903; | 277 static const int kMaxPayloadLen = 4611686018427387903; |
| 220 core.MojoSharedBuffer payloadBuffer = null; | 278 core.MojoSharedBuffer payloadBuffer = null; |
| 221 int payloadBufferLen = 0; | 279 int payloadBufferLen = 0; |
| 222 | 280 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 return "MediaPipeState(" | 336 return "MediaPipeState(" |
| 279 "payloadBuffer: $payloadBuffer" ", " | 337 "payloadBuffer: $payloadBuffer" ", " |
| 280 "payloadBufferLen: $payloadBufferLen" ")"; | 338 "payloadBufferLen: $payloadBufferLen" ")"; |
| 281 } | 339 } |
| 282 | 340 |
| 283 Map toJson() { | 341 Map toJson() { |
| 284 throw new bindings.MojoCodecError( | 342 throw new bindings.MojoCodecError( |
| 285 'Object containing handles cannot be encoded to JSON.'); | 343 'Object containing handles cannot be encoded to JSON.'); |
| 286 } | 344 } |
| 287 } | 345 } |
| 346 mojom_types.MojomStruct _media_pipe_MediaPipeState__() { |
| 347 return new mojom_types.MojomStruct() |
| 348 ..declData = (new mojom_types.DeclarationData() |
| 349 ..shortName = 'MediaPipeState' |
| 350 ..fullIdentifier = 'mojo.media.MediaPipeState') |
| 351 ..fields = <mojom_types.StructField>[ |
| 352 new mojom_types.StructField() |
| 353 ..declData = (new mojom_types.DeclarationData()..shortName = 'PayloadBuf
fer') |
| 354 ..type = (new mojom_types.Type() |
| 355 ..handleType = (new mojom_types.HandleType() |
| 356 ..kind = mojom_types.HandleTypeKind.sharedBuffer |
| 357 ..nullable = false)), |
| 358 |
| 359 new mojom_types.StructField() |
| 360 ..declData = (new mojom_types.DeclarationData()..shortName = 'PayloadBuf
ferLen') |
| 361 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.ui
nt64), |
| 362 ]; |
| 363 } |
| 288 | 364 |
| 289 | 365 |
| 290 class _MediaPipeGetStateParams extends bindings.Struct { | 366 class _MediaPipeGetStateParams extends bindings.Struct { |
| 291 static const List<bindings.StructDataHeader> kVersions = const [ | 367 static const List<bindings.StructDataHeader> kVersions = const [ |
| 292 const bindings.StructDataHeader(8, 0) | 368 const bindings.StructDataHeader(8, 0) |
| 293 ]; | 369 ]; |
| 294 | 370 |
| 295 _MediaPipeGetStateParams() : super(kVersions.last.size); | 371 _MediaPipeGetStateParams() : super(kVersions.last.size); |
| 296 | 372 |
| 297 static _MediaPipeGetStateParams deserialize(bindings.Message message) { | 373 static _MediaPipeGetStateParams deserialize(bindings.Message message) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 | 412 |
| 337 String toString() { | 413 String toString() { |
| 338 return "_MediaPipeGetStateParams("")"; | 414 return "_MediaPipeGetStateParams("")"; |
| 339 } | 415 } |
| 340 | 416 |
| 341 Map toJson() { | 417 Map toJson() { |
| 342 Map map = new Map(); | 418 Map map = new Map(); |
| 343 return map; | 419 return map; |
| 344 } | 420 } |
| 345 } | 421 } |
| 422 mojom_types.MojomStruct _media_pipe_MediaPipe_GetState_Params__() { |
| 423 return new mojom_types.MojomStruct() |
| 424 ..declData = (new mojom_types.DeclarationData() |
| 425 ..shortName = '_MediaPipeGetStateParams' |
| 426 ..fullIdentifier = 'mojo.media._MediaPipeGetStateParams') |
| 427 ..fields = <mojom_types.StructField>[]; |
| 428 } |
| 346 | 429 |
| 347 | 430 |
| 348 class MediaPipeGetStateResponseParams extends bindings.Struct { | 431 class MediaPipeGetStateResponseParams extends bindings.Struct { |
| 349 static const List<bindings.StructDataHeader> kVersions = const [ | 432 static const List<bindings.StructDataHeader> kVersions = const [ |
| 350 const bindings.StructDataHeader(16, 0) | 433 const bindings.StructDataHeader(16, 0) |
| 351 ]; | 434 ]; |
| 352 MediaPipeState state = null; | 435 MediaPipeState state = null; |
| 353 | 436 |
| 354 MediaPipeGetStateResponseParams() : super(kVersions.last.size); | 437 MediaPipeGetStateResponseParams() : super(kVersions.last.size); |
| 355 | 438 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 String toString() { | 486 String toString() { |
| 404 return "MediaPipeGetStateResponseParams(" | 487 return "MediaPipeGetStateResponseParams(" |
| 405 "state: $state" ")"; | 488 "state: $state" ")"; |
| 406 } | 489 } |
| 407 | 490 |
| 408 Map toJson() { | 491 Map toJson() { |
| 409 throw new bindings.MojoCodecError( | 492 throw new bindings.MojoCodecError( |
| 410 'Object containing handles cannot be encoded to JSON.'); | 493 'Object containing handles cannot be encoded to JSON.'); |
| 411 } | 494 } |
| 412 } | 495 } |
| 496 mojom_types.MojomStruct _media_pipe_MediaPipe_GetState_ResponseParams__() { |
| 497 return new mojom_types.MojomStruct() |
| 498 ..declData = (new mojom_types.DeclarationData() |
| 499 ..shortName = 'MediaPipeGetStateResponseParams' |
| 500 ..fullIdentifier = 'mojo.media.MediaPipeGetStateResponseParams') |
| 501 ..fields = <mojom_types.StructField>[ |
| 502 new mojom_types.StructField() |
| 503 ..declData = (new mojom_types.DeclarationData()..shortName = 'State') |
| 504 ..type = (new mojom_types.Type() |
| 505 ..typeReference = (new mojom_types.TypeReference() |
| 506 |
| 507 ..identifier = '_media_pipe_MediaPipeState__' |
| 508 ..typeKey = '_media_pipe_MediaPipeState__' |
| 509 )), |
| 510 ]; |
| 511 } |
| 413 | 512 |
| 414 | 513 |
| 415 class _MediaPipeSendPacketParams extends bindings.Struct { | 514 class _MediaPipeSendPacketParams extends bindings.Struct { |
| 416 static const List<bindings.StructDataHeader> kVersions = const [ | 515 static const List<bindings.StructDataHeader> kVersions = const [ |
| 417 const bindings.StructDataHeader(16, 0) | 516 const bindings.StructDataHeader(16, 0) |
| 418 ]; | 517 ]; |
| 419 MediaPacket packet = null; | 518 MediaPacket packet = null; |
| 420 | 519 |
| 421 _MediaPipeSendPacketParams() : super(kVersions.last.size); | 520 _MediaPipeSendPacketParams() : super(kVersions.last.size); |
| 422 | 521 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 471 return "_MediaPipeSendPacketParams(" | 570 return "_MediaPipeSendPacketParams(" |
| 472 "packet: $packet" ")"; | 571 "packet: $packet" ")"; |
| 473 } | 572 } |
| 474 | 573 |
| 475 Map toJson() { | 574 Map toJson() { |
| 476 Map map = new Map(); | 575 Map map = new Map(); |
| 477 map["packet"] = packet; | 576 map["packet"] = packet; |
| 478 return map; | 577 return map; |
| 479 } | 578 } |
| 480 } | 579 } |
| 580 mojom_types.MojomStruct _media_pipe_MediaPipe_SendPacket_Params__() { |
| 581 return new mojom_types.MojomStruct() |
| 582 ..declData = (new mojom_types.DeclarationData() |
| 583 ..shortName = '_MediaPipeSendPacketParams' |
| 584 ..fullIdentifier = 'mojo.media._MediaPipeSendPacketParams') |
| 585 ..fields = <mojom_types.StructField>[ |
| 586 new mojom_types.StructField() |
| 587 ..declData = (new mojom_types.DeclarationData()..shortName = 'Packet') |
| 588 ..type = (new mojom_types.Type() |
| 589 ..typeReference = (new mojom_types.TypeReference() |
| 590 |
| 591 ..identifier = '_media_pipe_MediaPacket__' |
| 592 ..typeKey = '_media_pipe_MediaPacket__' |
| 593 )), |
| 594 ]; |
| 595 } |
| 481 | 596 |
| 482 | 597 |
| 483 class MediaPipeSendPacketResponseParams extends bindings.Struct { | 598 class MediaPipeSendPacketResponseParams extends bindings.Struct { |
| 484 static const List<bindings.StructDataHeader> kVersions = const [ | 599 static const List<bindings.StructDataHeader> kVersions = const [ |
| 485 const bindings.StructDataHeader(16, 0) | 600 const bindings.StructDataHeader(16, 0) |
| 486 ]; | 601 ]; |
| 487 media_common_mojom.MediaResult result = null; | 602 media_common_mojom.MediaResult result = null; |
| 488 | 603 |
| 489 MediaPipeSendPacketResponseParams() : super(kVersions.last.size); | 604 MediaPipeSendPacketResponseParams() : super(kVersions.last.size); |
| 490 | 605 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 542 return "MediaPipeSendPacketResponseParams(" | 657 return "MediaPipeSendPacketResponseParams(" |
| 543 "result: $result" ")"; | 658 "result: $result" ")"; |
| 544 } | 659 } |
| 545 | 660 |
| 546 Map toJson() { | 661 Map toJson() { |
| 547 Map map = new Map(); | 662 Map map = new Map(); |
| 548 map["result"] = result; | 663 map["result"] = result; |
| 549 return map; | 664 return map; |
| 550 } | 665 } |
| 551 } | 666 } |
| 667 mojom_types.MojomStruct _media_pipe_MediaPipe_SendPacket_ResponseParams__() { |
| 668 return new mojom_types.MojomStruct() |
| 669 ..declData = (new mojom_types.DeclarationData() |
| 670 ..shortName = 'MediaPipeSendPacketResponseParams' |
| 671 ..fullIdentifier = 'mojo.media.MediaPipeSendPacketResponseParams') |
| 672 ..fields = <mojom_types.StructField>[ |
| 673 new mojom_types.StructField() |
| 674 ..declData = (new mojom_types.DeclarationData()..shortName = 'Result') |
| 675 ..type = (new mojom_types.Type() |
| 676 ..typeReference = (new mojom_types.TypeReference() |
| 677 |
| 678 ..identifier = '_media_common_MediaResult__' |
| 679 ..typeKey = '_media_common_MediaResult__' |
| 680 )), |
| 681 ]; |
| 682 } |
| 552 | 683 |
| 553 | 684 |
| 554 class _MediaPipeFlushParams extends bindings.Struct { | 685 class _MediaPipeFlushParams extends bindings.Struct { |
| 555 static const List<bindings.StructDataHeader> kVersions = const [ | 686 static const List<bindings.StructDataHeader> kVersions = const [ |
| 556 const bindings.StructDataHeader(8, 0) | 687 const bindings.StructDataHeader(8, 0) |
| 557 ]; | 688 ]; |
| 558 | 689 |
| 559 _MediaPipeFlushParams() : super(kVersions.last.size); | 690 _MediaPipeFlushParams() : super(kVersions.last.size); |
| 560 | 691 |
| 561 static _MediaPipeFlushParams deserialize(bindings.Message message) { | 692 static _MediaPipeFlushParams deserialize(bindings.Message message) { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 600 | 731 |
| 601 String toString() { | 732 String toString() { |
| 602 return "_MediaPipeFlushParams("")"; | 733 return "_MediaPipeFlushParams("")"; |
| 603 } | 734 } |
| 604 | 735 |
| 605 Map toJson() { | 736 Map toJson() { |
| 606 Map map = new Map(); | 737 Map map = new Map(); |
| 607 return map; | 738 return map; |
| 608 } | 739 } |
| 609 } | 740 } |
| 741 mojom_types.MojomStruct _media_pipe_MediaPipe_Flush_Params__() { |
| 742 return new mojom_types.MojomStruct() |
| 743 ..declData = (new mojom_types.DeclarationData() |
| 744 ..shortName = '_MediaPipeFlushParams' |
| 745 ..fullIdentifier = 'mojo.media._MediaPipeFlushParams') |
| 746 ..fields = <mojom_types.StructField>[]; |
| 747 } |
| 610 | 748 |
| 611 | 749 |
| 612 class MediaPipeFlushResponseParams extends bindings.Struct { | 750 class MediaPipeFlushResponseParams extends bindings.Struct { |
| 613 static const List<bindings.StructDataHeader> kVersions = const [ | 751 static const List<bindings.StructDataHeader> kVersions = const [ |
| 614 const bindings.StructDataHeader(16, 0) | 752 const bindings.StructDataHeader(16, 0) |
| 615 ]; | 753 ]; |
| 616 media_common_mojom.MediaResult result = null; | 754 media_common_mojom.MediaResult result = null; |
| 617 | 755 |
| 618 MediaPipeFlushResponseParams() : super(kVersions.last.size); | 756 MediaPipeFlushResponseParams() : super(kVersions.last.size); |
| 619 | 757 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 return "MediaPipeFlushResponseParams(" | 809 return "MediaPipeFlushResponseParams(" |
| 672 "result: $result" ")"; | 810 "result: $result" ")"; |
| 673 } | 811 } |
| 674 | 812 |
| 675 Map toJson() { | 813 Map toJson() { |
| 676 Map map = new Map(); | 814 Map map = new Map(); |
| 677 map["result"] = result; | 815 map["result"] = result; |
| 678 return map; | 816 return map; |
| 679 } | 817 } |
| 680 } | 818 } |
| 819 mojom_types.MojomStruct _media_pipe_MediaPipe_Flush_ResponseParams__() { |
| 820 return new mojom_types.MojomStruct() |
| 821 ..declData = (new mojom_types.DeclarationData() |
| 822 ..shortName = 'MediaPipeFlushResponseParams' |
| 823 ..fullIdentifier = 'mojo.media.MediaPipeFlushResponseParams') |
| 824 ..fields = <mojom_types.StructField>[ |
| 825 new mojom_types.StructField() |
| 826 ..declData = (new mojom_types.DeclarationData()..shortName = 'Result') |
| 827 ..type = (new mojom_types.Type() |
| 828 ..typeReference = (new mojom_types.TypeReference() |
| 829 |
| 830 ..identifier = '_media_common_MediaResult__' |
| 831 ..typeKey = '_media_common_MediaResult__' |
| 832 )), |
| 833 ]; |
| 834 } |
| 835 |
| 681 | 836 |
| 682 const int _MediaPipe_getStateName = 0; | 837 const int _MediaPipe_getStateName = 0; |
| 683 const int _MediaPipe_sendPacketName = 1; | 838 const int _MediaPipe_sendPacketName = 1; |
| 684 const int _MediaPipe_flushName = 2; | 839 const int _MediaPipe_flushName = 2; |
| 685 | 840 |
| 841 mojom_types.MojomInterface _media_pipe_MediaPipe__() { |
| 842 return new mojom_types.MojomInterface() |
| 843 ..declData = (new mojom_types.DeclarationData() |
| 844 ..shortName = 'MediaPipe' |
| 845 ..fullIdentifier = 'mojo.media.MediaPipe') |
| 846 ..interfaceName = 'MediaPipe' |
| 847 ..methods = <int, mojom_types.MojomMethod>{ |
| 848 _MediaPipe_getStateName: new mojom_types.MojomMethod() |
| 849 ..declData = (new mojom_types.DeclarationData()..shortName = 'GetState') |
| 850 ..ordinal = _MediaPipe_getStateName |
| 851 ..responseParams = _media_pipe_MediaPipe_GetState_ResponseParams__()..pa
rameters = _media_pipe_MediaPipe_GetState_Params__(),_MediaPipe_sendPacketName:
new mojom_types.MojomMethod() |
| 852 ..declData = (new mojom_types.DeclarationData()..shortName = 'SendPacket
') |
| 853 ..ordinal = _MediaPipe_sendPacketName |
| 854 ..responseParams = _media_pipe_MediaPipe_SendPacket_ResponseParams__()..
parameters = _media_pipe_MediaPipe_SendPacket_Params__(),_MediaPipe_flushName: n
ew mojom_types.MojomMethod() |
| 855 ..declData = (new mojom_types.DeclarationData()..shortName = 'Flush') |
| 856 ..ordinal = _MediaPipe_flushName |
| 857 ..responseParams = _media_pipe_MediaPipe_Flush_ResponseParams__()..param
eters = _media_pipe_MediaPipe_Flush_Params__(), |
| 858 }; |
| 859 } |
| 860 |
| 861 class _MediaPipeServiceDescription implements service_describer.ServiceDescripti
on { |
| 862 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 863 return _media_pipe_MediaPipe__(); |
| 864 } |
| 865 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 866 return getAllMojomTypeDefinitions()[typeKey]; |
| 867 } |
| 868 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 869 return getAllMojomTypeDefinitions(); |
| 870 } |
| 871 } |
| 872 |
| 686 abstract class MediaPipe { | 873 abstract class MediaPipe { |
| 687 static const String serviceName = null; | 874 static const String serviceName = null; |
| 688 dynamic getState([Function responseFactory = null]); | 875 dynamic getState([Function responseFactory = null]); |
| 689 dynamic sendPacket(MediaPacket packet,[Function responseFactory = null]); | 876 dynamic sendPacket(MediaPacket packet,[Function responseFactory = null]); |
| 690 dynamic flush([Function responseFactory = null]); | 877 dynamic flush([Function responseFactory = null]); |
| 691 } | 878 } |
| 692 | 879 |
| 693 | 880 |
| 694 class _MediaPipeProxyImpl extends bindings.Proxy { | 881 class _MediaPipeProxyImpl extends bindings.Proxy { |
| 695 _MediaPipeProxyImpl.fromEndpoint( | 882 _MediaPipeProxyImpl.fromEndpoint( |
| 696 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 883 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 697 | 884 |
| 698 _MediaPipeProxyImpl.fromHandle(core.MojoHandle handle) : | 885 _MediaPipeProxyImpl.fromHandle(core.MojoHandle handle) : |
| 699 super.fromHandle(handle); | 886 super.fromHandle(handle); |
| 700 | 887 |
| 701 _MediaPipeProxyImpl.unbound() : super.unbound(); | 888 _MediaPipeProxyImpl.unbound() : super.unbound(); |
| 702 | 889 |
| 703 static _MediaPipeProxyImpl newFromEndpoint( | 890 static _MediaPipeProxyImpl newFromEndpoint( |
| 704 core.MojoMessagePipeEndpoint endpoint) { | 891 core.MojoMessagePipeEndpoint endpoint) { |
| 705 assert(endpoint.setDescription("For _MediaPipeProxyImpl")); | 892 assert(endpoint.setDescription("For _MediaPipeProxyImpl")); |
| 706 return new _MediaPipeProxyImpl.fromEndpoint(endpoint); | 893 return new _MediaPipeProxyImpl.fromEndpoint(endpoint); |
| 707 } | 894 } |
| 708 | 895 |
| 896 service_describer.ServiceDescription get serviceDescription => |
| 897 new _MediaPipeServiceDescription(); |
| 898 |
| 709 void handleResponse(bindings.ServiceMessage message) { | 899 void handleResponse(bindings.ServiceMessage message) { |
| 710 switch (message.header.type) { | 900 switch (message.header.type) { |
| 711 case _MediaPipe_getStateName: | 901 case _MediaPipe_getStateName: |
| 712 var r = MediaPipeGetStateResponseParams.deserialize( | 902 var r = MediaPipeGetStateResponseParams.deserialize( |
| 713 message.payload); | 903 message.payload); |
| 714 if (!message.header.hasRequestId) { | 904 if (!message.header.hasRequestId) { |
| 715 proxyError("Expected a message with a valid request Id."); | 905 proxyError("Expected a message with a valid request Id."); |
| 716 return; | 906 return; |
| 717 } | 907 } |
| 718 Completer c = completerMap[message.header.requestId]; | 908 Completer c = completerMap[message.header.requestId]; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 994 assert(_impl == null); | 1184 assert(_impl == null); |
| 995 _impl = d; | 1185 _impl = d; |
| 996 } | 1186 } |
| 997 | 1187 |
| 998 String toString() { | 1188 String toString() { |
| 999 var superString = super.toString(); | 1189 var superString = super.toString(); |
| 1000 return "MediaPipeStub($superString)"; | 1190 return "MediaPipeStub($superString)"; |
| 1001 } | 1191 } |
| 1002 | 1192 |
| 1003 int get version => 0; | 1193 int get version => 0; |
| 1194 |
| 1195 |
| 1196 service_describer.ServiceDescription get serviceDescription => |
| 1197 new _MediaPipeServiceDescription(); |
| 1004 } | 1198 } |
| 1005 | 1199 |
| 1006 | 1200 |
| 1201 |
| 1202 |
| 1203 |
| 1204 |
| 1205 |
| 1206 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 1207 var map = new HashMap<String, mojom_types.UserDefinedType>(); |
| 1208 map["_media_pipe_MediaPacketRegion__"] = |
| 1209 new mojom_types.UserDefinedType() |
| 1210 ..structType = _media_pipe_MediaPacketRegion__(); |
| 1211 map["_media_pipe_MediaPacket__"] = |
| 1212 new mojom_types.UserDefinedType() |
| 1213 ..structType = _media_pipe_MediaPacket__(); |
| 1214 map["_media_pipe_MediaPipeState__"] = |
| 1215 new mojom_types.UserDefinedType() |
| 1216 ..structType = _media_pipe_MediaPipeState__(); |
| 1217 map["_media_pipe_MediaPipe_GetState_Params__"] = |
| 1218 new mojom_types.UserDefinedType() |
| 1219 ..structType = _media_pipe_MediaPipe_GetState_Params__(); |
| 1220 map["_media_pipe_MediaPipe_GetState_ResponseParams__"] = |
| 1221 new mojom_types.UserDefinedType() |
| 1222 ..structType = _media_pipe_MediaPipe_GetState_ResponseParams__(); |
| 1223 map["_media_pipe_MediaPipe_SendPacket_Params__"] = |
| 1224 new mojom_types.UserDefinedType() |
| 1225 ..structType = _media_pipe_MediaPipe_SendPacket_Params__(); |
| 1226 map["_media_pipe_MediaPipe_SendPacket_ResponseParams__"] = |
| 1227 new mojom_types.UserDefinedType() |
| 1228 ..structType = _media_pipe_MediaPipe_SendPacket_ResponseParams__(); |
| 1229 map["_media_pipe_MediaPipe_Flush_Params__"] = |
| 1230 new mojom_types.UserDefinedType() |
| 1231 ..structType = _media_pipe_MediaPipe_Flush_Params__(); |
| 1232 map["_media_pipe_MediaPipe_Flush_ResponseParams__"] = |
| 1233 new mojom_types.UserDefinedType() |
| 1234 ..structType = _media_pipe_MediaPipe_Flush_ResponseParams__(); |
| 1235 map["_media_pipe_MediaPipe__"] = |
| 1236 new mojom_types.UserDefinedType() |
| 1237 ..interfaceType = _media_pipe_MediaPipe__(); |
| 1238 media_common_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.U
serDefinedType udt) { |
| 1239 map[s] = udt; |
| 1240 }); |
| 1241 |
| 1242 return map; |
| 1243 } |
| 1244 |
| 1245 var _MojomDesc; |
| 1246 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 1247 if (_MojomDesc == null) { |
| 1248 _MojomDesc = _initDescriptions(); |
| 1249 } |
| 1250 return _MojomDesc; |
| 1251 } |
| 1252 |
| OLD | NEW |