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 dart_to_cpp_mojom; | 5 library dart_to_cpp_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 875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 } | 886 } |
887 | 887 |
888 abstract class CppSide { | 888 abstract class CppSide { |
889 static const String serviceName = null; | 889 static const String serviceName = null; |
890 void startTest(); | 890 void startTest(); |
891 void testFinished(); | 891 void testFinished(); |
892 void pingResponse(); | 892 void pingResponse(); |
893 void echoResponse(EchoArgsList list); | 893 void echoResponse(EchoArgsList list); |
894 } | 894 } |
895 | 895 |
896 | 896 class _CppSideProxyControl |
897 class _CppSideProxyControl extends bindings.ProxyMessageHandler | 897 extends bindings.ProxyMessageHandler |
898 implements bindings.ProxyControl { | 898 implements bindings.ProxyControl { |
899 _CppSideProxyControl.fromEndpoint( | 899 _CppSideProxyControl.fromEndpoint( |
900 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 900 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
901 | 901 |
902 _CppSideProxyControl.fromHandle( | 902 _CppSideProxyControl.fromHandle( |
903 core.MojoHandle handle) : super.fromHandle(handle); | 903 core.MojoHandle handle) : super.fromHandle(handle); |
904 | 904 |
905 _CppSideProxyControl.unbound() : super.unbound(); | 905 _CppSideProxyControl.unbound() : super.unbound(); |
906 | 906 |
907 service_describer.ServiceDescription get serviceDescription => | 907 service_describer.ServiceDescription get serviceDescription => |
908 new _CppSideServiceDescription(); | 908 new _CppSideServiceDescription(); |
909 | 909 |
910 String get serviceName => CppSide.serviceName; | 910 String get serviceName => CppSide.serviceName; |
911 | 911 |
912 @override | |
913 void handleResponse(bindings.ServiceMessage message) { | 912 void handleResponse(bindings.ServiceMessage message) { |
914 switch (message.header.type) { | 913 switch (message.header.type) { |
915 default: | 914 default: |
916 proxyError("Unexpected message type: ${message.header.type}"); | 915 proxyError("Unexpected message type: ${message.header.type}"); |
917 close(immediate: true); | 916 close(immediate: true); |
918 break; | 917 break; |
919 } | 918 } |
920 } | 919 } |
921 | 920 |
922 @override | 921 @override |
923 String toString() { | 922 String toString() { |
924 var superString = super.toString(); | 923 var superString = super.toString(); |
925 return "_CppSideProxyControl($superString)"; | 924 return "_CppSideProxyControl($superString)"; |
926 } | 925 } |
927 } | 926 } |
928 | 927 |
929 | 928 class CppSideProxy |
930 class CppSideProxy extends bindings.Proxy | 929 extends bindings.Proxy |
931 implements CppSide { | 930 implements CppSide { |
932 CppSideProxy.fromEndpoint( | 931 CppSideProxy.fromEndpoint( |
933 core.MojoMessagePipeEndpoint endpoint) | 932 core.MojoMessagePipeEndpoint endpoint) |
934 : super(new _CppSideProxyControl.fromEndpoint(endpoint)); | 933 : super(new _CppSideProxyControl.fromEndpoint(endpoint)); |
935 | 934 |
936 CppSideProxy.fromHandle(core.MojoHandle handle) | 935 CppSideProxy.fromHandle(core.MojoHandle handle) |
937 : super(new _CppSideProxyControl.fromHandle(handle)); | 936 : super(new _CppSideProxyControl.fromHandle(handle)); |
938 | 937 |
939 CppSideProxy.unbound() | 938 CppSideProxy.unbound() |
940 : super(new _CppSideProxyControl.unbound()); | 939 : super(new _CppSideProxyControl.unbound()); |
941 | 940 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 ctrl.proxyError("The Proxy is closed."); | 984 ctrl.proxyError("The Proxy is closed."); |
986 return; | 985 return; |
987 } | 986 } |
988 var params = new _CppSideEchoResponseParams(); | 987 var params = new _CppSideEchoResponseParams(); |
989 params.list = list; | 988 params.list = list; |
990 ctrl.sendMessage(params, | 989 ctrl.sendMessage(params, |
991 _cppSideMethodEchoResponseName); | 990 _cppSideMethodEchoResponseName); |
992 } | 991 } |
993 } | 992 } |
994 | 993 |
995 | 994 class _CppSideStubControl |
996 class CppSideStub extends bindings.Stub { | 995 extends bindings.StubMessageHandler |
| 996 implements bindings.StubControl<CppSide> { |
997 CppSide _impl; | 997 CppSide _impl; |
998 | 998 |
999 CppSideStub.fromEndpoint( | 999 _CppSideStubControl.fromEndpoint( |
1000 core.MojoMessagePipeEndpoint endpoint, [CppSide impl]) | 1000 core.MojoMessagePipeEndpoint endpoint, [CppSide impl]) |
1001 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 1001 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
1002 _impl = impl; | 1002 _impl = impl; |
1003 } | 1003 } |
1004 | 1004 |
1005 CppSideStub.fromHandle( | 1005 _CppSideStubControl.fromHandle( |
1006 core.MojoHandle handle, [CppSide impl]) | 1006 core.MojoHandle handle, [CppSide impl]) |
1007 : super.fromHandle(handle, autoBegin: impl != null) { | 1007 : super.fromHandle(handle, autoBegin: impl != null) { |
1008 _impl = impl; | 1008 _impl = impl; |
1009 } | 1009 } |
1010 | 1010 |
1011 CppSideStub.unbound([this._impl]) : super.unbound(); | 1011 _CppSideStubControl.unbound([this._impl]) : super.unbound(); |
1012 | |
1013 static CppSideStub newFromEndpoint( | |
1014 core.MojoMessagePipeEndpoint endpoint) { | |
1015 assert(endpoint.setDescription("For CppSideStub")); | |
1016 return new CppSideStub.fromEndpoint(endpoint); | |
1017 } | |
1018 | 1012 |
1019 | 1013 |
1020 | 1014 |
1021 dynamic handleMessage(bindings.ServiceMessage message) { | 1015 dynamic handleMessage(bindings.ServiceMessage message) { |
1022 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 1016 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
1023 return bindings.ControlMessageHandler.handleMessage(this, | 1017 return bindings.ControlMessageHandler.handleMessage(this, |
1024 0, | 1018 0, |
1025 message); | 1019 message); |
1026 } | 1020 } |
1027 if (_impl == null) { | 1021 if (_impl == null) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 } | 1055 } |
1062 | 1056 |
1063 @override | 1057 @override |
1064 void bind(core.MojoMessagePipeEndpoint endpoint) { | 1058 void bind(core.MojoMessagePipeEndpoint endpoint) { |
1065 super.bind(endpoint); | 1059 super.bind(endpoint); |
1066 if (!isOpen && (_impl != null)) { | 1060 if (!isOpen && (_impl != null)) { |
1067 beginHandlingEvents(); | 1061 beginHandlingEvents(); |
1068 } | 1062 } |
1069 } | 1063 } |
1070 | 1064 |
| 1065 @override |
1071 String toString() { | 1066 String toString() { |
1072 var superString = super.toString(); | 1067 var superString = super.toString(); |
1073 return "CppSideStub($superString)"; | 1068 return "_CppSideStubControl($superString)"; |
1074 } | 1069 } |
1075 | 1070 |
1076 int get version => 0; | 1071 int get version => 0; |
1077 | 1072 |
1078 static service_describer.ServiceDescription _cachedServiceDescription; | 1073 static service_describer.ServiceDescription _cachedServiceDescription; |
1079 static service_describer.ServiceDescription get serviceDescription { | 1074 static service_describer.ServiceDescription get serviceDescription { |
1080 if (_cachedServiceDescription == null) { | 1075 if (_cachedServiceDescription == null) { |
1081 _cachedServiceDescription = new _CppSideServiceDescription(); | 1076 _cachedServiceDescription = new _CppSideServiceDescription(); |
1082 } | 1077 } |
1083 return _cachedServiceDescription; | 1078 return _cachedServiceDescription; |
1084 } | 1079 } |
1085 } | 1080 } |
1086 | 1081 |
| 1082 class CppSideStub |
| 1083 extends bindings.Stub<CppSide> |
| 1084 implements CppSide { |
| 1085 CppSideStub.fromEndpoint( |
| 1086 core.MojoMessagePipeEndpoint endpoint, [CppSide impl]) |
| 1087 : super(new _CppSideStubControl.fromEndpoint(endpoint, impl)); |
| 1088 |
| 1089 CppSideStub.fromHandle( |
| 1090 core.MojoHandle handle, [CppSide impl]) |
| 1091 : super(new _CppSideStubControl.fromHandle(handle, impl)); |
| 1092 |
| 1093 CppSideStub.unbound([CppSide impl]) |
| 1094 : super(new _CppSideStubControl.unbound(impl)); |
| 1095 |
| 1096 static CppSideStub newFromEndpoint( |
| 1097 core.MojoMessagePipeEndpoint endpoint) { |
| 1098 assert(endpoint.setDescription("For CppSideStub")); |
| 1099 return new CppSideStub.fromEndpoint(endpoint); |
| 1100 } |
| 1101 |
| 1102 static service_describer.ServiceDescription get serviceDescription => |
| 1103 _CppSideStubControl.serviceDescription; |
| 1104 |
| 1105 |
| 1106 void startTest() { |
| 1107 return impl.startTest(); |
| 1108 } |
| 1109 void testFinished() { |
| 1110 return impl.testFinished(); |
| 1111 } |
| 1112 void pingResponse() { |
| 1113 return impl.pingResponse(); |
| 1114 } |
| 1115 void echoResponse(EchoArgsList list) { |
| 1116 return impl.echoResponse(list); |
| 1117 } |
| 1118 } |
| 1119 |
1087 const int _dartSideMethodSetClientName = 0; | 1120 const int _dartSideMethodSetClientName = 0; |
1088 const int _dartSideMethodPingName = 1; | 1121 const int _dartSideMethodPingName = 1; |
1089 const int _dartSideMethodEchoName = 2; | 1122 const int _dartSideMethodEchoName = 2; |
1090 | 1123 |
1091 class _DartSideServiceDescription implements service_describer.ServiceDescriptio
n { | 1124 class _DartSideServiceDescription implements service_describer.ServiceDescriptio
n { |
1092 dynamic getTopLevelInterface([Function responseFactory]) => | 1125 dynamic getTopLevelInterface([Function responseFactory]) => |
1093 responseFactory(null); | 1126 responseFactory(null); |
1094 | 1127 |
1095 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1128 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
1096 responseFactory(null); | 1129 responseFactory(null); |
1097 | 1130 |
1098 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1131 dynamic getAllTypeDefinitions([Function responseFactory]) => |
1099 responseFactory(null); | 1132 responseFactory(null); |
1100 } | 1133 } |
1101 | 1134 |
1102 abstract class DartSide { | 1135 abstract class DartSide { |
1103 static const String serviceName = null; | 1136 static const String serviceName = null; |
1104 void setClient(Object cppSide); | 1137 void setClient(Object cppSide); |
1105 void ping(); | 1138 void ping(); |
1106 void echo(int numIterations, EchoArgs arg); | 1139 void echo(int numIterations, EchoArgs arg); |
1107 } | 1140 } |
1108 | 1141 |
1109 | 1142 class _DartSideProxyControl |
1110 class _DartSideProxyControl extends bindings.ProxyMessageHandler | 1143 extends bindings.ProxyMessageHandler |
1111 implements bindings.ProxyControl { | 1144 implements bindings.ProxyControl { |
1112 _DartSideProxyControl.fromEndpoint( | 1145 _DartSideProxyControl.fromEndpoint( |
1113 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1146 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
1114 | 1147 |
1115 _DartSideProxyControl.fromHandle( | 1148 _DartSideProxyControl.fromHandle( |
1116 core.MojoHandle handle) : super.fromHandle(handle); | 1149 core.MojoHandle handle) : super.fromHandle(handle); |
1117 | 1150 |
1118 _DartSideProxyControl.unbound() : super.unbound(); | 1151 _DartSideProxyControl.unbound() : super.unbound(); |
1119 | 1152 |
1120 service_describer.ServiceDescription get serviceDescription => | 1153 service_describer.ServiceDescription get serviceDescription => |
1121 new _DartSideServiceDescription(); | 1154 new _DartSideServiceDescription(); |
1122 | 1155 |
1123 String get serviceName => DartSide.serviceName; | 1156 String get serviceName => DartSide.serviceName; |
1124 | 1157 |
1125 @override | |
1126 void handleResponse(bindings.ServiceMessage message) { | 1158 void handleResponse(bindings.ServiceMessage message) { |
1127 switch (message.header.type) { | 1159 switch (message.header.type) { |
1128 default: | 1160 default: |
1129 proxyError("Unexpected message type: ${message.header.type}"); | 1161 proxyError("Unexpected message type: ${message.header.type}"); |
1130 close(immediate: true); | 1162 close(immediate: true); |
1131 break; | 1163 break; |
1132 } | 1164 } |
1133 } | 1165 } |
1134 | 1166 |
1135 @override | 1167 @override |
1136 String toString() { | 1168 String toString() { |
1137 var superString = super.toString(); | 1169 var superString = super.toString(); |
1138 return "_DartSideProxyControl($superString)"; | 1170 return "_DartSideProxyControl($superString)"; |
1139 } | 1171 } |
1140 } | 1172 } |
1141 | 1173 |
1142 | 1174 class DartSideProxy |
1143 class DartSideProxy extends bindings.Proxy | 1175 extends bindings.Proxy |
1144 implements DartSide { | 1176 implements DartSide { |
1145 DartSideProxy.fromEndpoint( | 1177 DartSideProxy.fromEndpoint( |
1146 core.MojoMessagePipeEndpoint endpoint) | 1178 core.MojoMessagePipeEndpoint endpoint) |
1147 : super(new _DartSideProxyControl.fromEndpoint(endpoint)); | 1179 : super(new _DartSideProxyControl.fromEndpoint(endpoint)); |
1148 | 1180 |
1149 DartSideProxy.fromHandle(core.MojoHandle handle) | 1181 DartSideProxy.fromHandle(core.MojoHandle handle) |
1150 : super(new _DartSideProxyControl.fromHandle(handle)); | 1182 : super(new _DartSideProxyControl.fromHandle(handle)); |
1151 | 1183 |
1152 DartSideProxy.unbound() | 1184 DartSideProxy.unbound() |
1153 : super(new _DartSideProxyControl.unbound()); | 1185 : super(new _DartSideProxyControl.unbound()); |
1154 | 1186 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1191 return; | 1223 return; |
1192 } | 1224 } |
1193 var params = new _DartSideEchoParams(); | 1225 var params = new _DartSideEchoParams(); |
1194 params.numIterations = numIterations; | 1226 params.numIterations = numIterations; |
1195 params.arg = arg; | 1227 params.arg = arg; |
1196 ctrl.sendMessage(params, | 1228 ctrl.sendMessage(params, |
1197 _dartSideMethodEchoName); | 1229 _dartSideMethodEchoName); |
1198 } | 1230 } |
1199 } | 1231 } |
1200 | 1232 |
1201 | 1233 class _DartSideStubControl |
1202 class DartSideStub extends bindings.Stub { | 1234 extends bindings.StubMessageHandler |
| 1235 implements bindings.StubControl<DartSide> { |
1203 DartSide _impl; | 1236 DartSide _impl; |
1204 | 1237 |
1205 DartSideStub.fromEndpoint( | 1238 _DartSideStubControl.fromEndpoint( |
1206 core.MojoMessagePipeEndpoint endpoint, [DartSide impl]) | 1239 core.MojoMessagePipeEndpoint endpoint, [DartSide impl]) |
1207 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 1240 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
1208 _impl = impl; | 1241 _impl = impl; |
1209 } | 1242 } |
1210 | 1243 |
1211 DartSideStub.fromHandle( | 1244 _DartSideStubControl.fromHandle( |
1212 core.MojoHandle handle, [DartSide impl]) | 1245 core.MojoHandle handle, [DartSide impl]) |
1213 : super.fromHandle(handle, autoBegin: impl != null) { | 1246 : super.fromHandle(handle, autoBegin: impl != null) { |
1214 _impl = impl; | 1247 _impl = impl; |
1215 } | 1248 } |
1216 | 1249 |
1217 DartSideStub.unbound([this._impl]) : super.unbound(); | 1250 _DartSideStubControl.unbound([this._impl]) : super.unbound(); |
1218 | |
1219 static DartSideStub newFromEndpoint( | |
1220 core.MojoMessagePipeEndpoint endpoint) { | |
1221 assert(endpoint.setDescription("For DartSideStub")); | |
1222 return new DartSideStub.fromEndpoint(endpoint); | |
1223 } | |
1224 | 1251 |
1225 | 1252 |
1226 | 1253 |
1227 dynamic handleMessage(bindings.ServiceMessage message) { | 1254 dynamic handleMessage(bindings.ServiceMessage message) { |
1228 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 1255 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
1229 return bindings.ControlMessageHandler.handleMessage(this, | 1256 return bindings.ControlMessageHandler.handleMessage(this, |
1230 0, | 1257 0, |
1231 message); | 1258 message); |
1232 } | 1259 } |
1233 if (_impl == null) { | 1260 if (_impl == null) { |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1266 } | 1293 } |
1267 | 1294 |
1268 @override | 1295 @override |
1269 void bind(core.MojoMessagePipeEndpoint endpoint) { | 1296 void bind(core.MojoMessagePipeEndpoint endpoint) { |
1270 super.bind(endpoint); | 1297 super.bind(endpoint); |
1271 if (!isOpen && (_impl != null)) { | 1298 if (!isOpen && (_impl != null)) { |
1272 beginHandlingEvents(); | 1299 beginHandlingEvents(); |
1273 } | 1300 } |
1274 } | 1301 } |
1275 | 1302 |
| 1303 @override |
1276 String toString() { | 1304 String toString() { |
1277 var superString = super.toString(); | 1305 var superString = super.toString(); |
1278 return "DartSideStub($superString)"; | 1306 return "_DartSideStubControl($superString)"; |
1279 } | 1307 } |
1280 | 1308 |
1281 int get version => 0; | 1309 int get version => 0; |
1282 | 1310 |
1283 static service_describer.ServiceDescription _cachedServiceDescription; | 1311 static service_describer.ServiceDescription _cachedServiceDescription; |
1284 static service_describer.ServiceDescription get serviceDescription { | 1312 static service_describer.ServiceDescription get serviceDescription { |
1285 if (_cachedServiceDescription == null) { | 1313 if (_cachedServiceDescription == null) { |
1286 _cachedServiceDescription = new _DartSideServiceDescription(); | 1314 _cachedServiceDescription = new _DartSideServiceDescription(); |
1287 } | 1315 } |
1288 return _cachedServiceDescription; | 1316 return _cachedServiceDescription; |
1289 } | 1317 } |
1290 } | 1318 } |
1291 | 1319 |
| 1320 class DartSideStub |
| 1321 extends bindings.Stub<DartSide> |
| 1322 implements DartSide { |
| 1323 DartSideStub.fromEndpoint( |
| 1324 core.MojoMessagePipeEndpoint endpoint, [DartSide impl]) |
| 1325 : super(new _DartSideStubControl.fromEndpoint(endpoint, impl)); |
| 1326 |
| 1327 DartSideStub.fromHandle( |
| 1328 core.MojoHandle handle, [DartSide impl]) |
| 1329 : super(new _DartSideStubControl.fromHandle(handle, impl)); |
| 1330 |
| 1331 DartSideStub.unbound([DartSide impl]) |
| 1332 : super(new _DartSideStubControl.unbound(impl)); |
| 1333 |
| 1334 static DartSideStub newFromEndpoint( |
| 1335 core.MojoMessagePipeEndpoint endpoint) { |
| 1336 assert(endpoint.setDescription("For DartSideStub")); |
| 1337 return new DartSideStub.fromEndpoint(endpoint); |
| 1338 } |
| 1339 |
| 1340 static service_describer.ServiceDescription get serviceDescription => |
| 1341 _DartSideStubControl.serviceDescription; |
| 1342 |
| 1343 |
| 1344 void setClient(Object cppSide) { |
| 1345 return impl.setClient(cppSide); |
| 1346 } |
| 1347 void ping() { |
| 1348 return impl.ping(); |
| 1349 } |
| 1350 void echo(int numIterations, EchoArgs arg) { |
| 1351 return impl.echo(numIterations, arg); |
| 1352 } |
| 1353 } |
| 1354 |
1292 | 1355 |
1293 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? | 1356 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? |
1294 _initRuntimeTypeInfo(); | 1357 _initRuntimeTypeInfo(); |
1295 | 1358 |
1296 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | 1359 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
1297 return getRuntimeTypeInfo().typeMap; | 1360 return getRuntimeTypeInfo().typeMap; |
1298 } | 1361 } |
1299 | 1362 |
1300 var _runtimeTypeInfo; | 1363 var _runtimeTypeInfo; |
1301 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { | 1364 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
1302 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of | 1365 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
1303 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this | 1366 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
1304 // file. The string contains the base64 encoding of the gzip-compressed bytes. | 1367 // file. The string contains the base64 encoding of the gzip-compressed bytes. |
1305 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/9yaPWzbRhTHSUqyJVmy5a9EbdNUBRLUL
WrT+UAgdFKRunDRDEYTFPGkMNJFYiGRKkkVaaeMHTtmzNgxY8eOGTtmTLeMWQJkc++qR/l8vjudCIU6i
MDD6cxLeO/H/717d8eqMboqUO5Dyf49LvNMybZ7CeUOtiy2GtQbUD6A8gmUV7Bdwnbv+Oig+f3B8VdtJ
4iakd9sDQZ7tweDu24bk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Azt53IGUPi6I18/
3t5TpysCfuyJNZ2BfuyeeD4bsJ5SoPZlz1SOE+hPwmpwTNFn42wPC+nvI/Bnrc8MfX6fshDj7nnUp/A7
3nEuff5/dC8z3Ni7m6E+qLvcUoacE/rPOe/AAAA//9qGb5tyDIAAA=="; |
1306 | 1369 |
1307 // Deserialize RuntimeTypeInfo | 1370 // Deserialize RuntimeTypeInfo |
1308 var bytes = BASE64.decode(serializedRuntimeTypeInfo); | 1371 var bytes = BASE64.decode(serializedRuntimeTypeInfo); |
1309 var unzippedBytes = new ZLibDecoder().convert(bytes); | 1372 var unzippedBytes = new ZLibDecoder().convert(bytes); |
1310 var bdata = new ByteData.view(unzippedBytes.buffer); | 1373 var bdata = new ByteData.view(unzippedBytes.buffer); |
1311 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); | 1374 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); |
1312 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); | 1375 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
1313 return _runtimeTypeInfo; | 1376 return _runtimeTypeInfo; |
1314 } | 1377 } |
OLD | NEW |