Index: mojo/dart/packages/mojo_services/lib/speech_recognizer/speech_recognizer.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/speech_recognizer/speech_recognizer.mojom.dart b/mojo/dart/packages/mojo_services/lib/speech_recognizer/speech_recognizer.mojom.dart |
index 82bcd2a5c5c5fc959a9b7633814723e96614c8a9..fbc62540b542f7a8e0d62c0abc6c55c1494483ab 100644 |
--- a/mojo/dart/packages/mojo_services/lib/speech_recognizer/speech_recognizer.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/speech_recognizer/speech_recognizer.mojom.dart |
@@ -8,7 +8,8 @@ import 'dart:async'; |
import 'package:mojo/bindings.dart' as bindings; |
import 'package:mojo/core.dart' as core; |
- |
+import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer; |
class Error extends bindings.MojoEnum { |
static const Error networkTimeout = const Error._(1); |
static const Error network = const Error._(2); |
@@ -102,6 +103,8 @@ class Error extends bindings.MojoEnum { |
return 'Error.recognizerBusy'; |
case insufficientPermissions: |
return 'Error.insufficientPermissions'; |
+ default: |
+ return null; |
} |
} |
@@ -110,6 +113,8 @@ class Error extends bindings.MojoEnum { |
+ |
+ |
class UtteranceCandidate extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -186,6 +191,8 @@ class UtteranceCandidate extends bindings.Struct { |
} |
+ |
+ |
class _SpeechRecognizerServiceListenParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(8, 0) |
@@ -244,6 +251,8 @@ class _SpeechRecognizerServiceListenParams extends bindings.Struct { |
} |
+ |
+ |
class SpeechRecognizerServiceListenResponseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -315,6 +324,8 @@ class SpeechRecognizerServiceListenResponseParams extends bindings.Struct { |
} |
+ |
+ |
class _SpeechRecognizerServiceStopListeningParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(8, 0) |
@@ -374,6 +385,8 @@ class _SpeechRecognizerServiceStopListeningParams extends bindings.Struct { |
+ |
+ |
enum ResultOrErrorTag { |
errorCode, |
results, |
@@ -498,9 +511,23 @@ class ResultOrError extends bindings.Union { |
return result; |
} |
} |
+ |
+ |
+ |
const int _SpeechRecognizerService_listenName = 0; |
const int _SpeechRecognizerService_stopListeningName = 1; |
+ |
+ |
+class _SpeechRecognizerServiceServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) => |
+ null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
+} |
+ |
abstract class SpeechRecognizerService { |
static const String serviceName = "speech_recognizer::SpeechRecognizerService"; |
dynamic listen([Function responseFactory = null]); |
@@ -523,6 +550,9 @@ class _SpeechRecognizerServiceProxyImpl extends bindings.Proxy { |
return new _SpeechRecognizerServiceProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SpeechRecognizerServiceServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case _SpeechRecognizerService_listenName: |
@@ -720,6 +750,11 @@ class SpeechRecognizerServiceStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _SpeechRecognizerServiceServiceDescription(); |
} |
+ |
+ |