Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Side by Side Diff: mojo/dart/packages/mojo_services/lib/mojo/media/audio_server.mojom.dart

Issue 1753013002: Mojom runtime type info: New implementation for Dart. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: No changes to sha1s Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698