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

Unified Diff: mojo/dart/packages/mojo_services/lib/speech_recognizer/speech_recognizer.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Move and Standardize Mojom Type Functions Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
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();
}
+
+

Powered by Google App Engine
This is Rietveld 408576698