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 surfaces_mojom; | 5 library surfaces_mojom; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| 11 import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types; |
| 12 import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer; |
11 import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom; | 13 import 'package:mojo_services/mojo/geometry.mojom.dart' as geometry_mojom; |
12 import 'package:mojo_services/mojo/quads.mojom.dart' as quads_mojom; | 14 import 'package:mojo_services/mojo/quads.mojom.dart' as quads_mojom; |
13 import 'package:mojo_services/mojo/surface_id.mojom.dart' as surface_id_mojom; | 15 import 'package:mojo_services/mojo/surface_id.mojom.dart' as surface_id_mojom; |
14 class ResourceFormat extends bindings.MojoEnum { | 16 class ResourceFormat extends bindings.MojoEnum { |
15 static const RGBA_8888 = const ResourceFormat._(0); | 17 static const RGBA_8888 = const ResourceFormat._(0); |
16 static const RGBA_4444 = const ResourceFormat._(1); | 18 static const RGBA_4444 = const ResourceFormat._(1); |
17 static const BGRA_8888 = const ResourceFormat._(2); | 19 static const BGRA_8888 = const ResourceFormat._(2); |
18 static const ALPHA_8 = const ResourceFormat._(3); | 20 static const ALPHA_8 = const ResourceFormat._(3); |
19 static const LUMINANCE_8 = const ResourceFormat._(4); | 21 static const LUMINANCE_8 = const ResourceFormat._(4); |
20 static const RGB_565 = const ResourceFormat._(5); | 22 static const RGB_565 = const ResourceFormat._(5); |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 case BGRA_8888: | 85 case BGRA_8888: |
84 return 'ResourceFormat.BGRA_8888'; | 86 return 'ResourceFormat.BGRA_8888'; |
85 case ALPHA_8: | 87 case ALPHA_8: |
86 return 'ResourceFormat.ALPHA_8'; | 88 return 'ResourceFormat.ALPHA_8'; |
87 case LUMINANCE_8: | 89 case LUMINANCE_8: |
88 return 'ResourceFormat.LUMINANCE_8'; | 90 return 'ResourceFormat.LUMINANCE_8'; |
89 case RGB_565: | 91 case RGB_565: |
90 return 'ResourceFormat.RGB_565'; | 92 return 'ResourceFormat.RGB_565'; |
91 case ETC1: | 93 case ETC1: |
92 return 'ResourceFormat.ETC1'; | 94 return 'ResourceFormat.ETC1'; |
| 95 default: |
| 96 return null; |
93 } | 97 } |
94 } | 98 } |
95 | 99 |
96 int toJson() => value; | 100 int toJson() => value; |
97 } | 101 } |
98 | 102 |
| 103 mojom_types.MojomEnum _surfaces_ResourceFormat__() { |
| 104 return new mojom_types.MojomEnum() |
| 105 ..declData = (new mojom_types.DeclarationData()..shortName = "ResourceFormat
") |
| 106 ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue() |
| 107 ..declData = (new mojom_types.DeclarationData()..shortName = "RGBA_8888"
) |
| 108 ..enumTypeKey = '_surfaces_ResourceFormat__' |
| 109 ..intValue = 0,new mojom_types.EnumValue() |
| 110 ..declData = (new mojom_types.DeclarationData()..shortName = "RGBA_4444"
) |
| 111 ..enumTypeKey = '_surfaces_ResourceFormat__' |
| 112 ..intValue = 1,new mojom_types.EnumValue() |
| 113 ..declData = (new mojom_types.DeclarationData()..shortName = "BGRA_8888"
) |
| 114 ..enumTypeKey = '_surfaces_ResourceFormat__' |
| 115 ..intValue = 2,new mojom_types.EnumValue() |
| 116 ..declData = (new mojom_types.DeclarationData()..shortName = "ALPHA_8") |
| 117 ..enumTypeKey = '_surfaces_ResourceFormat__' |
| 118 ..intValue = 3,new mojom_types.EnumValue() |
| 119 ..declData = (new mojom_types.DeclarationData()..shortName = "LUMINANCE_
8") |
| 120 ..enumTypeKey = '_surfaces_ResourceFormat__' |
| 121 ..intValue = 4,new mojom_types.EnumValue() |
| 122 ..declData = (new mojom_types.DeclarationData()..shortName = "RGB_565") |
| 123 ..enumTypeKey = '_surfaces_ResourceFormat__' |
| 124 ..intValue = 5,new mojom_types.EnumValue() |
| 125 ..declData = (new mojom_types.DeclarationData()..shortName = "ET_C1") |
| 126 ..enumTypeKey = '_surfaces_ResourceFormat__' |
| 127 ..intValue = 6,]; |
| 128 } |
| 129 |
99 | 130 |
100 | 131 |
101 class Mailbox extends bindings.Struct { | 132 class Mailbox extends bindings.Struct { |
102 static const List<bindings.StructDataHeader> kVersions = const [ | 133 static const List<bindings.StructDataHeader> kVersions = const [ |
103 const bindings.StructDataHeader(16, 0) | 134 const bindings.StructDataHeader(16, 0) |
104 ]; | 135 ]; |
105 List<int> name = null; | 136 List<int> name = null; |
106 | 137 |
107 Mailbox() : super(kVersions.last.size); | 138 Mailbox() : super(kVersions.last.size); |
108 | 139 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 "name: $name" ")"; | 188 "name: $name" ")"; |
158 } | 189 } |
159 | 190 |
160 Map toJson() { | 191 Map toJson() { |
161 Map map = new Map(); | 192 Map map = new Map(); |
162 map["name"] = name; | 193 map["name"] = name; |
163 return map; | 194 return map; |
164 } | 195 } |
165 } | 196 } |
166 | 197 |
| 198 mojom_types.MojomStruct _surfaces_Mailbox__() { |
| 199 return new mojom_types.MojomStruct() |
| 200 ..declData = (new mojom_types.DeclarationData()..shortName = 'Mailbox') |
| 201 ..fields = <mojom_types.StructField>[ |
| 202 new mojom_types.StructField() |
| 203 ..declData = (new mojom_types.DeclarationData()..shortName = 'Name') |
| 204 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
()..fixedLength = 64 |
| 205 ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType
.INT8))), |
| 206 ]; |
| 207 } |
| 208 |
167 | 209 |
168 class MailboxHolder extends bindings.Struct { | 210 class MailboxHolder extends bindings.Struct { |
169 static const List<bindings.StructDataHeader> kVersions = const [ | 211 static const List<bindings.StructDataHeader> kVersions = const [ |
170 const bindings.StructDataHeader(24, 0) | 212 const bindings.StructDataHeader(24, 0) |
171 ]; | 213 ]; |
172 Mailbox mailbox = null; | 214 Mailbox mailbox = null; |
173 int textureTarget = 0; | 215 int textureTarget = 0; |
174 int syncPoint = 0; | 216 int syncPoint = 0; |
175 | 217 |
176 MailboxHolder() : super(kVersions.last.size); | 218 MailboxHolder() : super(kVersions.last.size); |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 | 285 |
244 Map toJson() { | 286 Map toJson() { |
245 Map map = new Map(); | 287 Map map = new Map(); |
246 map["mailbox"] = mailbox; | 288 map["mailbox"] = mailbox; |
247 map["textureTarget"] = textureTarget; | 289 map["textureTarget"] = textureTarget; |
248 map["syncPoint"] = syncPoint; | 290 map["syncPoint"] = syncPoint; |
249 return map; | 291 return map; |
250 } | 292 } |
251 } | 293 } |
252 | 294 |
| 295 mojom_types.MojomStruct _surfaces_MailboxHolder__() { |
| 296 return new mojom_types.MojomStruct() |
| 297 ..declData = (new mojom_types.DeclarationData()..shortName = 'MailboxHolder'
) |
| 298 ..fields = <mojom_types.StructField>[ |
| 299 new mojom_types.StructField() |
| 300 ..declData = (new mojom_types.DeclarationData()..shortName = 'Mailbox') |
| 301 ..type = (new mojom_types.Type() |
| 302 ..typeReference = (new mojom_types.TypeReference() |
| 303 |
| 304 ..identifier = '_surfaces_Mailbox__' |
| 305 ..typeKey = '_surfaces_Mailbox__' |
| 306 )), |
| 307 |
| 308 new mojom_types.StructField() |
| 309 ..declData = (new mojom_types.DeclarationData()..shortName = 'TextureTar
get') |
| 310 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 311 |
| 312 new mojom_types.StructField() |
| 313 ..declData = (new mojom_types.DeclarationData()..shortName = 'SyncPoint'
) |
| 314 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 315 ]; |
| 316 } |
| 317 |
253 | 318 |
254 class TransferableResource extends bindings.Struct { | 319 class TransferableResource extends bindings.Struct { |
255 static const List<bindings.StructDataHeader> kVersions = const [ | 320 static const List<bindings.StructDataHeader> kVersions = const [ |
256 const bindings.StructDataHeader(40, 0) | 321 const bindings.StructDataHeader(40, 0) |
257 ]; | 322 ]; |
258 int id = 0; | 323 int id = 0; |
259 ResourceFormat format = null; | 324 ResourceFormat format = null; |
260 int filter = 0; | 325 int filter = 0; |
261 bool isRepeated = false; | 326 bool isRepeated = false; |
262 bool isSoftware = false; | 327 bool isSoftware = false; |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 map["format"] = format; | 435 map["format"] = format; |
371 map["filter"] = filter; | 436 map["filter"] = filter; |
372 map["isRepeated"] = isRepeated; | 437 map["isRepeated"] = isRepeated; |
373 map["isSoftware"] = isSoftware; | 438 map["isSoftware"] = isSoftware; |
374 map["size"] = size; | 439 map["size"] = size; |
375 map["mailboxHolder"] = mailboxHolder; | 440 map["mailboxHolder"] = mailboxHolder; |
376 return map; | 441 return map; |
377 } | 442 } |
378 } | 443 } |
379 | 444 |
| 445 mojom_types.MojomStruct _surfaces_TransferableResource__() { |
| 446 return new mojom_types.MojomStruct() |
| 447 ..declData = (new mojom_types.DeclarationData()..shortName = 'TransferableRe
source') |
| 448 ..fields = <mojom_types.StructField>[ |
| 449 new mojom_types.StructField() |
| 450 ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
| 451 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 452 |
| 453 new mojom_types.StructField() |
| 454 ..declData = (new mojom_types.DeclarationData()..shortName = 'Format') |
| 455 ..type = (new mojom_types.Type() |
| 456 ..typeReference = (new mojom_types.TypeReference() |
| 457 |
| 458 ..identifier = '_surfaces_ResourceFormat__' |
| 459 ..typeKey = '_surfaces_ResourceFormat__' |
| 460 )), |
| 461 |
| 462 new mojom_types.StructField() |
| 463 ..declData = (new mojom_types.DeclarationData()..shortName = 'Filter') |
| 464 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 465 |
| 466 new mojom_types.StructField() |
| 467 ..declData = (new mojom_types.DeclarationData()..shortName = 'Size') |
| 468 ..type = (new mojom_types.Type() |
| 469 ..typeReference = (new mojom_types.TypeReference() |
| 470 |
| 471 ..identifier = '_geometry_Size__' |
| 472 ..typeKey = '_geometry_Size__' |
| 473 )), |
| 474 |
| 475 new mojom_types.StructField() |
| 476 ..declData = (new mojom_types.DeclarationData()..shortName = 'MailboxHol
der') |
| 477 ..type = (new mojom_types.Type() |
| 478 ..typeReference = (new mojom_types.TypeReference() |
| 479 |
| 480 ..identifier = '_surfaces_MailboxHolder__' |
| 481 ..typeKey = '_surfaces_MailboxHolder__' |
| 482 )), |
| 483 |
| 484 new mojom_types.StructField() |
| 485 ..declData = (new mojom_types.DeclarationData()..shortName = 'IsRepeated
') |
| 486 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BO
OL), |
| 487 |
| 488 new mojom_types.StructField() |
| 489 ..declData = (new mojom_types.DeclarationData()..shortName = 'IsSoftware
') |
| 490 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BO
OL), |
| 491 ]; |
| 492 } |
| 493 |
380 | 494 |
381 class ReturnedResource extends bindings.Struct { | 495 class ReturnedResource extends bindings.Struct { |
382 static const List<bindings.StructDataHeader> kVersions = const [ | 496 static const List<bindings.StructDataHeader> kVersions = const [ |
383 const bindings.StructDataHeader(24, 0) | 497 const bindings.StructDataHeader(24, 0) |
384 ]; | 498 ]; |
385 int id = 0; | 499 int id = 0; |
386 int syncPoint = 0; | 500 int syncPoint = 0; |
387 int count = 0; | 501 int count = 0; |
388 bool lost = false; | 502 bool lost = false; |
389 | 503 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 Map toJson() { | 578 Map toJson() { |
465 Map map = new Map(); | 579 Map map = new Map(); |
466 map["id"] = id; | 580 map["id"] = id; |
467 map["syncPoint"] = syncPoint; | 581 map["syncPoint"] = syncPoint; |
468 map["count"] = count; | 582 map["count"] = count; |
469 map["lost"] = lost; | 583 map["lost"] = lost; |
470 return map; | 584 return map; |
471 } | 585 } |
472 } | 586 } |
473 | 587 |
| 588 mojom_types.MojomStruct _surfaces_ReturnedResource__() { |
| 589 return new mojom_types.MojomStruct() |
| 590 ..declData = (new mojom_types.DeclarationData()..shortName = 'ReturnedResour
ce') |
| 591 ..fields = <mojom_types.StructField>[ |
| 592 new mojom_types.StructField() |
| 593 ..declData = (new mojom_types.DeclarationData()..shortName = 'Id') |
| 594 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 595 |
| 596 new mojom_types.StructField() |
| 597 ..declData = (new mojom_types.DeclarationData()..shortName = 'SyncPoint'
) |
| 598 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 599 |
| 600 new mojom_types.StructField() |
| 601 ..declData = (new mojom_types.DeclarationData()..shortName = 'Count') |
| 602 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.IN
T32), |
| 603 |
| 604 new mojom_types.StructField() |
| 605 ..declData = (new mojom_types.DeclarationData()..shortName = 'Lost') |
| 606 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.BO
OL), |
| 607 ]; |
| 608 } |
| 609 |
474 | 610 |
475 class Frame extends bindings.Struct { | 611 class Frame extends bindings.Struct { |
476 static const List<bindings.StructDataHeader> kVersions = const [ | 612 static const List<bindings.StructDataHeader> kVersions = const [ |
477 const bindings.StructDataHeader(24, 0) | 613 const bindings.StructDataHeader(24, 0) |
478 ]; | 614 ]; |
479 List<TransferableResource> resources = null; | 615 List<TransferableResource> resources = null; |
480 List<quads_mojom.Pass> passes = null; | 616 List<quads_mojom.Pass> passes = null; |
481 | 617 |
482 Frame() : super(kVersions.last.size); | 618 Frame() : super(kVersions.last.size); |
483 | 619 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
574 } | 710 } |
575 | 711 |
576 Map toJson() { | 712 Map toJson() { |
577 Map map = new Map(); | 713 Map map = new Map(); |
578 map["resources"] = resources; | 714 map["resources"] = resources; |
579 map["passes"] = passes; | 715 map["passes"] = passes; |
580 return map; | 716 return map; |
581 } | 717 } |
582 } | 718 } |
583 | 719 |
| 720 mojom_types.MojomStruct _surfaces_Frame__() { |
| 721 return new mojom_types.MojomStruct() |
| 722 ..declData = (new mojom_types.DeclarationData()..shortName = 'Frame') |
| 723 ..fields = <mojom_types.StructField>[ |
| 724 new mojom_types.StructField() |
| 725 ..declData = (new mojom_types.DeclarationData()..shortName = 'Resources'
) |
| 726 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 727 ..elementType = (new mojom_types.Type() |
| 728 ..typeReference = (new mojom_types.TypeReference() |
| 729 |
| 730 ..identifier = '_surfaces_TransferableResource__' |
| 731 ..typeKey = '_surfaces_TransferableResource__' |
| 732 )))), |
| 733 |
| 734 new mojom_types.StructField() |
| 735 ..declData = (new mojom_types.DeclarationData()..shortName = 'Passes') |
| 736 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 737 ..elementType = (new mojom_types.Type() |
| 738 ..typeReference = (new mojom_types.TypeReference() |
| 739 |
| 740 ..identifier = '_quads_Pass__' |
| 741 ..typeKey = '_quads_Pass__' |
| 742 )))), |
| 743 ]; |
| 744 } |
| 745 |
584 | 746 |
585 class ResourceReturnerReturnResourcesParams extends bindings.Struct { | 747 class ResourceReturnerReturnResourcesParams extends bindings.Struct { |
586 static const List<bindings.StructDataHeader> kVersions = const [ | 748 static const List<bindings.StructDataHeader> kVersions = const [ |
587 const bindings.StructDataHeader(16, 0) | 749 const bindings.StructDataHeader(16, 0) |
588 ]; | 750 ]; |
589 List<ReturnedResource> resources = null; | 751 List<ReturnedResource> resources = null; |
590 | 752 |
591 ResourceReturnerReturnResourcesParams() : super(kVersions.last.size); | 753 ResourceReturnerReturnResourcesParams() : super(kVersions.last.size); |
592 | 754 |
593 static ResourceReturnerReturnResourcesParams deserialize(bindings.Message mess
age) { | 755 static ResourceReturnerReturnResourcesParams deserialize(bindings.Message mess
age) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 "resources: $resources" ")"; | 820 "resources: $resources" ")"; |
659 } | 821 } |
660 | 822 |
661 Map toJson() { | 823 Map toJson() { |
662 Map map = new Map(); | 824 Map map = new Map(); |
663 map["resources"] = resources; | 825 map["resources"] = resources; |
664 return map; | 826 return map; |
665 } | 827 } |
666 } | 828 } |
667 | 829 |
| 830 mojom_types.MojomStruct _surfaces_ResourceReturner_ReturnResources_Params__() { |
| 831 return new mojom_types.MojomStruct() |
| 832 ..declData = (new mojom_types.DeclarationData()..shortName = 'ResourceReturn
erReturnResourcesParams') |
| 833 ..fields = <mojom_types.StructField>[ |
| 834 new mojom_types.StructField() |
| 835 ..declData = (new mojom_types.DeclarationData()..shortName = 'Resources'
) |
| 836 ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType
() |
| 837 ..elementType = (new mojom_types.Type() |
| 838 ..typeReference = (new mojom_types.TypeReference() |
| 839 |
| 840 ..identifier = '_surfaces_ReturnedResource__' |
| 841 ..typeKey = '_surfaces_ReturnedResource__' |
| 842 )))), |
| 843 ]; |
| 844 } |
| 845 |
668 | 846 |
669 class SurfaceGetIdNamespaceParams extends bindings.Struct { | 847 class SurfaceGetIdNamespaceParams extends bindings.Struct { |
670 static const List<bindings.StructDataHeader> kVersions = const [ | 848 static const List<bindings.StructDataHeader> kVersions = const [ |
671 const bindings.StructDataHeader(8, 0) | 849 const bindings.StructDataHeader(8, 0) |
672 ]; | 850 ]; |
673 | 851 |
674 SurfaceGetIdNamespaceParams() : super(kVersions.last.size); | 852 SurfaceGetIdNamespaceParams() : super(kVersions.last.size); |
675 | 853 |
676 static SurfaceGetIdNamespaceParams deserialize(bindings.Message message) { | 854 static SurfaceGetIdNamespaceParams deserialize(bindings.Message message) { |
677 var decoder = new bindings.Decoder(message); | 855 var decoder = new bindings.Decoder(message); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 String toString() { | 894 String toString() { |
717 return "SurfaceGetIdNamespaceParams("")"; | 895 return "SurfaceGetIdNamespaceParams("")"; |
718 } | 896 } |
719 | 897 |
720 Map toJson() { | 898 Map toJson() { |
721 Map map = new Map(); | 899 Map map = new Map(); |
722 return map; | 900 return map; |
723 } | 901 } |
724 } | 902 } |
725 | 903 |
| 904 mojom_types.MojomStruct _surfaces_Surface_GetIdNamespace_Params__() { |
| 905 return new mojom_types.MojomStruct() |
| 906 ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceGetIdNa
mespaceParams') |
| 907 ..fields = <mojom_types.StructField>[]; |
| 908 } |
| 909 |
726 | 910 |
727 class SurfaceGetIdNamespaceResponseParams extends bindings.Struct { | 911 class SurfaceGetIdNamespaceResponseParams extends bindings.Struct { |
728 static const List<bindings.StructDataHeader> kVersions = const [ | 912 static const List<bindings.StructDataHeader> kVersions = const [ |
729 const bindings.StructDataHeader(16, 0) | 913 const bindings.StructDataHeader(16, 0) |
730 ]; | 914 ]; |
731 int idNamespace = 0; | 915 int idNamespace = 0; |
732 | 916 |
733 SurfaceGetIdNamespaceResponseParams() : super(kVersions.last.size); | 917 SurfaceGetIdNamespaceResponseParams() : super(kVersions.last.size); |
734 | 918 |
735 static SurfaceGetIdNamespaceResponseParams deserialize(bindings.Message messag
e) { | 919 static SurfaceGetIdNamespaceResponseParams deserialize(bindings.Message messag
e) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 "idNamespace: $idNamespace" ")"; | 967 "idNamespace: $idNamespace" ")"; |
784 } | 968 } |
785 | 969 |
786 Map toJson() { | 970 Map toJson() { |
787 Map map = new Map(); | 971 Map map = new Map(); |
788 map["idNamespace"] = idNamespace; | 972 map["idNamespace"] = idNamespace; |
789 return map; | 973 return map; |
790 } | 974 } |
791 } | 975 } |
792 | 976 |
| 977 mojom_types.MojomStruct _surfaces_Surface_GetIdNamespace_ResponseParams__() { |
| 978 return new mojom_types.MojomStruct() |
| 979 ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceGetIdNa
mespaceResponseParams') |
| 980 ..fields = <mojom_types.StructField>[ |
| 981 new mojom_types.StructField() |
| 982 ..declData = (new mojom_types.DeclarationData()..shortName = 'IdNamespac
e') |
| 983 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 984 ]; |
| 985 } |
| 986 |
793 | 987 |
794 class SurfaceSetResourceReturnerParams extends bindings.Struct { | 988 class SurfaceSetResourceReturnerParams extends bindings.Struct { |
795 static const List<bindings.StructDataHeader> kVersions = const [ | 989 static const List<bindings.StructDataHeader> kVersions = const [ |
796 const bindings.StructDataHeader(16, 0) | 990 const bindings.StructDataHeader(16, 0) |
797 ]; | 991 ]; |
798 Object returner = null; | 992 Object returner = null; |
799 | 993 |
800 SurfaceSetResourceReturnerParams() : super(kVersions.last.size); | 994 SurfaceSetResourceReturnerParams() : super(kVersions.last.size); |
801 | 995 |
802 static SurfaceSetResourceReturnerParams deserialize(bindings.Message message)
{ | 996 static SurfaceSetResourceReturnerParams deserialize(bindings.Message message)
{ |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 return "SurfaceSetResourceReturnerParams(" | 1043 return "SurfaceSetResourceReturnerParams(" |
850 "returner: $returner" ")"; | 1044 "returner: $returner" ")"; |
851 } | 1045 } |
852 | 1046 |
853 Map toJson() { | 1047 Map toJson() { |
854 throw new bindings.MojoCodecError( | 1048 throw new bindings.MojoCodecError( |
855 'Object containing handles cannot be encoded to JSON.'); | 1049 'Object containing handles cannot be encoded to JSON.'); |
856 } | 1050 } |
857 } | 1051 } |
858 | 1052 |
| 1053 mojom_types.MojomStruct _surfaces_Surface_SetResourceReturner_Params__() { |
| 1054 return new mojom_types.MojomStruct() |
| 1055 ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceSetReso
urceReturnerParams') |
| 1056 ..fields = <mojom_types.StructField>[ |
| 1057 new mojom_types.StructField() |
| 1058 ..declData = (new mojom_types.DeclarationData()..shortName = 'Returner') |
| 1059 ..type = (new mojom_types.Type() |
| 1060 ..typeReference = (new mojom_types.TypeReference() |
| 1061 |
| 1062 ..identifier = '_surfaces_ResourceReturner__' |
| 1063 ..typeKey = '_surfaces_ResourceReturner__' |
| 1064 )), |
| 1065 ]; |
| 1066 } |
| 1067 |
859 | 1068 |
860 class SurfaceCreateSurfaceParams extends bindings.Struct { | 1069 class SurfaceCreateSurfaceParams extends bindings.Struct { |
861 static const List<bindings.StructDataHeader> kVersions = const [ | 1070 static const List<bindings.StructDataHeader> kVersions = const [ |
862 const bindings.StructDataHeader(16, 0) | 1071 const bindings.StructDataHeader(16, 0) |
863 ]; | 1072 ]; |
864 int idLocal = 0; | 1073 int idLocal = 0; |
865 | 1074 |
866 SurfaceCreateSurfaceParams() : super(kVersions.last.size); | 1075 SurfaceCreateSurfaceParams() : super(kVersions.last.size); |
867 | 1076 |
868 static SurfaceCreateSurfaceParams deserialize(bindings.Message message) { | 1077 static SurfaceCreateSurfaceParams deserialize(bindings.Message message) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 "idLocal: $idLocal" ")"; | 1125 "idLocal: $idLocal" ")"; |
917 } | 1126 } |
918 | 1127 |
919 Map toJson() { | 1128 Map toJson() { |
920 Map map = new Map(); | 1129 Map map = new Map(); |
921 map["idLocal"] = idLocal; | 1130 map["idLocal"] = idLocal; |
922 return map; | 1131 return map; |
923 } | 1132 } |
924 } | 1133 } |
925 | 1134 |
| 1135 mojom_types.MojomStruct _surfaces_Surface_CreateSurface_Params__() { |
| 1136 return new mojom_types.MojomStruct() |
| 1137 ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceCreateS
urfaceParams') |
| 1138 ..fields = <mojom_types.StructField>[ |
| 1139 new mojom_types.StructField() |
| 1140 ..declData = (new mojom_types.DeclarationData()..shortName = 'IdLocal') |
| 1141 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 1142 ]; |
| 1143 } |
| 1144 |
926 | 1145 |
927 class SurfaceSubmitFrameParams extends bindings.Struct { | 1146 class SurfaceSubmitFrameParams extends bindings.Struct { |
928 static const List<bindings.StructDataHeader> kVersions = const [ | 1147 static const List<bindings.StructDataHeader> kVersions = const [ |
929 const bindings.StructDataHeader(24, 0) | 1148 const bindings.StructDataHeader(24, 0) |
930 ]; | 1149 ]; |
931 int idLocal = 0; | 1150 int idLocal = 0; |
932 Frame frame = null; | 1151 Frame frame = null; |
933 | 1152 |
934 SurfaceSubmitFrameParams() : super(kVersions.last.size); | 1153 SurfaceSubmitFrameParams() : super(kVersions.last.size); |
935 | 1154 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
993 } | 1212 } |
994 | 1213 |
995 Map toJson() { | 1214 Map toJson() { |
996 Map map = new Map(); | 1215 Map map = new Map(); |
997 map["idLocal"] = idLocal; | 1216 map["idLocal"] = idLocal; |
998 map["frame"] = frame; | 1217 map["frame"] = frame; |
999 return map; | 1218 return map; |
1000 } | 1219 } |
1001 } | 1220 } |
1002 | 1221 |
| 1222 mojom_types.MojomStruct _surfaces_Surface_SubmitFrame_Params__() { |
| 1223 return new mojom_types.MojomStruct() |
| 1224 ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceSubmitF
rameParams') |
| 1225 ..fields = <mojom_types.StructField>[ |
| 1226 new mojom_types.StructField() |
| 1227 ..declData = (new mojom_types.DeclarationData()..shortName = 'IdLocal') |
| 1228 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 1229 |
| 1230 new mojom_types.StructField() |
| 1231 ..declData = (new mojom_types.DeclarationData()..shortName = 'Frame') |
| 1232 ..type = (new mojom_types.Type() |
| 1233 ..typeReference = (new mojom_types.TypeReference() |
| 1234 |
| 1235 ..identifier = '_surfaces_Frame__' |
| 1236 ..typeKey = '_surfaces_Frame__' |
| 1237 )), |
| 1238 ]; |
| 1239 } |
| 1240 |
1003 | 1241 |
1004 class SurfaceSubmitFrameResponseParams extends bindings.Struct { | 1242 class SurfaceSubmitFrameResponseParams extends bindings.Struct { |
1005 static const List<bindings.StructDataHeader> kVersions = const [ | 1243 static const List<bindings.StructDataHeader> kVersions = const [ |
1006 const bindings.StructDataHeader(8, 0) | 1244 const bindings.StructDataHeader(8, 0) |
1007 ]; | 1245 ]; |
1008 | 1246 |
1009 SurfaceSubmitFrameResponseParams() : super(kVersions.last.size); | 1247 SurfaceSubmitFrameResponseParams() : super(kVersions.last.size); |
1010 | 1248 |
1011 static SurfaceSubmitFrameResponseParams deserialize(bindings.Message message)
{ | 1249 static SurfaceSubmitFrameResponseParams deserialize(bindings.Message message)
{ |
1012 var decoder = new bindings.Decoder(message); | 1250 var decoder = new bindings.Decoder(message); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 String toString() { | 1289 String toString() { |
1052 return "SurfaceSubmitFrameResponseParams("")"; | 1290 return "SurfaceSubmitFrameResponseParams("")"; |
1053 } | 1291 } |
1054 | 1292 |
1055 Map toJson() { | 1293 Map toJson() { |
1056 Map map = new Map(); | 1294 Map map = new Map(); |
1057 return map; | 1295 return map; |
1058 } | 1296 } |
1059 } | 1297 } |
1060 | 1298 |
| 1299 mojom_types.MojomStruct _surfaces_Surface_SubmitFrame_ResponseParams__() { |
| 1300 return new mojom_types.MojomStruct() |
| 1301 ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceSubmitF
rameResponseParams') |
| 1302 ..fields = <mojom_types.StructField>[]; |
| 1303 } |
| 1304 |
1061 | 1305 |
1062 class SurfaceDestroySurfaceParams extends bindings.Struct { | 1306 class SurfaceDestroySurfaceParams extends bindings.Struct { |
1063 static const List<bindings.StructDataHeader> kVersions = const [ | 1307 static const List<bindings.StructDataHeader> kVersions = const [ |
1064 const bindings.StructDataHeader(16, 0) | 1308 const bindings.StructDataHeader(16, 0) |
1065 ]; | 1309 ]; |
1066 int idLocal = 0; | 1310 int idLocal = 0; |
1067 | 1311 |
1068 SurfaceDestroySurfaceParams() : super(kVersions.last.size); | 1312 SurfaceDestroySurfaceParams() : super(kVersions.last.size); |
1069 | 1313 |
1070 static SurfaceDestroySurfaceParams deserialize(bindings.Message message) { | 1314 static SurfaceDestroySurfaceParams deserialize(bindings.Message message) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1118 "idLocal: $idLocal" ")"; | 1362 "idLocal: $idLocal" ")"; |
1119 } | 1363 } |
1120 | 1364 |
1121 Map toJson() { | 1365 Map toJson() { |
1122 Map map = new Map(); | 1366 Map map = new Map(); |
1123 map["idLocal"] = idLocal; | 1367 map["idLocal"] = idLocal; |
1124 return map; | 1368 return map; |
1125 } | 1369 } |
1126 } | 1370 } |
1127 | 1371 |
| 1372 mojom_types.MojomStruct _surfaces_Surface_DestroySurface_Params__() { |
| 1373 return new mojom_types.MojomStruct() |
| 1374 ..declData = (new mojom_types.DeclarationData()..shortName = 'SurfaceDestroy
SurfaceParams') |
| 1375 ..fields = <mojom_types.StructField>[ |
| 1376 new mojom_types.StructField() |
| 1377 ..declData = (new mojom_types.DeclarationData()..shortName = 'IdLocal') |
| 1378 ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.UI
NT32), |
| 1379 ]; |
| 1380 } |
| 1381 |
| 1382 |
1128 const int kResourceReturner_returnResources_name = 0; | 1383 const int kResourceReturner_returnResources_name = 0; |
1129 | 1384 |
1130 const String ResourceReturnerName = | 1385 const String ResourceReturnerName = |
1131 'mojo::ResourceReturner'; | 1386 'mojo::ResourceReturner'; |
1132 | 1387 |
| 1388 mojom_types.MojomInterface _surfaces_ResourceReturner__() { |
| 1389 return new mojom_types.MojomInterface() |
| 1390 ..declData = (new mojom_types.DeclarationData()..shortName = "ResourceReturn
er") |
| 1391 ..interfaceName = "ResourceReturner" |
| 1392 ..methods = <int, mojom_types.MojomMethod>{ |
| 1393 kResourceReturner_returnResources_name: new mojom_types.MojomMethod() |
| 1394 ..declData = (new mojom_types.DeclarationData()..shortName = "ReturnReso
urces") |
| 1395 ..ordinal = kResourceReturner_returnResources_name..parameters = _surfac
es_ResourceReturner_ReturnResources_Params__(), |
| 1396 }; |
| 1397 } |
| 1398 |
| 1399 class _ResourceReturnerServiceDescription extends service_describer.ServiceDescr
iption { |
| 1400 // Avoid infinite loop by overriding serviceDescription field. |
| 1401 final service_describer.ServiceDescription serviceDescription = null; |
| 1402 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 1403 return _surfaces_ResourceReturner__(); |
| 1404 } |
| 1405 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 1406 return getAllMojomTypeDefinitions()[typeKey]; |
| 1407 } |
| 1408 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 1409 return getAllMojomTypeDefinitions(); |
| 1410 } |
| 1411 } |
| 1412 |
1133 abstract class ResourceReturner { | 1413 abstract class ResourceReturner { |
1134 void returnResources(List<ReturnedResource> resources); | 1414 void returnResources(List<ReturnedResource> resources); |
1135 | 1415 |
1136 } | 1416 } |
1137 | 1417 |
1138 | 1418 |
1139 class ResourceReturnerProxyImpl extends bindings.Proxy { | 1419 class ResourceReturnerProxyImpl extends bindings.Proxy { |
1140 ResourceReturnerProxyImpl.fromEndpoint( | 1420 ResourceReturnerProxyImpl.fromEndpoint( |
1141 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1421 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1142 | 1422 |
1143 ResourceReturnerProxyImpl.fromHandle(core.MojoHandle handle) : | 1423 ResourceReturnerProxyImpl.fromHandle(core.MojoHandle handle) : |
1144 super.fromHandle(handle); | 1424 super.fromHandle(handle); |
1145 | 1425 |
1146 ResourceReturnerProxyImpl.unbound() : super.unbound(); | 1426 ResourceReturnerProxyImpl.unbound() : super.unbound(); |
1147 | 1427 |
1148 static ResourceReturnerProxyImpl newFromEndpoint( | 1428 static ResourceReturnerProxyImpl newFromEndpoint( |
1149 core.MojoMessagePipeEndpoint endpoint) { | 1429 core.MojoMessagePipeEndpoint endpoint) { |
1150 assert(endpoint.setDescription("For ResourceReturnerProxyImpl")); | 1430 assert(endpoint.setDescription("For ResourceReturnerProxyImpl")); |
1151 return new ResourceReturnerProxyImpl.fromEndpoint(endpoint); | 1431 return new ResourceReturnerProxyImpl.fromEndpoint(endpoint); |
1152 } | 1432 } |
1153 | 1433 |
1154 String get name => ResourceReturnerName; | 1434 String get name => ResourceReturnerName; |
1155 | 1435 |
| 1436 service_describer.ServiceDescription get serviceDescription => |
| 1437 new _ResourceReturnerServiceDescription(); |
| 1438 |
1156 void handleResponse(bindings.ServiceMessage message) { | 1439 void handleResponse(bindings.ServiceMessage message) { |
1157 switch (message.header.type) { | 1440 switch (message.header.type) { |
1158 default: | 1441 default: |
1159 proxyError("Unexpected message type: ${message.header.type}"); | 1442 proxyError("Unexpected message type: ${message.header.type}"); |
1160 close(immediate: true); | 1443 close(immediate: true); |
1161 break; | 1444 break; |
1162 } | 1445 } |
1163 } | 1446 } |
1164 | 1447 |
1165 String toString() { | 1448 String toString() { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1291 assert(_impl == null); | 1574 assert(_impl == null); |
1292 _impl = d; | 1575 _impl = d; |
1293 } | 1576 } |
1294 | 1577 |
1295 String toString() { | 1578 String toString() { |
1296 var superString = super.toString(); | 1579 var superString = super.toString(); |
1297 return "ResourceReturnerStub($superString)"; | 1580 return "ResourceReturnerStub($superString)"; |
1298 } | 1581 } |
1299 | 1582 |
1300 int get version => 0; | 1583 int get version => 0; |
| 1584 |
| 1585 service_describer.ServiceDescription get serviceDescription => |
| 1586 new _ResourceReturnerServiceDescription(); |
1301 } | 1587 } |
1302 | 1588 |
1303 const int kSurface_getIdNamespace_name = 0; | 1589 const int kSurface_getIdNamespace_name = 0; |
1304 const int kSurface_setResourceReturner_name = 1; | 1590 const int kSurface_setResourceReturner_name = 1; |
1305 const int kSurface_createSurface_name = 2; | 1591 const int kSurface_createSurface_name = 2; |
1306 const int kSurface_submitFrame_name = 3; | 1592 const int kSurface_submitFrame_name = 3; |
1307 const int kSurface_destroySurface_name = 4; | 1593 const int kSurface_destroySurface_name = 4; |
1308 | 1594 |
1309 const String SurfaceName = | 1595 const String SurfaceName = |
1310 'mojo::Surface'; | 1596 'mojo::Surface'; |
1311 | 1597 |
| 1598 mojom_types.MojomInterface _surfaces_Surface__() { |
| 1599 return new mojom_types.MojomInterface() |
| 1600 ..declData = (new mojom_types.DeclarationData()..shortName = "Surface") |
| 1601 ..interfaceName = "Surface" |
| 1602 ..methods = <int, mojom_types.MojomMethod>{ |
| 1603 kSurface_getIdNamespace_name: new mojom_types.MojomMethod() |
| 1604 ..declData = (new mojom_types.DeclarationData()..shortName = "GetIdNames
pace") |
| 1605 ..ordinal = kSurface_getIdNamespace_name |
| 1606 ..responseParams = _surfaces_Surface_GetIdNamespace_ResponseParams__()..
parameters = _surfaces_Surface_GetIdNamespace_Params__(),kSurface_setResourceRet
urner_name: new mojom_types.MojomMethod() |
| 1607 ..declData = (new mojom_types.DeclarationData()..shortName = "SetResourc
eReturner") |
| 1608 ..ordinal = kSurface_setResourceReturner_name..parameters = _surfaces_Su
rface_SetResourceReturner_Params__(),kSurface_createSurface_name: new mojom_type
s.MojomMethod() |
| 1609 ..declData = (new mojom_types.DeclarationData()..shortName = "CreateSurf
ace") |
| 1610 ..ordinal = kSurface_createSurface_name..parameters = _surfaces_Surface_
CreateSurface_Params__(),kSurface_submitFrame_name: new mojom_types.MojomMethod(
) |
| 1611 ..declData = (new mojom_types.DeclarationData()..shortName = "SubmitFram
e") |
| 1612 ..ordinal = kSurface_submitFrame_name |
| 1613 ..responseParams = _surfaces_Surface_SubmitFrame_ResponseParams__()..par
ameters = _surfaces_Surface_SubmitFrame_Params__(),kSurface_destroySurface_name:
new mojom_types.MojomMethod() |
| 1614 ..declData = (new mojom_types.DeclarationData()..shortName = "DestroySur
face") |
| 1615 ..ordinal = kSurface_destroySurface_name..parameters = _surfaces_Surface
_DestroySurface_Params__(), |
| 1616 }; |
| 1617 } |
| 1618 |
| 1619 class _SurfaceServiceDescription extends service_describer.ServiceDescription { |
| 1620 // Avoid infinite loop by overriding serviceDescription field. |
| 1621 final service_describer.ServiceDescription serviceDescription = null; |
| 1622 dynamic getTopLevelInterface([Function responseFactory = null]) { |
| 1623 return _surfaces_Surface__(); |
| 1624 } |
| 1625 dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
| 1626 return getAllMojomTypeDefinitions()[typeKey]; |
| 1627 } |
| 1628 dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
| 1629 return getAllMojomTypeDefinitions(); |
| 1630 } |
| 1631 } |
| 1632 |
1312 abstract class Surface { | 1633 abstract class Surface { |
1313 dynamic getIdNamespace([Function responseFactory = null]); | 1634 dynamic getIdNamespace([Function responseFactory = null]); |
1314 void setResourceReturner(Object returner); | 1635 void setResourceReturner(Object returner); |
1315 void createSurface(int idLocal); | 1636 void createSurface(int idLocal); |
1316 dynamic submitFrame(int idLocal,Frame frame,[Function responseFactory = null])
; | 1637 dynamic submitFrame(int idLocal,Frame frame,[Function responseFactory = null])
; |
1317 void destroySurface(int idLocal); | 1638 void destroySurface(int idLocal); |
1318 | 1639 |
1319 } | 1640 } |
1320 | 1641 |
1321 | 1642 |
1322 class SurfaceProxyImpl extends bindings.Proxy { | 1643 class SurfaceProxyImpl extends bindings.Proxy { |
1323 SurfaceProxyImpl.fromEndpoint( | 1644 SurfaceProxyImpl.fromEndpoint( |
1324 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1645 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1325 | 1646 |
1326 SurfaceProxyImpl.fromHandle(core.MojoHandle handle) : | 1647 SurfaceProxyImpl.fromHandle(core.MojoHandle handle) : |
1327 super.fromHandle(handle); | 1648 super.fromHandle(handle); |
1328 | 1649 |
1329 SurfaceProxyImpl.unbound() : super.unbound(); | 1650 SurfaceProxyImpl.unbound() : super.unbound(); |
1330 | 1651 |
1331 static SurfaceProxyImpl newFromEndpoint( | 1652 static SurfaceProxyImpl newFromEndpoint( |
1332 core.MojoMessagePipeEndpoint endpoint) { | 1653 core.MojoMessagePipeEndpoint endpoint) { |
1333 assert(endpoint.setDescription("For SurfaceProxyImpl")); | 1654 assert(endpoint.setDescription("For SurfaceProxyImpl")); |
1334 return new SurfaceProxyImpl.fromEndpoint(endpoint); | 1655 return new SurfaceProxyImpl.fromEndpoint(endpoint); |
1335 } | 1656 } |
1336 | 1657 |
1337 String get name => SurfaceName; | 1658 String get name => SurfaceName; |
1338 | 1659 |
| 1660 service_describer.ServiceDescription get serviceDescription => |
| 1661 new _SurfaceServiceDescription(); |
| 1662 |
1339 void handleResponse(bindings.ServiceMessage message) { | 1663 void handleResponse(bindings.ServiceMessage message) { |
1340 switch (message.header.type) { | 1664 switch (message.header.type) { |
1341 case kSurface_getIdNamespace_name: | 1665 case kSurface_getIdNamespace_name: |
1342 var r = SurfaceGetIdNamespaceResponseParams.deserialize( | 1666 var r = SurfaceGetIdNamespaceResponseParams.deserialize( |
1343 message.payload); | 1667 message.payload); |
1344 if (!message.header.hasRequestId) { | 1668 if (!message.header.hasRequestId) { |
1345 proxyError("Expected a message with a valid request Id."); | 1669 proxyError("Expected a message with a valid request Id."); |
1346 return; | 1670 return; |
1347 } | 1671 } |
1348 Completer c = completerMap[message.header.requestId]; | 1672 Completer c = completerMap[message.header.requestId]; |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1615 assert(_impl == null); | 1939 assert(_impl == null); |
1616 _impl = d; | 1940 _impl = d; |
1617 } | 1941 } |
1618 | 1942 |
1619 String toString() { | 1943 String toString() { |
1620 var superString = super.toString(); | 1944 var superString = super.toString(); |
1621 return "SurfaceStub($superString)"; | 1945 return "SurfaceStub($superString)"; |
1622 } | 1946 } |
1623 | 1947 |
1624 int get version => 0; | 1948 int get version => 0; |
| 1949 |
| 1950 service_describer.ServiceDescription get serviceDescription => |
| 1951 new _SurfaceServiceDescription(); |
1625 } | 1952 } |
1626 | 1953 |
1627 | 1954 |
| 1955 |
| 1956 |
| 1957 |
| 1958 |
| 1959 |
| 1960 |
| 1961 var _MojomDesc__ = _initDescriptions(); |
| 1962 |
| 1963 Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
| 1964 var map = new Map<String, mojom_types.UserDefinedType>(); |
| 1965 |
| 1966 map["_surfaces_ResourceFormat__"] = |
| 1967 new mojom_types.UserDefinedType() |
| 1968 ..enumType = _surfaces_ResourceFormat__(); |
| 1969 |
| 1970 |
| 1971 map["_surfaces_Mailbox__"] = |
| 1972 new mojom_types.UserDefinedType() |
| 1973 ..structType = _surfaces_Mailbox__(); |
| 1974 |
| 1975 |
| 1976 |
| 1977 |
| 1978 |
| 1979 map["_surfaces_MailboxHolder__"] = |
| 1980 new mojom_types.UserDefinedType() |
| 1981 ..structType = _surfaces_MailboxHolder__(); |
| 1982 |
| 1983 |
| 1984 |
| 1985 |
| 1986 |
| 1987 |
| 1988 |
| 1989 |
| 1990 |
| 1991 map["_surfaces_TransferableResource__"] = |
| 1992 new mojom_types.UserDefinedType() |
| 1993 ..structType = _surfaces_TransferableResource__(); |
| 1994 |
| 1995 |
| 1996 |
| 1997 |
| 1998 |
| 1999 |
| 2000 |
| 2001 |
| 2002 |
| 2003 |
| 2004 |
| 2005 |
| 2006 |
| 2007 |
| 2008 |
| 2009 |
| 2010 |
| 2011 map["_surfaces_ReturnedResource__"] = |
| 2012 new mojom_types.UserDefinedType() |
| 2013 ..structType = _surfaces_ReturnedResource__(); |
| 2014 |
| 2015 |
| 2016 |
| 2017 |
| 2018 |
| 2019 |
| 2020 |
| 2021 |
| 2022 |
| 2023 |
| 2024 |
| 2025 map["_surfaces_Frame__"] = |
| 2026 new mojom_types.UserDefinedType() |
| 2027 ..structType = _surfaces_Frame__(); |
| 2028 |
| 2029 |
| 2030 |
| 2031 |
| 2032 |
| 2033 |
| 2034 |
| 2035 map["_surfaces_ResourceReturner_ReturnResources_Params__"] = |
| 2036 new mojom_types.UserDefinedType() |
| 2037 ..structType = _surfaces_ResourceReturner_ReturnResources_Params__(); |
| 2038 |
| 2039 |
| 2040 |
| 2041 |
| 2042 |
| 2043 map["_surfaces_Surface_GetIdNamespace_Params__"] = |
| 2044 new mojom_types.UserDefinedType() |
| 2045 ..structType = _surfaces_Surface_GetIdNamespace_Params__(); |
| 2046 |
| 2047 |
| 2048 |
| 2049 map["_surfaces_Surface_GetIdNamespace_ResponseParams__"] = |
| 2050 new mojom_types.UserDefinedType() |
| 2051 ..structType = _surfaces_Surface_GetIdNamespace_ResponseParams__(); |
| 2052 |
| 2053 |
| 2054 |
| 2055 |
| 2056 |
| 2057 map["_surfaces_Surface_SetResourceReturner_Params__"] = |
| 2058 new mojom_types.UserDefinedType() |
| 2059 ..structType = _surfaces_Surface_SetResourceReturner_Params__(); |
| 2060 |
| 2061 |
| 2062 map["_surfaces_ResourceReturner__"] = |
| 2063 new mojom_types.UserDefinedType() |
| 2064 ..interfaceType = _surfaces_ResourceReturner__(); |
| 2065 |
| 2066 |
| 2067 |
| 2068 |
| 2069 map["_surfaces_Surface_CreateSurface_Params__"] = |
| 2070 new mojom_types.UserDefinedType() |
| 2071 ..structType = _surfaces_Surface_CreateSurface_Params__(); |
| 2072 |
| 2073 |
| 2074 |
| 2075 |
| 2076 |
| 2077 map["_surfaces_Surface_SubmitFrame_Params__"] = |
| 2078 new mojom_types.UserDefinedType() |
| 2079 ..structType = _surfaces_Surface_SubmitFrame_Params__(); |
| 2080 |
| 2081 |
| 2082 |
| 2083 |
| 2084 |
| 2085 |
| 2086 |
| 2087 map["_surfaces_Surface_SubmitFrame_ResponseParams__"] = |
| 2088 new mojom_types.UserDefinedType() |
| 2089 ..structType = _surfaces_Surface_SubmitFrame_ResponseParams__(); |
| 2090 |
| 2091 |
| 2092 |
| 2093 map["_surfaces_Surface_DestroySurface_Params__"] = |
| 2094 new mojom_types.UserDefinedType() |
| 2095 ..structType = _surfaces_Surface_DestroySurface_Params__(); |
| 2096 |
| 2097 |
| 2098 |
| 2099 |
| 2100 |
| 2101 |
| 2102 map["_surfaces_Surface__"] = |
| 2103 new mojom_types.UserDefinedType() |
| 2104 ..interfaceType = _surfaces_Surface__(); |
| 2105 |
| 2106 geometry_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserD
efinedType udt) { |
| 2107 map[s] = udt; |
| 2108 }); |
| 2109 quads_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefi
nedType udt) { |
| 2110 map[s] = udt; |
| 2111 }); |
| 2112 surface_id_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.Use
rDefinedType udt) { |
| 2113 map[s] = udt; |
| 2114 }); |
| 2115 return map; |
| 2116 } |
| 2117 |
| 2118 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
| 2119 return _MojomDesc__; |
| 2120 } |
| 2121 |
| 2122 |
OLD | NEW |