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

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

Issue 1648803006: Expose Service Describer in Dart mojo package (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Address zra's feedback Created 4 years, 10 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_track_mojom; 5 library audio_track_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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 594
595 595
596 const int _AudioTrack_describeName = 0; 596 const int _AudioTrack_describeName = 0;
597 const int _AudioTrack_configureName = 1; 597 const int _AudioTrack_configureName = 1;
598 const int _AudioTrack_getRateControlName = 2; 598 const int _AudioTrack_getRateControlName = 2;
599 const int _AudioTrack_setGainName = 3; 599 const int _AudioTrack_setGainName = 3;
600 600
601 601
602 602
603 class _AudioTrackServiceDescription implements service_describer.ServiceDescript ion { 603 class _AudioTrackServiceDescription implements service_describer.ServiceDescript ion {
604 dynamic getTopLevelInterface([Function responseFactory]) => null; 604 dynamic getTopLevelInterface([Function responseFactory]) =>
605 responseFactory(null);
605 606
606 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 607 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
608 responseFactory(null);
607 609
608 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 610 dynamic getAllTypeDefinitions([Function responseFactory]) =>
611 responseFactory(null);
609 } 612 }
610 613
611 abstract class AudioTrack { 614 abstract class AudioTrack {
612 static const String serviceName = null; 615 static const String serviceName = null;
613 dynamic describe([Function responseFactory = null]); 616 dynamic describe([Function responseFactory = null]);
614 void configure(AudioTrackConfiguration configuration, Object pipe); 617 void configure(AudioTrackConfiguration configuration, Object pipe);
615 void getRateControl(Object rateControl); 618 void getRateControl(Object rateControl);
616 void setGain(double dbGain); 619 void setGain(double dbGain);
617 static const double kMutedGain = -160.0; 620 static const double kMutedGain = -160.0;
618 static const double kMaxGain = 20.0; 621 static const double kMaxGain = 20.0;
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 _impl = d; 861 _impl = d;
859 } 862 }
860 863
861 String toString() { 864 String toString() {
862 var superString = super.toString(); 865 var superString = super.toString();
863 return "AudioTrackStub($superString)"; 866 return "AudioTrackStub($superString)";
864 } 867 }
865 868
866 int get version => 0; 869 int get version => 0;
867 870
868 service_describer.ServiceDescription get serviceDescription => 871 static service_describer.ServiceDescription _cachedServiceDescription;
869 new _AudioTrackServiceDescription(); 872 static service_describer.ServiceDescription get serviceDescription {
873 if (_cachedServiceDescription == null) {
874 _cachedServiceDescription = new _AudioTrackServiceDescription();
875 }
876 return _cachedServiceDescription;
877 }
870 } 878 }
871 879
872 880
873 881
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698