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 audio_server_mojom; | 5 library audio_server_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/media/audio_track.mojom.dart' as audio_track_
mojom; | 10 import 'package:mojo_services/mojo/media/audio_track.mojom.dart' as audio_track_
mojom; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 return "_AudioServerCreateTrackParams(" | 74 return "_AudioServerCreateTrackParams(" |
75 "track: $track" ")"; | 75 "track: $track" ")"; |
76 } | 76 } |
77 | 77 |
78 Map toJson() { | 78 Map toJson() { |
79 throw new bindings.MojoCodecError( | 79 throw new bindings.MojoCodecError( |
80 'Object containing handles cannot be encoded to JSON.'); | 80 'Object containing handles cannot be encoded to JSON.'); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 | |
85 | |
86 | |
87 const int _AudioServer_createTrackName = 0; | 84 const int _AudioServer_createTrackName = 0; |
88 | 85 |
89 | |
90 | |
91 class _AudioServerServiceDescription implements service_describer.ServiceDescrip
tion { | 86 class _AudioServerServiceDescription implements service_describer.ServiceDescrip
tion { |
92 dynamic getTopLevelInterface([Function responseFactory]) => | 87 dynamic getTopLevelInterface([Function responseFactory]) => |
93 responseFactory(null); | 88 responseFactory(null); |
94 | 89 |
95 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => | 90 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => |
96 responseFactory(null); | 91 responseFactory(null); |
97 | 92 |
98 dynamic getAllTypeDefinitions([Function responseFactory]) => | 93 dynamic getAllTypeDefinitions([Function responseFactory]) => |
99 responseFactory(null); | 94 responseFactory(null); |
100 } | 95 } |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 static service_describer.ServiceDescription get serviceDescription { | 266 static service_describer.ServiceDescription get serviceDescription { |
272 if (_cachedServiceDescription == null) { | 267 if (_cachedServiceDescription == null) { |
273 _cachedServiceDescription = new _AudioServerServiceDescription(); | 268 _cachedServiceDescription = new _AudioServerServiceDescription(); |
274 } | 269 } |
275 return _cachedServiceDescription; | 270 return _cachedServiceDescription; |
276 } | 271 } |
277 } | 272 } |
278 | 273 |
279 | 274 |
280 | 275 |
OLD | NEW |