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 pingpong_service_mojom; | 5 library pingpong_service_mojom; |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import 'dart:convert'; | 8 import 'dart:convert'; |
9 import 'dart:io'; | 9 import 'dart:io'; |
10 import 'dart:typed_data'; | 10 import 'dart:typed_data'; |
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 static const String serviceName = "test::PingPongService"; | 769 static const String serviceName = "test::PingPongService"; |
770 void setClient(Object client); | 770 void setClient(Object client); |
771 void ping(int pingValue); | 771 void ping(int pingValue); |
772 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null]); | 772 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null]); |
773 dynamic pingTargetService(Object service,int count,[Function responseFactory =
null]); | 773 dynamic pingTargetService(Object service,int count,[Function responseFactory =
null]); |
774 void getPingPongService(Object service); | 774 void getPingPongService(Object service); |
775 void getPingPongServiceDelayed(Object service); | 775 void getPingPongServiceDelayed(Object service); |
776 void quit(); | 776 void quit(); |
777 } | 777 } |
778 | 778 |
779 | 779 class _PingPongServiceProxyControl |
780 class _PingPongServiceProxyControl extends bindings.ProxyMessageHandler | 780 extends bindings.ProxyMessageHandler |
781 implements bindings.ProxyControl { | 781 implements bindings.ProxyControl { |
782 _PingPongServiceProxyControl.fromEndpoint( | 782 _PingPongServiceProxyControl.fromEndpoint( |
783 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 783 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
784 | 784 |
785 _PingPongServiceProxyControl.fromHandle( | 785 _PingPongServiceProxyControl.fromHandle( |
786 core.MojoHandle handle) : super.fromHandle(handle); | 786 core.MojoHandle handle) : super.fromHandle(handle); |
787 | 787 |
788 _PingPongServiceProxyControl.unbound() : super.unbound(); | 788 _PingPongServiceProxyControl.unbound() : super.unbound(); |
789 | 789 |
790 service_describer.ServiceDescription get serviceDescription => | 790 service_describer.ServiceDescription get serviceDescription => |
791 new _PingPongServiceServiceDescription(); | 791 new _PingPongServiceServiceDescription(); |
792 | 792 |
793 String get serviceName => PingPongService.serviceName; | 793 String get serviceName => PingPongService.serviceName; |
794 | 794 |
795 @override | |
796 void handleResponse(bindings.ServiceMessage message) { | 795 void handleResponse(bindings.ServiceMessage message) { |
797 switch (message.header.type) { | 796 switch (message.header.type) { |
798 case _pingPongServiceMethodPingTargetUrlName: | 797 case _pingPongServiceMethodPingTargetUrlName: |
799 var r = PingPongServicePingTargetUrlResponseParams.deserialize( | 798 var r = PingPongServicePingTargetUrlResponseParams.deserialize( |
800 message.payload); | 799 message.payload); |
801 if (!message.header.hasRequestId) { | 800 if (!message.header.hasRequestId) { |
802 proxyError("Expected a message with a valid request Id."); | 801 proxyError("Expected a message with a valid request Id."); |
803 return; | 802 return; |
804 } | 803 } |
805 Completer c = completerMap[message.header.requestId]; | 804 Completer c = completerMap[message.header.requestId]; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 } | 841 } |
843 } | 842 } |
844 | 843 |
845 @override | 844 @override |
846 String toString() { | 845 String toString() { |
847 var superString = super.toString(); | 846 var superString = super.toString(); |
848 return "_PingPongServiceProxyControl($superString)"; | 847 return "_PingPongServiceProxyControl($superString)"; |
849 } | 848 } |
850 } | 849 } |
851 | 850 |
852 | 851 class PingPongServiceProxy |
853 class PingPongServiceProxy extends bindings.Proxy | 852 extends bindings.Proxy |
854 implements PingPongService { | 853 implements PingPongService { |
855 PingPongServiceProxy.fromEndpoint( | 854 PingPongServiceProxy.fromEndpoint( |
856 core.MojoMessagePipeEndpoint endpoint) | 855 core.MojoMessagePipeEndpoint endpoint) |
857 : super(new _PingPongServiceProxyControl.fromEndpoint(endpoint)); | 856 : super(new _PingPongServiceProxyControl.fromEndpoint(endpoint)); |
858 | 857 |
859 PingPongServiceProxy.fromHandle(core.MojoHandle handle) | 858 PingPongServiceProxy.fromHandle(core.MojoHandle handle) |
860 : super(new _PingPongServiceProxyControl.fromHandle(handle)); | 859 : super(new _PingPongServiceProxyControl.fromHandle(handle)); |
861 | 860 |
862 PingPongServiceProxy.unbound() | 861 PingPongServiceProxy.unbound() |
863 : super(new _PingPongServiceProxyControl.unbound()); | 862 : super(new _PingPongServiceProxyControl.unbound()); |
864 | 863 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 if (!ctrl.isBound) { | 939 if (!ctrl.isBound) { |
941 ctrl.proxyError("The Proxy is closed."); | 940 ctrl.proxyError("The Proxy is closed."); |
942 return; | 941 return; |
943 } | 942 } |
944 var params = new _PingPongServiceQuitParams(); | 943 var params = new _PingPongServiceQuitParams(); |
945 ctrl.sendMessage(params, | 944 ctrl.sendMessage(params, |
946 _pingPongServiceMethodQuitName); | 945 _pingPongServiceMethodQuitName); |
947 } | 946 } |
948 } | 947 } |
949 | 948 |
950 | 949 class _PingPongServiceStubControl |
951 class PingPongServiceStub extends bindings.Stub { | 950 extends bindings.StubMessageHandler |
| 951 implements bindings.StubControl<PingPongService> { |
952 PingPongService _impl; | 952 PingPongService _impl; |
953 | 953 |
954 PingPongServiceStub.fromEndpoint( | 954 _PingPongServiceStubControl.fromEndpoint( |
955 core.MojoMessagePipeEndpoint endpoint, [PingPongService impl]) | 955 core.MojoMessagePipeEndpoint endpoint, [PingPongService impl]) |
956 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 956 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
957 _impl = impl; | 957 _impl = impl; |
958 } | 958 } |
959 | 959 |
960 PingPongServiceStub.fromHandle( | 960 _PingPongServiceStubControl.fromHandle( |
961 core.MojoHandle handle, [PingPongService impl]) | 961 core.MojoHandle handle, [PingPongService impl]) |
962 : super.fromHandle(handle, autoBegin: impl != null) { | 962 : super.fromHandle(handle, autoBegin: impl != null) { |
963 _impl = impl; | 963 _impl = impl; |
964 } | 964 } |
965 | 965 |
966 PingPongServiceStub.unbound([this._impl]) : super.unbound(); | 966 _PingPongServiceStubControl.unbound([this._impl]) : super.unbound(); |
967 | |
968 static PingPongServiceStub newFromEndpoint( | |
969 core.MojoMessagePipeEndpoint endpoint) { | |
970 assert(endpoint.setDescription("For PingPongServiceStub")); | |
971 return new PingPongServiceStub.fromEndpoint(endpoint); | |
972 } | |
973 | 967 |
974 | 968 |
975 PingPongServicePingTargetUrlResponseParams _pingPongServicePingTargetUrlRespon
seParamsFactory(bool ok) { | 969 PingPongServicePingTargetUrlResponseParams _pingPongServicePingTargetUrlRespon
seParamsFactory(bool ok) { |
976 var result = new PingPongServicePingTargetUrlResponseParams(); | 970 var result = new PingPongServicePingTargetUrlResponseParams(); |
977 result.ok = ok; | 971 result.ok = ok; |
978 return result; | 972 return result; |
979 } | 973 } |
980 PingPongServicePingTargetServiceResponseParams _pingPongServicePingTargetServi
ceResponseParamsFactory(bool ok) { | 974 PingPongServicePingTargetServiceResponseParams _pingPongServicePingTargetServi
ceResponseParamsFactory(bool ok) { |
981 var result = new PingPongServicePingTargetServiceResponseParams(); | 975 var result = new PingPongServicePingTargetServiceResponseParams(); |
982 result.ok = ok; | 976 result.ok = ok; |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1079 } | 1073 } |
1080 | 1074 |
1081 @override | 1075 @override |
1082 void bind(core.MojoMessagePipeEndpoint endpoint) { | 1076 void bind(core.MojoMessagePipeEndpoint endpoint) { |
1083 super.bind(endpoint); | 1077 super.bind(endpoint); |
1084 if (!isOpen && (_impl != null)) { | 1078 if (!isOpen && (_impl != null)) { |
1085 beginHandlingEvents(); | 1079 beginHandlingEvents(); |
1086 } | 1080 } |
1087 } | 1081 } |
1088 | 1082 |
| 1083 @override |
1089 String toString() { | 1084 String toString() { |
1090 var superString = super.toString(); | 1085 var superString = super.toString(); |
1091 return "PingPongServiceStub($superString)"; | 1086 return "_PingPongServiceStubControl($superString)"; |
1092 } | 1087 } |
1093 | 1088 |
1094 int get version => 0; | 1089 int get version => 0; |
1095 | 1090 |
1096 static service_describer.ServiceDescription _cachedServiceDescription; | 1091 static service_describer.ServiceDescription _cachedServiceDescription; |
1097 static service_describer.ServiceDescription get serviceDescription { | 1092 static service_describer.ServiceDescription get serviceDescription { |
1098 if (_cachedServiceDescription == null) { | 1093 if (_cachedServiceDescription == null) { |
1099 _cachedServiceDescription = new _PingPongServiceServiceDescription(); | 1094 _cachedServiceDescription = new _PingPongServiceServiceDescription(); |
1100 } | 1095 } |
1101 return _cachedServiceDescription; | 1096 return _cachedServiceDescription; |
1102 } | 1097 } |
1103 } | 1098 } |
1104 | 1099 |
| 1100 class PingPongServiceStub |
| 1101 extends bindings.Stub<PingPongService> |
| 1102 implements PingPongService { |
| 1103 PingPongServiceStub.fromEndpoint( |
| 1104 core.MojoMessagePipeEndpoint endpoint, [PingPongService impl]) |
| 1105 : super(new _PingPongServiceStubControl.fromEndpoint(endpoint, impl)); |
| 1106 |
| 1107 PingPongServiceStub.fromHandle( |
| 1108 core.MojoHandle handle, [PingPongService impl]) |
| 1109 : super(new _PingPongServiceStubControl.fromHandle(handle, impl)); |
| 1110 |
| 1111 PingPongServiceStub.unbound([PingPongService impl]) |
| 1112 : super(new _PingPongServiceStubControl.unbound(impl)); |
| 1113 |
| 1114 static PingPongServiceStub newFromEndpoint( |
| 1115 core.MojoMessagePipeEndpoint endpoint) { |
| 1116 assert(endpoint.setDescription("For PingPongServiceStub")); |
| 1117 return new PingPongServiceStub.fromEndpoint(endpoint); |
| 1118 } |
| 1119 |
| 1120 static service_describer.ServiceDescription get serviceDescription => |
| 1121 _PingPongServiceStubControl.serviceDescription; |
| 1122 |
| 1123 |
| 1124 void setClient(Object client) { |
| 1125 return impl.setClient(client); |
| 1126 } |
| 1127 void ping(int pingValue) { |
| 1128 return impl.ping(pingValue); |
| 1129 } |
| 1130 dynamic pingTargetUrl(String url,int count,[Function responseFactory = null])
{ |
| 1131 return impl.pingTargetUrl(url,count,responseFactory); |
| 1132 } |
| 1133 dynamic pingTargetService(Object service,int count,[Function responseFactory =
null]) { |
| 1134 return impl.pingTargetService(service,count,responseFactory); |
| 1135 } |
| 1136 void getPingPongService(Object service) { |
| 1137 return impl.getPingPongService(service); |
| 1138 } |
| 1139 void getPingPongServiceDelayed(Object service) { |
| 1140 return impl.getPingPongServiceDelayed(service); |
| 1141 } |
| 1142 void quit() { |
| 1143 return impl.quit(); |
| 1144 } |
| 1145 } |
| 1146 |
1105 const int _pingPongClientMethodPongName = 0; | 1147 const int _pingPongClientMethodPongName = 0; |
1106 | 1148 |
1107 class _PingPongClientServiceDescription implements service_describer.ServiceDesc
ription { | 1149 class _PingPongClientServiceDescription implements service_describer.ServiceDesc
ription { |
1108 dynamic getTopLevelInterface([Function responseFactory]) => | 1150 dynamic getTopLevelInterface([Function responseFactory]) => |
1109 responseFactory(null); | 1151 responseFactory(null); |
1110 | 1152 |
1111 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1153 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
1112 responseFactory(null); | 1154 responseFactory(null); |
1113 | 1155 |
1114 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1156 dynamic getAllTypeDefinitions([Function responseFactory]) => |
1115 responseFactory(null); | 1157 responseFactory(null); |
1116 } | 1158 } |
1117 | 1159 |
1118 abstract class PingPongClient { | 1160 abstract class PingPongClient { |
1119 static const String serviceName = null; | 1161 static const String serviceName = null; |
1120 void pong(int pongValue); | 1162 void pong(int pongValue); |
1121 } | 1163 } |
1122 | 1164 |
1123 | 1165 class _PingPongClientProxyControl |
1124 class _PingPongClientProxyControl extends bindings.ProxyMessageHandler | 1166 extends bindings.ProxyMessageHandler |
1125 implements bindings.ProxyControl { | 1167 implements bindings.ProxyControl { |
1126 _PingPongClientProxyControl.fromEndpoint( | 1168 _PingPongClientProxyControl.fromEndpoint( |
1127 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1169 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1128 | 1170 |
1129 _PingPongClientProxyControl.fromHandle( | 1171 _PingPongClientProxyControl.fromHandle( |
1130 core.MojoHandle handle) : super.fromHandle(handle); | 1172 core.MojoHandle handle) : super.fromHandle(handle); |
1131 | 1173 |
1132 _PingPongClientProxyControl.unbound() : super.unbound(); | 1174 _PingPongClientProxyControl.unbound() : super.unbound(); |
1133 | 1175 |
1134 service_describer.ServiceDescription get serviceDescription => | 1176 service_describer.ServiceDescription get serviceDescription => |
1135 new _PingPongClientServiceDescription(); | 1177 new _PingPongClientServiceDescription(); |
1136 | 1178 |
1137 String get serviceName => PingPongClient.serviceName; | 1179 String get serviceName => PingPongClient.serviceName; |
1138 | 1180 |
1139 @override | |
1140 void handleResponse(bindings.ServiceMessage message) { | 1181 void handleResponse(bindings.ServiceMessage message) { |
1141 switch (message.header.type) { | 1182 switch (message.header.type) { |
1142 default: | 1183 default: |
1143 proxyError("Unexpected message type: ${message.header.type}"); | 1184 proxyError("Unexpected message type: ${message.header.type}"); |
1144 close(immediate: true); | 1185 close(immediate: true); |
1145 break; | 1186 break; |
1146 } | 1187 } |
1147 } | 1188 } |
1148 | 1189 |
1149 @override | 1190 @override |
1150 String toString() { | 1191 String toString() { |
1151 var superString = super.toString(); | 1192 var superString = super.toString(); |
1152 return "_PingPongClientProxyControl($superString)"; | 1193 return "_PingPongClientProxyControl($superString)"; |
1153 } | 1194 } |
1154 } | 1195 } |
1155 | 1196 |
1156 | 1197 class PingPongClientProxy |
1157 class PingPongClientProxy extends bindings.Proxy | 1198 extends bindings.Proxy |
1158 implements PingPongClient { | 1199 implements PingPongClient { |
1159 PingPongClientProxy.fromEndpoint( | 1200 PingPongClientProxy.fromEndpoint( |
1160 core.MojoMessagePipeEndpoint endpoint) | 1201 core.MojoMessagePipeEndpoint endpoint) |
1161 : super(new _PingPongClientProxyControl.fromEndpoint(endpoint)); | 1202 : super(new _PingPongClientProxyControl.fromEndpoint(endpoint)); |
1162 | 1203 |
1163 PingPongClientProxy.fromHandle(core.MojoHandle handle) | 1204 PingPongClientProxy.fromHandle(core.MojoHandle handle) |
1164 : super(new _PingPongClientProxyControl.fromHandle(handle)); | 1205 : super(new _PingPongClientProxyControl.fromHandle(handle)); |
1165 | 1206 |
1166 PingPongClientProxy.unbound() | 1207 PingPongClientProxy.unbound() |
1167 : super(new _PingPongClientProxyControl.unbound()); | 1208 : super(new _PingPongClientProxyControl.unbound()); |
1168 | 1209 |
(...skipping 16 matching lines...) Expand all Loading... |
1185 ctrl.proxyError("The Proxy is closed."); | 1226 ctrl.proxyError("The Proxy is closed."); |
1186 return; | 1227 return; |
1187 } | 1228 } |
1188 var params = new _PingPongClientPongParams(); | 1229 var params = new _PingPongClientPongParams(); |
1189 params.pongValue = pongValue; | 1230 params.pongValue = pongValue; |
1190 ctrl.sendMessage(params, | 1231 ctrl.sendMessage(params, |
1191 _pingPongClientMethodPongName); | 1232 _pingPongClientMethodPongName); |
1192 } | 1233 } |
1193 } | 1234 } |
1194 | 1235 |
1195 | 1236 class _PingPongClientStubControl |
1196 class PingPongClientStub extends bindings.Stub { | 1237 extends bindings.StubMessageHandler |
| 1238 implements bindings.StubControl<PingPongClient> { |
1197 PingPongClient _impl; | 1239 PingPongClient _impl; |
1198 | 1240 |
1199 PingPongClientStub.fromEndpoint( | 1241 _PingPongClientStubControl.fromEndpoint( |
1200 core.MojoMessagePipeEndpoint endpoint, [PingPongClient impl]) | 1242 core.MojoMessagePipeEndpoint endpoint, [PingPongClient impl]) |
1201 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 1243 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
1202 _impl = impl; | 1244 _impl = impl; |
1203 } | 1245 } |
1204 | 1246 |
1205 PingPongClientStub.fromHandle( | 1247 _PingPongClientStubControl.fromHandle( |
1206 core.MojoHandle handle, [PingPongClient impl]) | 1248 core.MojoHandle handle, [PingPongClient impl]) |
1207 : super.fromHandle(handle, autoBegin: impl != null) { | 1249 : super.fromHandle(handle, autoBegin: impl != null) { |
1208 _impl = impl; | 1250 _impl = impl; |
1209 } | 1251 } |
1210 | 1252 |
1211 PingPongClientStub.unbound([this._impl]) : super.unbound(); | 1253 _PingPongClientStubControl.unbound([this._impl]) : super.unbound(); |
1212 | |
1213 static PingPongClientStub newFromEndpoint( | |
1214 core.MojoMessagePipeEndpoint endpoint) { | |
1215 assert(endpoint.setDescription("For PingPongClientStub")); | |
1216 return new PingPongClientStub.fromEndpoint(endpoint); | |
1217 } | |
1218 | 1254 |
1219 | 1255 |
1220 | 1256 |
1221 dynamic handleMessage(bindings.ServiceMessage message) { | 1257 dynamic handleMessage(bindings.ServiceMessage message) { |
1222 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 1258 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
1223 return bindings.ControlMessageHandler.handleMessage(this, | 1259 return bindings.ControlMessageHandler.handleMessage(this, |
1224 0, | 1260 0, |
1225 message); | 1261 message); |
1226 } | 1262 } |
1227 if (_impl == null) { | 1263 if (_impl == null) { |
(...skipping 24 matching lines...) Expand all Loading... |
1252 } | 1288 } |
1253 | 1289 |
1254 @override | 1290 @override |
1255 void bind(core.MojoMessagePipeEndpoint endpoint) { | 1291 void bind(core.MojoMessagePipeEndpoint endpoint) { |
1256 super.bind(endpoint); | 1292 super.bind(endpoint); |
1257 if (!isOpen && (_impl != null)) { | 1293 if (!isOpen && (_impl != null)) { |
1258 beginHandlingEvents(); | 1294 beginHandlingEvents(); |
1259 } | 1295 } |
1260 } | 1296 } |
1261 | 1297 |
| 1298 @override |
1262 String toString() { | 1299 String toString() { |
1263 var superString = super.toString(); | 1300 var superString = super.toString(); |
1264 return "PingPongClientStub($superString)"; | 1301 return "_PingPongClientStubControl($superString)"; |
1265 } | 1302 } |
1266 | 1303 |
1267 int get version => 0; | 1304 int get version => 0; |
1268 | 1305 |
1269 static service_describer.ServiceDescription _cachedServiceDescription; | 1306 static service_describer.ServiceDescription _cachedServiceDescription; |
1270 static service_describer.ServiceDescription get serviceDescription { | 1307 static service_describer.ServiceDescription get serviceDescription { |
1271 if (_cachedServiceDescription == null) { | 1308 if (_cachedServiceDescription == null) { |
1272 _cachedServiceDescription = new _PingPongClientServiceDescription(); | 1309 _cachedServiceDescription = new _PingPongClientServiceDescription(); |
1273 } | 1310 } |
1274 return _cachedServiceDescription; | 1311 return _cachedServiceDescription; |
1275 } | 1312 } |
1276 } | 1313 } |
1277 | 1314 |
| 1315 class PingPongClientStub |
| 1316 extends bindings.Stub<PingPongClient> |
| 1317 implements PingPongClient { |
| 1318 PingPongClientStub.fromEndpoint( |
| 1319 core.MojoMessagePipeEndpoint endpoint, [PingPongClient impl]) |
| 1320 : super(new _PingPongClientStubControl.fromEndpoint(endpoint, impl)); |
| 1321 |
| 1322 PingPongClientStub.fromHandle( |
| 1323 core.MojoHandle handle, [PingPongClient impl]) |
| 1324 : super(new _PingPongClientStubControl.fromHandle(handle, impl)); |
| 1325 |
| 1326 PingPongClientStub.unbound([PingPongClient impl]) |
| 1327 : super(new _PingPongClientStubControl.unbound(impl)); |
| 1328 |
| 1329 static PingPongClientStub newFromEndpoint( |
| 1330 core.MojoMessagePipeEndpoint endpoint) { |
| 1331 assert(endpoint.setDescription("For PingPongClientStub")); |
| 1332 return new PingPongClientStub.fromEndpoint(endpoint); |
| 1333 } |
| 1334 |
| 1335 static service_describer.ServiceDescription get serviceDescription => |
| 1336 _PingPongClientStubControl.serviceDescription; |
| 1337 |
| 1338 |
| 1339 void pong(int pongValue) { |
| 1340 return impl.pong(pongValue); |
| 1341 } |
| 1342 } |
| 1343 |
1278 | 1344 |
1279 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? | 1345 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? |
1280 _initRuntimeTypeInfo(); | 1346 _initRuntimeTypeInfo(); |
1281 | 1347 |
1282 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | 1348 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
1283 return getRuntimeTypeInfo().typeMap; | 1349 return getRuntimeTypeInfo().typeMap; |
1284 } | 1350 } |
1285 | 1351 |
1286 var _runtimeTypeInfo; | 1352 var _runtimeTypeInfo; |
1287 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { | 1353 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
1288 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of | 1354 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
1289 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this | 1355 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
1290 // file. The string contains the base64 encoding of the gzip-compressed bytes. | 1356 // file. The string contains the base64 encoding of the gzip-compressed bytes. |
1291 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xZz1PTThRPUgr9wpdfarX8nILo4AHCj
B4YTswIIzM6TlU8cGJiWUswbWqSMuqJI38CR4/+CR79M/wzOHrTXfoWt5vdNumEduN0Zx5ht033vc++9
z5vdwtas03B8xye/Pgm09ex5KC/gCWPJUB+sLVVsmuVklurvEHeqV1Ggu8/gHf2D0q7h893D7bIi+vh9
/j564xeBjO+Ac8VLPPS333q2KgWxJl/lZknw+lD+j+Gmv1VGC9qrW1Kb+1vc59vcOO/oZU0cbuLZQILb
9EcHrsN+AvMDeG4hGUUywmWd1jMhu+Zjlu2HLPiuhUHmcduFZlfPMusuieu6Xvl5j9HlheYVr1OJvJN8
vcQ93zTrgXIe2+VkW/W8fR1PP2h34RxnbxYFfsT7f8P/qFJ/IvH91KCjwxfjcGX/T2+ET3IkhL4RPoug
z/0Grcihxe1v2BEt5u0DYndd8B2Yveahz42sIIi+2nrtf28P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beH+wqNj9yaWW7P0JsVvF+5Oc1rm+Y7/3JwAA///Y0/jDWCcAA
A=="; |
1292 | 1358 |
1293 // Deserialize RuntimeTypeInfo | 1359 // Deserialize RuntimeTypeInfo |
1294 var bytes = BASE64.decode(serializedRuntimeTypeInfo); | 1360 var bytes = BASE64.decode(serializedRuntimeTypeInfo); |
1295 var unzippedBytes = new ZLibDecoder().convert(bytes); | 1361 var unzippedBytes = new ZLibDecoder().convert(bytes); |
1296 var bdata = new ByteData.view(unzippedBytes.buffer); | 1362 var bdata = new ByteData.view(unzippedBytes.buffer); |
1297 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); | 1363 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); |
1298 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); | 1364 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
1299 return _runtimeTypeInfo; | 1365 return _runtimeTypeInfo; |
1300 } | 1366 } |
OLD | NEW |