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 test_unions_mojom; | 5 library test_unions_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 2953 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2964 dynamic getAllTypeDefinitions([Function responseFactory]) => | 2964 dynamic getAllTypeDefinitions([Function responseFactory]) => |
2965 responseFactory(null); | 2965 responseFactory(null); |
2966 } | 2966 } |
2967 | 2967 |
2968 abstract class SmallCache { | 2968 abstract class SmallCache { |
2969 static const String serviceName = null; | 2969 static const String serviceName = null; |
2970 void setIntValue(int intValue); | 2970 void setIntValue(int intValue); |
2971 dynamic getIntValue([Function responseFactory = null]); | 2971 dynamic getIntValue([Function responseFactory = null]); |
2972 } | 2972 } |
2973 | 2973 |
2974 | 2974 class _SmallCacheProxyControl |
2975 class _SmallCacheProxyControl extends bindings.ProxyMessageHandler | 2975 extends bindings.ProxyMessageHandler |
2976 implements bindings.ProxyControl { | 2976 implements bindings.ProxyControl { |
2977 _SmallCacheProxyControl.fromEndpoint( | 2977 _SmallCacheProxyControl.fromEndpoint( |
2978 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 2978 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
2979 | 2979 |
2980 _SmallCacheProxyControl.fromHandle( | 2980 _SmallCacheProxyControl.fromHandle( |
2981 core.MojoHandle handle) : super.fromHandle(handle); | 2981 core.MojoHandle handle) : super.fromHandle(handle); |
2982 | 2982 |
2983 _SmallCacheProxyControl.unbound() : super.unbound(); | 2983 _SmallCacheProxyControl.unbound() : super.unbound(); |
2984 | 2984 |
2985 service_describer.ServiceDescription get serviceDescription => | 2985 service_describer.ServiceDescription get serviceDescription => |
2986 new _SmallCacheServiceDescription(); | 2986 new _SmallCacheServiceDescription(); |
2987 | 2987 |
2988 String get serviceName => SmallCache.serviceName; | 2988 String get serviceName => SmallCache.serviceName; |
2989 | 2989 |
2990 @override | |
2991 void handleResponse(bindings.ServiceMessage message) { | 2990 void handleResponse(bindings.ServiceMessage message) { |
2992 switch (message.header.type) { | 2991 switch (message.header.type) { |
2993 case _smallCacheMethodGetIntValueName: | 2992 case _smallCacheMethodGetIntValueName: |
2994 var r = SmallCacheGetIntValueResponseParams.deserialize( | 2993 var r = SmallCacheGetIntValueResponseParams.deserialize( |
2995 message.payload); | 2994 message.payload); |
2996 if (!message.header.hasRequestId) { | 2995 if (!message.header.hasRequestId) { |
2997 proxyError("Expected a message with a valid request Id."); | 2996 proxyError("Expected a message with a valid request Id."); |
2998 return; | 2997 return; |
2999 } | 2998 } |
3000 Completer c = completerMap[message.header.requestId]; | 2999 Completer c = completerMap[message.header.requestId]; |
(...skipping 16 matching lines...) Expand all Loading... |
3017 } | 3016 } |
3018 } | 3017 } |
3019 | 3018 |
3020 @override | 3019 @override |
3021 String toString() { | 3020 String toString() { |
3022 var superString = super.toString(); | 3021 var superString = super.toString(); |
3023 return "_SmallCacheProxyControl($superString)"; | 3022 return "_SmallCacheProxyControl($superString)"; |
3024 } | 3023 } |
3025 } | 3024 } |
3026 | 3025 |
3027 | 3026 class SmallCacheProxy |
3028 class SmallCacheProxy extends bindings.Proxy | 3027 extends bindings.Proxy |
3029 implements SmallCache { | 3028 implements SmallCache { |
3030 SmallCacheProxy.fromEndpoint( | 3029 SmallCacheProxy.fromEndpoint( |
3031 core.MojoMessagePipeEndpoint endpoint) | 3030 core.MojoMessagePipeEndpoint endpoint) |
3032 : super(new _SmallCacheProxyControl.fromEndpoint(endpoint)); | 3031 : super(new _SmallCacheProxyControl.fromEndpoint(endpoint)); |
3033 | 3032 |
3034 SmallCacheProxy.fromHandle(core.MojoHandle handle) | 3033 SmallCacheProxy.fromHandle(core.MojoHandle handle) |
3035 : super(new _SmallCacheProxyControl.fromHandle(handle)); | 3034 : super(new _SmallCacheProxyControl.fromHandle(handle)); |
3036 | 3035 |
3037 SmallCacheProxy.unbound() | 3036 SmallCacheProxy.unbound() |
3038 : super(new _SmallCacheProxyControl.unbound()); | 3037 : super(new _SmallCacheProxyControl.unbound()); |
3039 | 3038 |
(...skipping 24 matching lines...) Expand all Loading... |
3064 dynamic getIntValue([Function responseFactory = null]) { | 3063 dynamic getIntValue([Function responseFactory = null]) { |
3065 var params = new _SmallCacheGetIntValueParams(); | 3064 var params = new _SmallCacheGetIntValueParams(); |
3066 return ctrl.sendMessageWithRequestId( | 3065 return ctrl.sendMessageWithRequestId( |
3067 params, | 3066 params, |
3068 _smallCacheMethodGetIntValueName, | 3067 _smallCacheMethodGetIntValueName, |
3069 -1, | 3068 -1, |
3070 bindings.MessageHeader.kMessageExpectsResponse); | 3069 bindings.MessageHeader.kMessageExpectsResponse); |
3071 } | 3070 } |
3072 } | 3071 } |
3073 | 3072 |
3074 | 3073 class _SmallCacheStubControl |
3075 class SmallCacheStub extends bindings.Stub { | 3074 extends bindings.StubMessageHandler |
| 3075 implements bindings.StubControl<SmallCache> { |
3076 SmallCache _impl; | 3076 SmallCache _impl; |
3077 | 3077 |
3078 SmallCacheStub.fromEndpoint( | 3078 _SmallCacheStubControl.fromEndpoint( |
3079 core.MojoMessagePipeEndpoint endpoint, [SmallCache impl]) | 3079 core.MojoMessagePipeEndpoint endpoint, [SmallCache impl]) |
3080 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 3080 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
3081 _impl = impl; | 3081 _impl = impl; |
3082 } | 3082 } |
3083 | 3083 |
3084 SmallCacheStub.fromHandle( | 3084 _SmallCacheStubControl.fromHandle( |
3085 core.MojoHandle handle, [SmallCache impl]) | 3085 core.MojoHandle handle, [SmallCache impl]) |
3086 : super.fromHandle(handle, autoBegin: impl != null) { | 3086 : super.fromHandle(handle, autoBegin: impl != null) { |
3087 _impl = impl; | 3087 _impl = impl; |
3088 } | 3088 } |
3089 | 3089 |
3090 SmallCacheStub.unbound([this._impl]) : super.unbound(); | 3090 _SmallCacheStubControl.unbound([this._impl]) : super.unbound(); |
3091 | |
3092 static SmallCacheStub newFromEndpoint( | |
3093 core.MojoMessagePipeEndpoint endpoint) { | |
3094 assert(endpoint.setDescription("For SmallCacheStub")); | |
3095 return new SmallCacheStub.fromEndpoint(endpoint); | |
3096 } | |
3097 | 3091 |
3098 | 3092 |
3099 SmallCacheGetIntValueResponseParams _smallCacheGetIntValueResponseParamsFactor
y(int intValue) { | 3093 SmallCacheGetIntValueResponseParams _smallCacheGetIntValueResponseParamsFactor
y(int intValue) { |
3100 var result = new SmallCacheGetIntValueResponseParams(); | 3094 var result = new SmallCacheGetIntValueResponseParams(); |
3101 result.intValue = intValue; | 3095 result.intValue = intValue; |
3102 return result; | 3096 return result; |
3103 } | 3097 } |
3104 | 3098 |
3105 dynamic handleMessage(bindings.ServiceMessage message) { | 3099 dynamic handleMessage(bindings.ServiceMessage message) { |
3106 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 3100 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3156 } | 3150 } |
3157 | 3151 |
3158 @override | 3152 @override |
3159 void bind(core.MojoMessagePipeEndpoint endpoint) { | 3153 void bind(core.MojoMessagePipeEndpoint endpoint) { |
3160 super.bind(endpoint); | 3154 super.bind(endpoint); |
3161 if (!isOpen && (_impl != null)) { | 3155 if (!isOpen && (_impl != null)) { |
3162 beginHandlingEvents(); | 3156 beginHandlingEvents(); |
3163 } | 3157 } |
3164 } | 3158 } |
3165 | 3159 |
| 3160 @override |
3166 String toString() { | 3161 String toString() { |
3167 var superString = super.toString(); | 3162 var superString = super.toString(); |
3168 return "SmallCacheStub($superString)"; | 3163 return "_SmallCacheStubControl($superString)"; |
3169 } | 3164 } |
3170 | 3165 |
3171 int get version => 0; | 3166 int get version => 0; |
3172 | 3167 |
3173 static service_describer.ServiceDescription _cachedServiceDescription; | 3168 static service_describer.ServiceDescription _cachedServiceDescription; |
3174 static service_describer.ServiceDescription get serviceDescription { | 3169 static service_describer.ServiceDescription get serviceDescription { |
3175 if (_cachedServiceDescription == null) { | 3170 if (_cachedServiceDescription == null) { |
3176 _cachedServiceDescription = new _SmallCacheServiceDescription(); | 3171 _cachedServiceDescription = new _SmallCacheServiceDescription(); |
3177 } | 3172 } |
3178 return _cachedServiceDescription; | 3173 return _cachedServiceDescription; |
3179 } | 3174 } |
3180 } | 3175 } |
3181 | 3176 |
| 3177 class SmallCacheStub |
| 3178 extends bindings.Stub<SmallCache> |
| 3179 implements SmallCache { |
| 3180 SmallCacheStub.fromEndpoint( |
| 3181 core.MojoMessagePipeEndpoint endpoint, [SmallCache impl]) |
| 3182 : super(new _SmallCacheStubControl.fromEndpoint(endpoint, impl)); |
| 3183 |
| 3184 SmallCacheStub.fromHandle( |
| 3185 core.MojoHandle handle, [SmallCache impl]) |
| 3186 : super(new _SmallCacheStubControl.fromHandle(handle, impl)); |
| 3187 |
| 3188 SmallCacheStub.unbound([SmallCache impl]) |
| 3189 : super(new _SmallCacheStubControl.unbound(impl)); |
| 3190 |
| 3191 static SmallCacheStub newFromEndpoint( |
| 3192 core.MojoMessagePipeEndpoint endpoint) { |
| 3193 assert(endpoint.setDescription("For SmallCacheStub")); |
| 3194 return new SmallCacheStub.fromEndpoint(endpoint); |
| 3195 } |
| 3196 |
| 3197 static service_describer.ServiceDescription get serviceDescription => |
| 3198 _SmallCacheStubControl.serviceDescription; |
| 3199 |
| 3200 |
| 3201 void setIntValue(int intValue) { |
| 3202 return impl.setIntValue(intValue); |
| 3203 } |
| 3204 dynamic getIntValue([Function responseFactory = null]) { |
| 3205 return impl.getIntValue(responseFactory); |
| 3206 } |
| 3207 } |
| 3208 |
3182 const int _unionInterfaceMethodEchoName = 0; | 3209 const int _unionInterfaceMethodEchoName = 0; |
3183 | 3210 |
3184 class _UnionInterfaceServiceDescription implements service_describer.ServiceDesc
ription { | 3211 class _UnionInterfaceServiceDescription implements service_describer.ServiceDesc
ription { |
3185 dynamic getTopLevelInterface([Function responseFactory]) => | 3212 dynamic getTopLevelInterface([Function responseFactory]) => |
3186 responseFactory(null); | 3213 responseFactory(null); |
3187 | 3214 |
3188 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 3215 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
3189 responseFactory(null); | 3216 responseFactory(null); |
3190 | 3217 |
3191 dynamic getAllTypeDefinitions([Function responseFactory]) => | 3218 dynamic getAllTypeDefinitions([Function responseFactory]) => |
3192 responseFactory(null); | 3219 responseFactory(null); |
3193 } | 3220 } |
3194 | 3221 |
3195 abstract class UnionInterface { | 3222 abstract class UnionInterface { |
3196 static const String serviceName = null; | 3223 static const String serviceName = null; |
3197 dynamic echo(PodUnion inVal,[Function responseFactory = null]); | 3224 dynamic echo(PodUnion inVal,[Function responseFactory = null]); |
3198 } | 3225 } |
3199 | 3226 |
3200 | 3227 class _UnionInterfaceProxyControl |
3201 class _UnionInterfaceProxyControl extends bindings.ProxyMessageHandler | 3228 extends bindings.ProxyMessageHandler |
3202 implements bindings.ProxyControl { | 3229 implements bindings.ProxyControl { |
3203 _UnionInterfaceProxyControl.fromEndpoint( | 3230 _UnionInterfaceProxyControl.fromEndpoint( |
3204 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 3231 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
3205 | 3232 |
3206 _UnionInterfaceProxyControl.fromHandle( | 3233 _UnionInterfaceProxyControl.fromHandle( |
3207 core.MojoHandle handle) : super.fromHandle(handle); | 3234 core.MojoHandle handle) : super.fromHandle(handle); |
3208 | 3235 |
3209 _UnionInterfaceProxyControl.unbound() : super.unbound(); | 3236 _UnionInterfaceProxyControl.unbound() : super.unbound(); |
3210 | 3237 |
3211 service_describer.ServiceDescription get serviceDescription => | 3238 service_describer.ServiceDescription get serviceDescription => |
3212 new _UnionInterfaceServiceDescription(); | 3239 new _UnionInterfaceServiceDescription(); |
3213 | 3240 |
3214 String get serviceName => UnionInterface.serviceName; | 3241 String get serviceName => UnionInterface.serviceName; |
3215 | 3242 |
3216 @override | |
3217 void handleResponse(bindings.ServiceMessage message) { | 3243 void handleResponse(bindings.ServiceMessage message) { |
3218 switch (message.header.type) { | 3244 switch (message.header.type) { |
3219 case _unionInterfaceMethodEchoName: | 3245 case _unionInterfaceMethodEchoName: |
3220 var r = UnionInterfaceEchoResponseParams.deserialize( | 3246 var r = UnionInterfaceEchoResponseParams.deserialize( |
3221 message.payload); | 3247 message.payload); |
3222 if (!message.header.hasRequestId) { | 3248 if (!message.header.hasRequestId) { |
3223 proxyError("Expected a message with a valid request Id."); | 3249 proxyError("Expected a message with a valid request Id."); |
3224 return; | 3250 return; |
3225 } | 3251 } |
3226 Completer c = completerMap[message.header.requestId]; | 3252 Completer c = completerMap[message.header.requestId]; |
(...skipping 16 matching lines...) Expand all Loading... |
3243 } | 3269 } |
3244 } | 3270 } |
3245 | 3271 |
3246 @override | 3272 @override |
3247 String toString() { | 3273 String toString() { |
3248 var superString = super.toString(); | 3274 var superString = super.toString(); |
3249 return "_UnionInterfaceProxyControl($superString)"; | 3275 return "_UnionInterfaceProxyControl($superString)"; |
3250 } | 3276 } |
3251 } | 3277 } |
3252 | 3278 |
3253 | 3279 class UnionInterfaceProxy |
3254 class UnionInterfaceProxy extends bindings.Proxy | 3280 extends bindings.Proxy |
3255 implements UnionInterface { | 3281 implements UnionInterface { |
3256 UnionInterfaceProxy.fromEndpoint( | 3282 UnionInterfaceProxy.fromEndpoint( |
3257 core.MojoMessagePipeEndpoint endpoint) | 3283 core.MojoMessagePipeEndpoint endpoint) |
3258 : super(new _UnionInterfaceProxyControl.fromEndpoint(endpoint)); | 3284 : super(new _UnionInterfaceProxyControl.fromEndpoint(endpoint)); |
3259 | 3285 |
3260 UnionInterfaceProxy.fromHandle(core.MojoHandle handle) | 3286 UnionInterfaceProxy.fromHandle(core.MojoHandle handle) |
3261 : super(new _UnionInterfaceProxyControl.fromHandle(handle)); | 3287 : super(new _UnionInterfaceProxyControl.fromHandle(handle)); |
3262 | 3288 |
3263 UnionInterfaceProxy.unbound() | 3289 UnionInterfaceProxy.unbound() |
3264 : super(new _UnionInterfaceProxyControl.unbound()); | 3290 : super(new _UnionInterfaceProxyControl.unbound()); |
3265 | 3291 |
(...skipping 15 matching lines...) Expand all Loading... |
3281 var params = new _UnionInterfaceEchoParams(); | 3307 var params = new _UnionInterfaceEchoParams(); |
3282 params.inVal = inVal; | 3308 params.inVal = inVal; |
3283 return ctrl.sendMessageWithRequestId( | 3309 return ctrl.sendMessageWithRequestId( |
3284 params, | 3310 params, |
3285 _unionInterfaceMethodEchoName, | 3311 _unionInterfaceMethodEchoName, |
3286 -1, | 3312 -1, |
3287 bindings.MessageHeader.kMessageExpectsResponse); | 3313 bindings.MessageHeader.kMessageExpectsResponse); |
3288 } | 3314 } |
3289 } | 3315 } |
3290 | 3316 |
3291 | 3317 class _UnionInterfaceStubControl |
3292 class UnionInterfaceStub extends bindings.Stub { | 3318 extends bindings.StubMessageHandler |
| 3319 implements bindings.StubControl<UnionInterface> { |
3293 UnionInterface _impl; | 3320 UnionInterface _impl; |
3294 | 3321 |
3295 UnionInterfaceStub.fromEndpoint( | 3322 _UnionInterfaceStubControl.fromEndpoint( |
3296 core.MojoMessagePipeEndpoint endpoint, [UnionInterface impl]) | 3323 core.MojoMessagePipeEndpoint endpoint, [UnionInterface impl]) |
3297 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 3324 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
3298 _impl = impl; | 3325 _impl = impl; |
3299 } | 3326 } |
3300 | 3327 |
3301 UnionInterfaceStub.fromHandle( | 3328 _UnionInterfaceStubControl.fromHandle( |
3302 core.MojoHandle handle, [UnionInterface impl]) | 3329 core.MojoHandle handle, [UnionInterface impl]) |
3303 : super.fromHandle(handle, autoBegin: impl != null) { | 3330 : super.fromHandle(handle, autoBegin: impl != null) { |
3304 _impl = impl; | 3331 _impl = impl; |
3305 } | 3332 } |
3306 | 3333 |
3307 UnionInterfaceStub.unbound([this._impl]) : super.unbound(); | 3334 _UnionInterfaceStubControl.unbound([this._impl]) : super.unbound(); |
3308 | |
3309 static UnionInterfaceStub newFromEndpoint( | |
3310 core.MojoMessagePipeEndpoint endpoint) { | |
3311 assert(endpoint.setDescription("For UnionInterfaceStub")); | |
3312 return new UnionInterfaceStub.fromEndpoint(endpoint); | |
3313 } | |
3314 | 3335 |
3315 | 3336 |
3316 UnionInterfaceEchoResponseParams _unionInterfaceEchoResponseParamsFactory(PodU
nion outVal) { | 3337 UnionInterfaceEchoResponseParams _unionInterfaceEchoResponseParamsFactory(PodU
nion outVal) { |
3317 var result = new UnionInterfaceEchoResponseParams(); | 3338 var result = new UnionInterfaceEchoResponseParams(); |
3318 result.outVal = outVal; | 3339 result.outVal = outVal; |
3319 return result; | 3340 return result; |
3320 } | 3341 } |
3321 | 3342 |
3322 dynamic handleMessage(bindings.ServiceMessage message) { | 3343 dynamic handleMessage(bindings.ServiceMessage message) { |
3323 if (bindings.ControlMessageHandler.isControlMessage(message)) { | 3344 if (bindings.ControlMessageHandler.isControlMessage(message)) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3370 } | 3391 } |
3371 | 3392 |
3372 @override | 3393 @override |
3373 void bind(core.MojoMessagePipeEndpoint endpoint) { | 3394 void bind(core.MojoMessagePipeEndpoint endpoint) { |
3374 super.bind(endpoint); | 3395 super.bind(endpoint); |
3375 if (!isOpen && (_impl != null)) { | 3396 if (!isOpen && (_impl != null)) { |
3376 beginHandlingEvents(); | 3397 beginHandlingEvents(); |
3377 } | 3398 } |
3378 } | 3399 } |
3379 | 3400 |
| 3401 @override |
3380 String toString() { | 3402 String toString() { |
3381 var superString = super.toString(); | 3403 var superString = super.toString(); |
3382 return "UnionInterfaceStub($superString)"; | 3404 return "_UnionInterfaceStubControl($superString)"; |
3383 } | 3405 } |
3384 | 3406 |
3385 int get version => 0; | 3407 int get version => 0; |
3386 | 3408 |
3387 static service_describer.ServiceDescription _cachedServiceDescription; | 3409 static service_describer.ServiceDescription _cachedServiceDescription; |
3388 static service_describer.ServiceDescription get serviceDescription { | 3410 static service_describer.ServiceDescription get serviceDescription { |
3389 if (_cachedServiceDescription == null) { | 3411 if (_cachedServiceDescription == null) { |
3390 _cachedServiceDescription = new _UnionInterfaceServiceDescription(); | 3412 _cachedServiceDescription = new _UnionInterfaceServiceDescription(); |
3391 } | 3413 } |
3392 return _cachedServiceDescription; | 3414 return _cachedServiceDescription; |
3393 } | 3415 } |
3394 } | 3416 } |
3395 | 3417 |
| 3418 class UnionInterfaceStub |
| 3419 extends bindings.Stub<UnionInterface> |
| 3420 implements UnionInterface { |
| 3421 UnionInterfaceStub.fromEndpoint( |
| 3422 core.MojoMessagePipeEndpoint endpoint, [UnionInterface impl]) |
| 3423 : super(new _UnionInterfaceStubControl.fromEndpoint(endpoint, impl)); |
| 3424 |
| 3425 UnionInterfaceStub.fromHandle( |
| 3426 core.MojoHandle handle, [UnionInterface impl]) |
| 3427 : super(new _UnionInterfaceStubControl.fromHandle(handle, impl)); |
| 3428 |
| 3429 UnionInterfaceStub.unbound([UnionInterface impl]) |
| 3430 : super(new _UnionInterfaceStubControl.unbound(impl)); |
| 3431 |
| 3432 static UnionInterfaceStub newFromEndpoint( |
| 3433 core.MojoMessagePipeEndpoint endpoint) { |
| 3434 assert(endpoint.setDescription("For UnionInterfaceStub")); |
| 3435 return new UnionInterfaceStub.fromEndpoint(endpoint); |
| 3436 } |
| 3437 |
| 3438 static service_describer.ServiceDescription get serviceDescription => |
| 3439 _UnionInterfaceStubControl.serviceDescription; |
| 3440 |
| 3441 |
| 3442 dynamic echo(PodUnion inVal,[Function responseFactory = null]) { |
| 3443 return impl.echo(inVal,responseFactory); |
| 3444 } |
| 3445 } |
| 3446 |
3396 | 3447 |
3397 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? | 3448 mojom_types.RuntimeTypeInfo getRuntimeTypeInfo() => _runtimeTypeInfo ?? |
3398 _initRuntimeTypeInfo(); | 3449 _initRuntimeTypeInfo(); |
3399 | 3450 |
3400 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { | 3451 Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
3401 return getRuntimeTypeInfo().typeMap; | 3452 return getRuntimeTypeInfo().typeMap; |
3402 } | 3453 } |
3403 | 3454 |
3404 var _runtimeTypeInfo; | 3455 var _runtimeTypeInfo; |
3405 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { | 3456 mojom_types.RuntimeTypeInfo _initRuntimeTypeInfo() { |
3406 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of | 3457 // serializedRuntimeTypeInfo contains the bytes of the Mojo serialization of |
3407 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this | 3458 // a mojom_types.RuntimeTypeInfo struct describing the Mojom types in this |
3408 // file. The string contains the base64 encoding of the gzip-compressed bytes. | 3459 // file. The string contains the base64 encoding of the gzip-compressed bytes. |
3409 var serializedRuntimeTypeInfo = "H4sIAAAJbogC/+xdTXTbxhEGSVGmbDWm458wcdswTtMqS
S3KP1XZtGnVZyuR0hdJjdyGfmkfBZGgKT2SYEgisdO+Vx9z7DFHH3v0MccefczRRx111NG3FgBnSOxgF
wBhcAFLxnvwGtQQ2PnmZ2dnB8uCMjzy0C5BSz/HNkdaSneYGbaPzPO8eX4Hn38P7VNon0FbTA3bFWib0
H4L7X+gfQLtIbT5NPQX2h1ov4X2MbRPoVWgX0Vo3zLP183zzt2t1eqfVu9+0N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eastMg/pCuSH/fXcpMw8rirDd5wDb
mvmwvNzJZnvEcvOP/jFvxXleNQzB32PmOp3IaB+rxH93hHgjvNp7mZ65ue/UIZ7Uvlsu+eSU/WlPgfKp
+3EOL/gxUei92kn3ecyrH6PxuW5iPPEZPNHTp6YoaByWpCsz0ugrxiX/xtwKeA+r5BHKs9667vsfSAMg
Z6/ewLyxl7zsqjzxlYOyFIBtaobPLzfA78e53tlYeZlsuQRNp/kL48mVx7vv6DyoPvlBd1vWTTveqZEm
0/yk0dbYB+/jGmepQjWk5NgLxmJeaWxfPj2cvWYyCes/XjFT1mH3Gj8hPtl5WYmi58qHn7S6gvdDPsKy
Mdnu2yXXL+Meb39fioZ8RLOGzEvRHHqvVxfi3R9Ddc1O3qH2fGA4t5Xjtd+En7r+QXi32l/oq5vxvkY3
SzfPR9jKaicLPSSUN88T1TY7/1s3AfgfiZaf4Lj6WqtqfP621Hirb9EvisT1hP62bPFr7Pw8kWoI5Q5z
mB90V7HKiPk60X+BOdTo9ZLXJ8DvRwVuL7US/66sm7Y9a1cvXznBOnltPanQ31kfmxG4f3OBEtB+/OmI
ndfC5r/xLj9EOwU97t/6rHf/TT2TfTLcxaPWZ5TtF/WAZkvTDuf+dYJy2f64Z6WlLe8csLylqL9zxD3j
KT85NsnPD/pJ4cZSXnIn53wPKRoffZhNtr4hPmRO258wlJQOd2SnFcsgj5iP/B3M4/Syag/wPmxbhvVu
ASB4nY7oXnGKNc1vHDPR5xnDFrHtKoc3zp+L7yLIddd/fR8+OtTYj3/KKF6Po31IWed/f8DAAD//7SFm
Z9oeAAA"; |
3410 | 3461 |
3411 // Deserialize RuntimeTypeInfo | 3462 // Deserialize RuntimeTypeInfo |
3412 var bytes = BASE64.decode(serializedRuntimeTypeInfo); | 3463 var bytes = BASE64.decode(serializedRuntimeTypeInfo); |
3413 var unzippedBytes = new ZLibDecoder().convert(bytes); | 3464 var unzippedBytes = new ZLibDecoder().convert(bytes); |
3414 var bdata = new ByteData.view(unzippedBytes.buffer); | 3465 var bdata = new ByteData.view(unzippedBytes.buffer); |
3415 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); | 3466 var message = new bindings.Message(bdata, null, unzippedBytes.length, 0); |
3416 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); | 3467 _runtimeTypeInfo = mojom_types.RuntimeTypeInfo.deserialize(message); |
3417 test_included_unions_mojom.getAllMojomTypeDefinitions() | 3468 test_included_unions_mojom.getAllMojomTypeDefinitions() |
3418 .forEach((String s, mojom_types.UserDefinedType udt) { | 3469 .forEach((String s, mojom_types.UserDefinedType udt) { |
3419 _runtimeTypeInfo.typeMap[s] = udt; | 3470 _runtimeTypeInfo.typeMap[s] = udt; |
3420 }); | 3471 }); |
3421 | 3472 |
3422 return _runtimeTypeInfo; | 3473 return _runtimeTypeInfo; |
3423 } | 3474 } |
OLD | NEW |