| 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 media_source_mojom; | 5 library media_source_mojom; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:mojo/bindings.dart' as bindings; | 9 import 'package:mojo/bindings.dart' as bindings; |
| 10 import 'package:mojo/core.dart' as core; | 10 import 'package:mojo/core.dart' as core; |
| (...skipping 1099 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 const int _MediaSource_getMasterClockName = 2; | 1110 const int _MediaSource_getMasterClockName = 2; |
| 1111 const int _MediaSource_setMasterClockName = 3; | 1111 const int _MediaSource_setMasterClockName = 3; |
| 1112 const int _MediaSource_getProducerName = 4; | 1112 const int _MediaSource_getProducerName = 4; |
| 1113 const int _MediaSource_getPullModeProducerName = 5; | 1113 const int _MediaSource_getPullModeProducerName = 5; |
| 1114 const int _MediaSource_getStatusName = 6; | 1114 const int _MediaSource_getStatusName = 6; |
| 1115 const int _MediaSource_prepareName = 7; | 1115 const int _MediaSource_prepareName = 7; |
| 1116 | 1116 |
| 1117 | 1117 |
| 1118 | 1118 |
| 1119 class _MediaSourceServiceDescription implements service_describer.ServiceDescrip
tion { | 1119 class _MediaSourceServiceDescription implements service_describer.ServiceDescrip
tion { |
| 1120 dynamic getTopLevelInterface([Function responseFactory]) => null; | 1120 dynamic getTopLevelInterface([Function responseFactory]) => |
| 1121 responseFactory(null); |
| 1121 | 1122 |
| 1122 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 1123 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 1124 responseFactory(null); |
| 1123 | 1125 |
| 1124 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 1126 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 1127 responseFactory(null); |
| 1125 } | 1128 } |
| 1126 | 1129 |
| 1127 abstract class MediaSource { | 1130 abstract class MediaSource { |
| 1128 static const String serviceName = null; | 1131 static const String serviceName = null; |
| 1129 dynamic getStreams([Function responseFactory = null]); | 1132 dynamic getStreams([Function responseFactory = null]); |
| 1130 dynamic getClockDisposition([Function responseFactory = null]); | 1133 dynamic getClockDisposition([Function responseFactory = null]); |
| 1131 void getMasterClock(Object masterClock); | 1134 void getMasterClock(Object masterClock); |
| 1132 void setMasterClock(Object masterClock); | 1135 void setMasterClock(Object masterClock); |
| 1133 void getProducer(int streamIndex, Object producer); | 1136 void getProducer(int streamIndex, Object producer); |
| 1134 void getPullModeProducer(int streamIndex, Object producer); | 1137 void getPullModeProducer(int streamIndex, Object producer); |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1557 _impl = d; | 1560 _impl = d; |
| 1558 } | 1561 } |
| 1559 | 1562 |
| 1560 String toString() { | 1563 String toString() { |
| 1561 var superString = super.toString(); | 1564 var superString = super.toString(); |
| 1562 return "MediaSourceStub($superString)"; | 1565 return "MediaSourceStub($superString)"; |
| 1563 } | 1566 } |
| 1564 | 1567 |
| 1565 int get version => 0; | 1568 int get version => 0; |
| 1566 | 1569 |
| 1567 service_describer.ServiceDescription get serviceDescription => | 1570 static service_describer.ServiceDescription _cachedServiceDescription; |
| 1568 new _MediaSourceServiceDescription(); | 1571 static service_describer.ServiceDescription get serviceDescription { |
| 1572 if (_cachedServiceDescription == null) { |
| 1573 _cachedServiceDescription = new _MediaSourceServiceDescription(); |
| 1574 } |
| 1575 return _cachedServiceDescription; |
| 1576 } |
| 1569 } | 1577 } |
| 1570 | 1578 |
| 1571 | 1579 |
| 1572 | 1580 |
| OLD | NEW |