| 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 timeline_controller_mojom; | 5 library timeline_controller_mojom; |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'package:mojo/bindings.dart' as bindings; | 7 import 'package:mojo/bindings.dart' as bindings; |
| 8 import 'package:mojo/core.dart' as core; | 8 import 'package:mojo/core.dart' as core; |
| 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; | 9 import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as servic
e_describer; |
| 10 import 'package:mojo_services/mojo/timelines.mojom.dart' as timelines_mojom; | 10 import 'package:mojo_services/mojo/timelines.mojom.dart' as timelines_mojom; |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 933 abstract class MediaTimelineController { | 933 abstract class MediaTimelineController { |
| 934 static const String serviceName = null; | 934 static const String serviceName = null; |
| 935 void addControlSite(Object controlSite); | 935 void addControlSite(Object controlSite); |
| 936 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); | 936 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); |
| 937 dynamic setTimelineTransform(int subjectTime,int subjectDelta,int referenceDel
ta,int effectiveSubjectTime,int effectiveReferenceTime,[Function responseFactory
= null]); | 937 dynamic setTimelineTransform(int subjectTime,int subjectDelta,int referenceDel
ta,int effectiveSubjectTime,int effectiveReferenceTime,[Function responseFactory
= null]); |
| 938 void getControlSite(Object controlSite); | 938 void getControlSite(Object controlSite); |
| 939 static const int kUnspecifiedTime = 9223372036854775807; | 939 static const int kUnspecifiedTime = 9223372036854775807; |
| 940 static const int kInitialStatus = 0; | 940 static const int kInitialStatus = 0; |
| 941 } | 941 } |
| 942 | 942 |
| 943 | 943 class _MediaTimelineControllerProxyControl |
| 944 class _MediaTimelineControllerProxyControl extends bindings.ProxyMessageHandler | 944 extends bindings.ProxyMessageHandler |
| 945 implements bindings.ProxyControl { | 945 implements bindings.ProxyControl { |
| 946 _MediaTimelineControllerProxyControl.fromEndpoint( | 946 _MediaTimelineControllerProxyControl.fromEndpoint( |
| 947 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 947 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 948 | 948 |
| 949 _MediaTimelineControllerProxyControl.fromHandle( | 949 _MediaTimelineControllerProxyControl.fromHandle( |
| 950 core.MojoHandle handle) : super.fromHandle(handle); | 950 core.MojoHandle handle) : super.fromHandle(handle); |
| 951 | 951 |
| 952 _MediaTimelineControllerProxyControl.unbound() : super.unbound(); | 952 _MediaTimelineControllerProxyControl.unbound() : super.unbound(); |
| 953 | 953 |
| 954 service_describer.ServiceDescription get serviceDescription => | 954 service_describer.ServiceDescription get serviceDescription => |
| 955 new _MediaTimelineControllerServiceDescription(); | 955 new _MediaTimelineControllerServiceDescription(); |
| 956 | 956 |
| 957 String get serviceName => MediaTimelineController.serviceName; | 957 String get serviceName => MediaTimelineController.serviceName; |
| 958 | 958 |
| 959 @override | |
| 960 void handleResponse(bindings.ServiceMessage message) { | 959 void handleResponse(bindings.ServiceMessage message) { |
| 961 switch (message.header.type) { | 960 switch (message.header.type) { |
| 962 case _mediaTimelineControllerMethodGetStatusName: | 961 case _mediaTimelineControllerMethodGetStatusName: |
| 963 var r = MediaTimelineControllerGetStatusResponseParams.deserialize( | 962 var r = MediaTimelineControllerGetStatusResponseParams.deserialize( |
| 964 message.payload); | 963 message.payload); |
| 965 if (!message.header.hasRequestId) { | 964 if (!message.header.hasRequestId) { |
| 966 proxyError("Expected a message with a valid request Id."); | 965 proxyError("Expected a message with a valid request Id."); |
| 967 return; | 966 return; |
| 968 } | 967 } |
| 969 Completer c = completerMap[message.header.requestId]; | 968 Completer c = completerMap[message.header.requestId]; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1006 } | 1005 } |
| 1007 } | 1006 } |
| 1008 | 1007 |
| 1009 @override | 1008 @override |
| 1010 String toString() { | 1009 String toString() { |
| 1011 var superString = super.toString(); | 1010 var superString = super.toString(); |
| 1012 return "_MediaTimelineControllerProxyControl($superString)"; | 1011 return "_MediaTimelineControllerProxyControl($superString)"; |
| 1013 } | 1012 } |
| 1014 } | 1013 } |
| 1015 | 1014 |
| 1016 | 1015 class MediaTimelineControllerProxy |
| 1017 class MediaTimelineControllerProxy extends bindings.Proxy | 1016 extends bindings.Proxy |
| 1018 implements MediaTimelineController { | 1017 implements MediaTimelineController { |
| 1019 MediaTimelineControllerProxy.fromEndpoint( | 1018 MediaTimelineControllerProxy.fromEndpoint( |
| 1020 core.MojoMessagePipeEndpoint endpoint) | 1019 core.MojoMessagePipeEndpoint endpoint) |
| 1021 : super(new _MediaTimelineControllerProxyControl.fromEndpoint(endpoint)); | 1020 : super(new _MediaTimelineControllerProxyControl.fromEndpoint(endpoint)); |
| 1022 | 1021 |
| 1023 MediaTimelineControllerProxy.fromHandle(core.MojoHandle handle) | 1022 MediaTimelineControllerProxy.fromHandle(core.MojoHandle handle) |
| 1024 : super(new _MediaTimelineControllerProxyControl.fromHandle(handle)); | 1023 : super(new _MediaTimelineControllerProxyControl.fromHandle(handle)); |
| 1025 | 1024 |
| 1026 MediaTimelineControllerProxy.unbound() | 1025 MediaTimelineControllerProxy.unbound() |
| 1027 : super(new _MediaTimelineControllerProxyControl.unbound()); | 1026 : super(new _MediaTimelineControllerProxyControl.unbound()); |
| 1028 | 1027 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1077 ctrl.proxyError("The Proxy is closed."); | 1076 ctrl.proxyError("The Proxy is closed."); |
| 1078 return; | 1077 return; |
| 1079 } | 1078 } |
| 1080 var params = new _MediaTimelineControllerGetControlSiteParams(); | 1079 var params = new _MediaTimelineControllerGetControlSiteParams(); |
| 1081 params.controlSite = controlSite; | 1080 params.controlSite = controlSite; |
| 1082 ctrl.sendMessage(params, | 1081 ctrl.sendMessage(params, |
| 1083 _mediaTimelineControllerMethodGetControlSiteName); | 1082 _mediaTimelineControllerMethodGetControlSiteName); |
| 1084 } | 1083 } |
| 1085 } | 1084 } |
| 1086 | 1085 |
| 1087 | 1086 class _MediaTimelineControllerStubControl |
| 1088 class MediaTimelineControllerStub extends bindings.Stub { | 1087 extends bindings.StubMessageHandler |
| 1088 implements bindings.StubControl<MediaTimelineController> { |
| 1089 MediaTimelineController _impl; | 1089 MediaTimelineController _impl; |
| 1090 | 1090 |
| 1091 MediaTimelineControllerStub.fromEndpoint( | 1091 _MediaTimelineControllerStubControl.fromEndpoint( |
| 1092 core.MojoMessagePipeEndpoint endpoint, [MediaTimelineController impl]) | 1092 core.MojoMessagePipeEndpoint endpoint, [MediaTimelineController impl]) |
| 1093 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 1093 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
| 1094 _impl = impl; | 1094 _impl = impl; |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 MediaTimelineControllerStub.fromHandle( | 1097 _MediaTimelineControllerStubControl.fromHandle( |
| 1098 core.MojoHandle handle, [MediaTimelineController impl]) | 1098 core.MojoHandle handle, [MediaTimelineController impl]) |
| 1099 : super.fromHandle(handle, autoBegin: impl != null) { | 1099 : super.fromHandle(handle, autoBegin: impl != null) { |
| 1100 _impl = impl; | 1100 _impl = impl; |
| 1101 } | 1101 } |
| 1102 | 1102 |
| 1103 MediaTimelineControllerStub.unbound([this._impl]) : super.unbound(); | 1103 _MediaTimelineControllerStubControl.unbound([this._impl]) : super.unbound(); |
| 1104 | |
| 1105 static MediaTimelineControllerStub newFromEndpoint( | |
| 1106 core.MojoMessagePipeEndpoint endpoint) { | |
| 1107 assert(endpoint.setDescription("For MediaTimelineControllerStub")); | |
| 1108 return new MediaTimelineControllerStub.fromEndpoint(endpoint); | |
| 1109 } | |
| 1110 | 1104 |
| 1111 | 1105 |
| 1112 MediaTimelineControllerGetStatusResponseParams _mediaTimelineControllerGetStat
usResponseParamsFactory(int version, MediaTimelineControllerStatus status) { | 1106 MediaTimelineControllerGetStatusResponseParams _mediaTimelineControllerGetStat
usResponseParamsFactory(int version, MediaTimelineControllerStatus status) { |
| 1113 var result = new MediaTimelineControllerGetStatusResponseParams(); | 1107 var result = new MediaTimelineControllerGetStatusResponseParams(); |
| 1114 result.version = version; | 1108 result.version = version; |
| 1115 result.status = status; | 1109 result.status = status; |
| 1116 return result; | 1110 return result; |
| 1117 } | 1111 } |
| 1118 MediaTimelineControllerSetTimelineTransformResponseParams _mediaTimelineContro
llerSetTimelineTransformResponseParamsFactory(bool completed) { | 1112 MediaTimelineControllerSetTimelineTransformResponseParams _mediaTimelineContro
llerSetTimelineTransformResponseParamsFactory(bool completed) { |
| 1119 var result = new MediaTimelineControllerSetTimelineTransformResponseParams()
; | 1113 var result = new MediaTimelineControllerSetTimelineTransformResponseParams()
; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1204 } | 1198 } |
| 1205 | 1199 |
| 1206 @override | 1200 @override |
| 1207 void bind(core.MojoMessagePipeEndpoint endpoint) { | 1201 void bind(core.MojoMessagePipeEndpoint endpoint) { |
| 1208 super.bind(endpoint); | 1202 super.bind(endpoint); |
| 1209 if (!isOpen && (_impl != null)) { | 1203 if (!isOpen && (_impl != null)) { |
| 1210 beginHandlingEvents(); | 1204 beginHandlingEvents(); |
| 1211 } | 1205 } |
| 1212 } | 1206 } |
| 1213 | 1207 |
| 1208 @override |
| 1214 String toString() { | 1209 String toString() { |
| 1215 var superString = super.toString(); | 1210 var superString = super.toString(); |
| 1216 return "MediaTimelineControllerStub($superString)"; | 1211 return "_MediaTimelineControllerStubControl($superString)"; |
| 1217 } | 1212 } |
| 1218 | 1213 |
| 1219 int get version => 0; | 1214 int get version => 0; |
| 1220 | 1215 |
| 1221 static service_describer.ServiceDescription _cachedServiceDescription; | 1216 static service_describer.ServiceDescription _cachedServiceDescription; |
| 1222 static service_describer.ServiceDescription get serviceDescription { | 1217 static service_describer.ServiceDescription get serviceDescription { |
| 1223 if (_cachedServiceDescription == null) { | 1218 if (_cachedServiceDescription == null) { |
| 1224 _cachedServiceDescription = new _MediaTimelineControllerServiceDescription
(); | 1219 _cachedServiceDescription = new _MediaTimelineControllerServiceDescription
(); |
| 1225 } | 1220 } |
| 1226 return _cachedServiceDescription; | 1221 return _cachedServiceDescription; |
| 1227 } | 1222 } |
| 1228 } | 1223 } |
| 1229 | 1224 |
| 1225 class MediaTimelineControllerStub |
| 1226 extends bindings.Stub<MediaTimelineController> |
| 1227 implements MediaTimelineController { |
| 1228 MediaTimelineControllerStub.fromEndpoint( |
| 1229 core.MojoMessagePipeEndpoint endpoint, [MediaTimelineController impl]) |
| 1230 : super(new _MediaTimelineControllerStubControl.fromEndpoint(endpoint, imp
l)); |
| 1231 |
| 1232 MediaTimelineControllerStub.fromHandle( |
| 1233 core.MojoHandle handle, [MediaTimelineController impl]) |
| 1234 : super(new _MediaTimelineControllerStubControl.fromHandle(handle, impl)); |
| 1235 |
| 1236 MediaTimelineControllerStub.unbound([MediaTimelineController impl]) |
| 1237 : super(new _MediaTimelineControllerStubControl.unbound(impl)); |
| 1238 |
| 1239 static MediaTimelineControllerStub newFromEndpoint( |
| 1240 core.MojoMessagePipeEndpoint endpoint) { |
| 1241 assert(endpoint.setDescription("For MediaTimelineControllerStub")); |
| 1242 return new MediaTimelineControllerStub.fromEndpoint(endpoint); |
| 1243 } |
| 1244 |
| 1245 static service_describer.ServiceDescription get serviceDescription => |
| 1246 _MediaTimelineControllerStubControl.serviceDescription; |
| 1247 |
| 1248 |
| 1249 void addControlSite(Object controlSite) { |
| 1250 return impl.addControlSite(controlSite); |
| 1251 } |
| 1252 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]) { |
| 1253 return impl.getStatus(versionLastSeen,responseFactory); |
| 1254 } |
| 1255 dynamic setTimelineTransform(int subjectTime,int subjectDelta,int referenceDel
ta,int effectiveSubjectTime,int effectiveReferenceTime,[Function responseFactory
= null]) { |
| 1256 return impl.setTimelineTransform(subjectTime,subjectDelta,referenceDelta,eff
ectiveSubjectTime,effectiveReferenceTime,responseFactory); |
| 1257 } |
| 1258 void getControlSite(Object controlSite) { |
| 1259 return impl.getControlSite(controlSite); |
| 1260 } |
| 1261 } |
| 1262 |
| 1230 const int _mediaTimelineControlSiteMethodGetStatusName = 0; | 1263 const int _mediaTimelineControlSiteMethodGetStatusName = 0; |
| 1231 const int _mediaTimelineControlSiteMethodGetTimelineConsumerName = 1; | 1264 const int _mediaTimelineControlSiteMethodGetTimelineConsumerName = 1; |
| 1232 | 1265 |
| 1233 class _MediaTimelineControlSiteServiceDescription implements service_describer.S
erviceDescription { | 1266 class _MediaTimelineControlSiteServiceDescription implements service_describer.S
erviceDescription { |
| 1234 dynamic getTopLevelInterface([Function responseFactory]) => | 1267 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1235 responseFactory(null); | 1268 responseFactory(null); |
| 1236 | 1269 |
| 1237 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 1270 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1238 responseFactory(null); | 1271 responseFactory(null); |
| 1239 | 1272 |
| 1240 dynamic getAllTypeDefinitions([Function responseFactory]) => | 1273 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1241 responseFactory(null); | 1274 responseFactory(null); |
| 1242 } | 1275 } |
| 1243 | 1276 |
| 1244 abstract class MediaTimelineControlSite { | 1277 abstract class MediaTimelineControlSite { |
| 1245 static const String serviceName = null; | 1278 static const String serviceName = null; |
| 1246 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); | 1279 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); |
| 1247 void getTimelineConsumer(Object timelineConsumer); | 1280 void getTimelineConsumer(Object timelineConsumer); |
| 1248 static const int kInitialStatus = 0; | 1281 static const int kInitialStatus = 0; |
| 1249 } | 1282 } |
| 1250 | 1283 |
| 1251 | 1284 class _MediaTimelineControlSiteProxyControl |
| 1252 class _MediaTimelineControlSiteProxyControl extends bindings.ProxyMessageHandler | 1285 extends bindings.ProxyMessageHandler |
| 1253 implements bindings.ProxyControl { | 1286 implements bindings.ProxyControl { |
| 1254 _MediaTimelineControlSiteProxyControl.fromEndpoint( | 1287 _MediaTimelineControlSiteProxyControl.fromEndpoint( |
| 1255 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); | 1288 core.MojoMessagePipeEndpoint endpoint) : super.fromEndpoint(endpoint); |
| 1256 | 1289 |
| 1257 _MediaTimelineControlSiteProxyControl.fromHandle( | 1290 _MediaTimelineControlSiteProxyControl.fromHandle( |
| 1258 core.MojoHandle handle) : super.fromHandle(handle); | 1291 core.MojoHandle handle) : super.fromHandle(handle); |
| 1259 | 1292 |
| 1260 _MediaTimelineControlSiteProxyControl.unbound() : super.unbound(); | 1293 _MediaTimelineControlSiteProxyControl.unbound() : super.unbound(); |
| 1261 | 1294 |
| 1262 service_describer.ServiceDescription get serviceDescription => | 1295 service_describer.ServiceDescription get serviceDescription => |
| 1263 new _MediaTimelineControlSiteServiceDescription(); | 1296 new _MediaTimelineControlSiteServiceDescription(); |
| 1264 | 1297 |
| 1265 String get serviceName => MediaTimelineControlSite.serviceName; | 1298 String get serviceName => MediaTimelineControlSite.serviceName; |
| 1266 | 1299 |
| 1267 @override | |
| 1268 void handleResponse(bindings.ServiceMessage message) { | 1300 void handleResponse(bindings.ServiceMessage message) { |
| 1269 switch (message.header.type) { | 1301 switch (message.header.type) { |
| 1270 case _mediaTimelineControlSiteMethodGetStatusName: | 1302 case _mediaTimelineControlSiteMethodGetStatusName: |
| 1271 var r = MediaTimelineControlSiteGetStatusResponseParams.deserialize( | 1303 var r = MediaTimelineControlSiteGetStatusResponseParams.deserialize( |
| 1272 message.payload); | 1304 message.payload); |
| 1273 if (!message.header.hasRequestId) { | 1305 if (!message.header.hasRequestId) { |
| 1274 proxyError("Expected a message with a valid request Id."); | 1306 proxyError("Expected a message with a valid request Id."); |
| 1275 return; | 1307 return; |
| 1276 } | 1308 } |
| 1277 Completer c = completerMap[message.header.requestId]; | 1309 Completer c = completerMap[message.header.requestId]; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1294 } | 1326 } |
| 1295 } | 1327 } |
| 1296 | 1328 |
| 1297 @override | 1329 @override |
| 1298 String toString() { | 1330 String toString() { |
| 1299 var superString = super.toString(); | 1331 var superString = super.toString(); |
| 1300 return "_MediaTimelineControlSiteProxyControl($superString)"; | 1332 return "_MediaTimelineControlSiteProxyControl($superString)"; |
| 1301 } | 1333 } |
| 1302 } | 1334 } |
| 1303 | 1335 |
| 1304 | 1336 class MediaTimelineControlSiteProxy |
| 1305 class MediaTimelineControlSiteProxy extends bindings.Proxy | 1337 extends bindings.Proxy |
| 1306 implements MediaTimelineControlSite { | 1338 implements MediaTimelineControlSite { |
| 1307 MediaTimelineControlSiteProxy.fromEndpoint( | 1339 MediaTimelineControlSiteProxy.fromEndpoint( |
| 1308 core.MojoMessagePipeEndpoint endpoint) | 1340 core.MojoMessagePipeEndpoint endpoint) |
| 1309 : super(new _MediaTimelineControlSiteProxyControl.fromEndpoint(endpoint)); | 1341 : super(new _MediaTimelineControlSiteProxyControl.fromEndpoint(endpoint)); |
| 1310 | 1342 |
| 1311 MediaTimelineControlSiteProxy.fromHandle(core.MojoHandle handle) | 1343 MediaTimelineControlSiteProxy.fromHandle(core.MojoHandle handle) |
| 1312 : super(new _MediaTimelineControlSiteProxyControl.fromHandle(handle)); | 1344 : super(new _MediaTimelineControlSiteProxyControl.fromHandle(handle)); |
| 1313 | 1345 |
| 1314 MediaTimelineControlSiteProxy.unbound() | 1346 MediaTimelineControlSiteProxy.unbound() |
| 1315 : super(new _MediaTimelineControlSiteProxyControl.unbound()); | 1347 : super(new _MediaTimelineControlSiteProxyControl.unbound()); |
| 1316 | 1348 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 1342 ctrl.proxyError("The Proxy is closed."); | 1374 ctrl.proxyError("The Proxy is closed."); |
| 1343 return; | 1375 return; |
| 1344 } | 1376 } |
| 1345 var params = new _MediaTimelineControlSiteGetTimelineConsumerParams(); | 1377 var params = new _MediaTimelineControlSiteGetTimelineConsumerParams(); |
| 1346 params.timelineConsumer = timelineConsumer; | 1378 params.timelineConsumer = timelineConsumer; |
| 1347 ctrl.sendMessage(params, | 1379 ctrl.sendMessage(params, |
| 1348 _mediaTimelineControlSiteMethodGetTimelineConsumerName); | 1380 _mediaTimelineControlSiteMethodGetTimelineConsumerName); |
| 1349 } | 1381 } |
| 1350 } | 1382 } |
| 1351 | 1383 |
| 1352 | 1384 class _MediaTimelineControlSiteStubControl |
| 1353 class MediaTimelineControlSiteStub extends bindings.Stub { | 1385 extends bindings.StubMessageHandler |
| 1386 implements bindings.StubControl<MediaTimelineControlSite> { |
| 1354 MediaTimelineControlSite _impl; | 1387 MediaTimelineControlSite _impl; |
| 1355 | 1388 |
| 1356 MediaTimelineControlSiteStub.fromEndpoint( | 1389 _MediaTimelineControlSiteStubControl.fromEndpoint( |
| 1357 core.MojoMessagePipeEndpoint endpoint, [MediaTimelineControlSite impl]) | 1390 core.MojoMessagePipeEndpoint endpoint, [MediaTimelineControlSite impl]) |
| 1358 : super.fromEndpoint(endpoint, autoBegin: impl != null) { | 1391 : super.fromEndpoint(endpoint, autoBegin: impl != null) { |
| 1359 _impl = impl; | 1392 _impl = impl; |
| 1360 } | 1393 } |
| 1361 | 1394 |
| 1362 MediaTimelineControlSiteStub.fromHandle( | 1395 _MediaTimelineControlSiteStubControl.fromHandle( |
| 1363 core.MojoHandle handle, [MediaTimelineControlSite impl]) | 1396 core.MojoHandle handle, [MediaTimelineControlSite impl]) |
| 1364 : super.fromHandle(handle, autoBegin: impl != null) { | 1397 : super.fromHandle(handle, autoBegin: impl != null) { |
| 1365 _impl = impl; | 1398 _impl = impl; |
| 1366 } | 1399 } |
| 1367 | 1400 |
| 1368 MediaTimelineControlSiteStub.unbound([this._impl]) : super.unbound(); | 1401 _MediaTimelineControlSiteStubControl.unbound([this._impl]) : super.unbound(); |
| 1369 | |
| 1370 static MediaTimelineControlSiteStub newFromEndpoint( | |
| 1371 core.MojoMessagePipeEndpoint endpoint) { | |
| 1372 assert(endpoint.setDescription("For MediaTimelineControlSiteStub")); | |
| 1373 return new MediaTimelineControlSiteStub.fromEndpoint(endpoint); | |
| 1374 } | |
| 1375 | 1402 |
| 1376 | 1403 |
| 1377 MediaTimelineControlSiteGetStatusResponseParams _mediaTimelineControlSiteGetSt
atusResponseParamsFactory(int version, MediaTimelineControlSiteStatus status) { | 1404 MediaTimelineControlSiteGetStatusResponseParams _mediaTimelineControlSiteGetSt
atusResponseParamsFactory(int version, MediaTimelineControlSiteStatus status) { |
| 1378 var result = new MediaTimelineControlSiteGetStatusResponseParams(); | 1405 var result = new MediaTimelineControlSiteGetStatusResponseParams(); |
| 1379 result.version = version; | 1406 result.version = version; |
| 1380 result.status = status; | 1407 result.status = status; |
| 1381 return result; | 1408 return result; |
| 1382 } | 1409 } |
| 1383 | 1410 |
| 1384 dynamic handleMessage(bindings.ServiceMessage message) { | 1411 dynamic handleMessage(bindings.ServiceMessage message) { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1437 } | 1464 } |
| 1438 | 1465 |
| 1439 @override | 1466 @override |
| 1440 void bind(core.MojoMessagePipeEndpoint endpoint) { | 1467 void bind(core.MojoMessagePipeEndpoint endpoint) { |
| 1441 super.bind(endpoint); | 1468 super.bind(endpoint); |
| 1442 if (!isOpen && (_impl != null)) { | 1469 if (!isOpen && (_impl != null)) { |
| 1443 beginHandlingEvents(); | 1470 beginHandlingEvents(); |
| 1444 } | 1471 } |
| 1445 } | 1472 } |
| 1446 | 1473 |
| 1474 @override |
| 1447 String toString() { | 1475 String toString() { |
| 1448 var superString = super.toString(); | 1476 var superString = super.toString(); |
| 1449 return "MediaTimelineControlSiteStub($superString)"; | 1477 return "_MediaTimelineControlSiteStubControl($superString)"; |
| 1450 } | 1478 } |
| 1451 | 1479 |
| 1452 int get version => 0; | 1480 int get version => 0; |
| 1453 | 1481 |
| 1454 static service_describer.ServiceDescription _cachedServiceDescription; | 1482 static service_describer.ServiceDescription _cachedServiceDescription; |
| 1455 static service_describer.ServiceDescription get serviceDescription { | 1483 static service_describer.ServiceDescription get serviceDescription { |
| 1456 if (_cachedServiceDescription == null) { | 1484 if (_cachedServiceDescription == null) { |
| 1457 _cachedServiceDescription = new _MediaTimelineControlSiteServiceDescriptio
n(); | 1485 _cachedServiceDescription = new _MediaTimelineControlSiteServiceDescriptio
n(); |
| 1458 } | 1486 } |
| 1459 return _cachedServiceDescription; | 1487 return _cachedServiceDescription; |
| 1460 } | 1488 } |
| 1461 } | 1489 } |
| 1462 | 1490 |
| 1491 class MediaTimelineControlSiteStub |
| 1492 extends bindings.Stub<MediaTimelineControlSite> |
| 1493 implements MediaTimelineControlSite { |
| 1494 MediaTimelineControlSiteStub.fromEndpoint( |
| 1495 core.MojoMessagePipeEndpoint endpoint, [MediaTimelineControlSite impl]) |
| 1496 : super(new _MediaTimelineControlSiteStubControl.fromEndpoint(endpoint, im
pl)); |
| 1497 |
| 1498 MediaTimelineControlSiteStub.fromHandle( |
| 1499 core.MojoHandle handle, [MediaTimelineControlSite impl]) |
| 1500 : super(new _MediaTimelineControlSiteStubControl.fromHandle(handle, impl))
; |
| 1501 |
| 1502 MediaTimelineControlSiteStub.unbound([MediaTimelineControlSite impl]) |
| 1503 : super(new _MediaTimelineControlSiteStubControl.unbound(impl)); |
| 1504 |
| 1505 static MediaTimelineControlSiteStub newFromEndpoint( |
| 1506 core.MojoMessagePipeEndpoint endpoint) { |
| 1507 assert(endpoint.setDescription("For MediaTimelineControlSiteStub")); |
| 1508 return new MediaTimelineControlSiteStub.fromEndpoint(endpoint); |
| 1509 } |
| 1510 |
| 1511 static service_describer.ServiceDescription get serviceDescription => |
| 1512 _MediaTimelineControlSiteStubControl.serviceDescription; |
| 1513 |
| 1514 |
| 1515 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]) { |
| 1516 return impl.getStatus(versionLastSeen,responseFactory); |
| 1517 } |
| 1518 void getTimelineConsumer(Object timelineConsumer) { |
| 1519 return impl.getTimelineConsumer(timelineConsumer); |
| 1520 } |
| 1521 } |
| 1522 |
| 1463 | 1523 |
| 1464 | 1524 |
| OLD | NEW |