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

Side by Side Diff: mojo/dart/packages/mojo_services/lib/speech_recognizer/speech_recognizer.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 speech_recognizer_mojom; 5 library speech_recognizer_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 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 526 }
527 527
528 528
529 529
530 const int _SpeechRecognizerService_listenName = 0; 530 const int _SpeechRecognizerService_listenName = 0;
531 const int _SpeechRecognizerService_stopListeningName = 1; 531 const int _SpeechRecognizerService_stopListeningName = 1;
532 532
533 533
534 534
535 class _SpeechRecognizerServiceServiceDescription implements service_describer.Se rviceDescription { 535 class _SpeechRecognizerServiceServiceDescription implements service_describer.Se rviceDescription {
536 dynamic getTopLevelInterface([Function responseFactory]) => null; 536 dynamic getTopLevelInterface([Function responseFactory]) =>
537 responseFactory(null);
537 538
538 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null; 539 dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
540 responseFactory(null);
539 541
540 dynamic getAllTypeDefinitions([Function responseFactory]) => null; 542 dynamic getAllTypeDefinitions([Function responseFactory]) =>
543 responseFactory(null);
541 } 544 }
542 545
543 abstract class SpeechRecognizerService { 546 abstract class SpeechRecognizerService {
544 static const String serviceName = "speech_recognizer::SpeechRecognizerService" ; 547 static const String serviceName = "speech_recognizer::SpeechRecognizerService" ;
545 dynamic listen([Function responseFactory = null]); 548 dynamic listen([Function responseFactory = null]);
546 void stopListening(); 549 void stopListening();
547 } 550 }
548 551
549 552
550 class _SpeechRecognizerServiceProxyImpl extends bindings.Proxy { 553 class _SpeechRecognizerServiceProxyImpl extends bindings.Proxy {
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 _impl = d; 759 _impl = d;
757 } 760 }
758 761
759 String toString() { 762 String toString() {
760 var superString = super.toString(); 763 var superString = super.toString();
761 return "SpeechRecognizerServiceStub($superString)"; 764 return "SpeechRecognizerServiceStub($superString)";
762 } 765 }
763 766
764 int get version => 0; 767 int get version => 0;
765 768
766 service_describer.ServiceDescription get serviceDescription => 769 static service_describer.ServiceDescription _cachedServiceDescription;
767 new _SpeechRecognizerServiceServiceDescription(); 770 static service_describer.ServiceDescription get serviceDescription {
771 if (_cachedServiceDescription == null) {
772 _cachedServiceDescription = new _SpeechRecognizerServiceServiceDescription ();
773 }
774 return _cachedServiceDescription;
775 }
768 } 776 }
769 777
770 778
771 779
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698