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_sink_mojom; | 5 library media_sink_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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 const int _MediaSink_getMasterClockName = 1; | 756 const int _MediaSink_getMasterClockName = 1; |
757 const int _MediaSink_setMasterClockName = 2; | 757 const int _MediaSink_setMasterClockName = 2; |
758 const int _MediaSink_getConsumerName = 3; | 758 const int _MediaSink_getConsumerName = 3; |
759 const int _MediaSink_getStatusName = 4; | 759 const int _MediaSink_getStatusName = 4; |
760 const int _MediaSink_playName = 5; | 760 const int _MediaSink_playName = 5; |
761 const int _MediaSink_pauseName = 6; | 761 const int _MediaSink_pauseName = 6; |
762 | 762 |
763 | 763 |
764 | 764 |
765 class _MediaSinkServiceDescription implements service_describer.ServiceDescripti
on { | 765 class _MediaSinkServiceDescription implements service_describer.ServiceDescripti
on { |
766 dynamic getTopLevelInterface([Function responseFactory]) => null; | 766 dynamic getTopLevelInterface([Function responseFactory]) => |
| 767 responseFactory(null); |
767 | 768 |
768 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; | 769 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
| 770 responseFactory(null); |
769 | 771 |
770 dynamic getAllTypeDefinitions([Function responseFactory]) => null; | 772 dynamic getAllTypeDefinitions([Function responseFactory]) => |
| 773 responseFactory(null); |
771 } | 774 } |
772 | 775 |
773 abstract class MediaSink { | 776 abstract class MediaSink { |
774 static const String serviceName = null; | 777 static const String serviceName = null; |
775 dynamic getClockDisposition([Function responseFactory = null]); | 778 dynamic getClockDisposition([Function responseFactory = null]); |
776 void getMasterClock(Object masterClock); | 779 void getMasterClock(Object masterClock); |
777 void setMasterClock(Object masterClock); | 780 void setMasterClock(Object masterClock); |
778 void getConsumer(Object consumer); | 781 void getConsumer(Object consumer); |
779 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); | 782 dynamic getStatus(int versionLastSeen,[Function responseFactory = null]); |
780 void play(); | 783 void play(); |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1103 _impl = d; | 1106 _impl = d; |
1104 } | 1107 } |
1105 | 1108 |
1106 String toString() { | 1109 String toString() { |
1107 var superString = super.toString(); | 1110 var superString = super.toString(); |
1108 return "MediaSinkStub($superString)"; | 1111 return "MediaSinkStub($superString)"; |
1109 } | 1112 } |
1110 | 1113 |
1111 int get version => 0; | 1114 int get version => 0; |
1112 | 1115 |
1113 service_describer.ServiceDescription get serviceDescription => | 1116 static service_describer.ServiceDescription get serviceDescription => |
1114 new _MediaSinkServiceDescription(); | 1117 new _MediaSinkServiceDescription(); |
1115 } | 1118 } |
1116 | 1119 |
1117 | 1120 |
1118 | 1121 |
OLD | NEW |