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

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

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Update to master and regenerate mojoms 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/input/input.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/input/input.mojom.dart b/mojo/dart/packages/mojo_services/lib/input/input.mojom.dart
index f41864971b8b2bc09fed1316fe24aba644ab1355..199a9840e67535385a119c0b8598537103217c64 100644
--- a/mojo/dart/packages/mojo_services/lib/input/input.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/input/input.mojom.dart
@@ -5,9 +5,12 @@
library input_mojom;
import 'dart:async';
+import 'dart:collection';
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;
@@ -67,6 +70,13 @@ class _InputClientOnBackButtonParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _input_InputClient_OnBackButton_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_InputClientOnBackButtonParams'
+ ..fullIdentifier = 'input._InputClientOnBackButtonParams')
+ ..fields = <mojom_types.StructField>[];
+}
class InputClientOnBackButtonResponseParams extends bindings.Struct {
@@ -125,6 +135,13 @@ class InputClientOnBackButtonResponseParams extends bindings.Struct {
return map;
}
}
+mojom_types.MojomStruct _input_InputClient_OnBackButton_ResponseParams__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'InputClientOnBackButtonResponseParams'
+ ..fullIdentifier = 'input.InputClientOnBackButtonResponseParams')
+ ..fields = <mojom_types.StructField>[];
+}
class _InputServiceSetClientParams extends bindings.Struct {
@@ -191,9 +208,52 @@ class _InputServiceSetClientParams extends bindings.Struct {
'Object containing handles cannot be encoded to JSON.');
}
}
+mojom_types.MojomStruct _input_InputService_SetClient_Params__() {
+ return new mojom_types.MojomStruct()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = '_InputServiceSetClientParams'
+ ..fullIdentifier = 'input._InputServiceSetClientParams')
+ ..fields = <mojom_types.StructField>[
+ new mojom_types.StructField()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Client')
+ ..type = (new mojom_types.Type()
+ ..typeReference = (new mojom_types.TypeReference()
+
+ ..identifier = '_input_InputClient__'
+ ..typeKey = '_input_InputClient__'
+ )),
+ ];
+}
+
const int _InputClient_onBackButtonName = 0;
+mojom_types.MojomInterface _input_InputClient__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'InputClient'
+ ..fullIdentifier = 'input.InputClient')
+ ..interfaceName = 'InputClient'
+ ..methods = <int, mojom_types.MojomMethod>{
+_InputClient_onBackButtonName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'OnBackButton')
+ ..ordinal = _InputClient_onBackButtonName
+ ..responseParams = _input_InputClient_OnBackButton_ResponseParams__()..parameters = _input_InputClient_OnBackButton_Params__(),
+ };
+}
+
+class _InputClientServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _input_InputClient__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class InputClient {
static const String serviceName = null;
dynamic onBackButton([Function responseFactory = null]);
@@ -215,6 +275,9 @@ class _InputClientProxyImpl extends bindings.Proxy {
return new _InputClientProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InputClientServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
case _InputClient_onBackButtonName:
@@ -398,10 +461,39 @@ class InputClientStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InputClientServiceDescription();
}
const int _InputService_setClientName = 0;
+mojom_types.MojomInterface _input_InputService__() {
+ return new mojom_types.MojomInterface()
+ ..declData = (new mojom_types.DeclarationData()
+ ..shortName = 'InputService'
+ ..fullIdentifier = 'input.InputService')
+ ..interfaceName = 'InputService'
+ ..methods = <int, mojom_types.MojomMethod>{
+_InputService_setClientName: new mojom_types.MojomMethod()
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'SetClient')
+ ..ordinal = _InputService_setClientName..parameters = _input_InputService_SetClient_Params__(),
+ };
+}
+
+class _InputServiceServiceDescription implements service_describer.ServiceDescription {
+dynamic getTopLevelInterface([Function responseFactory = null]) {
+ return _input_InputService__();
+ }
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions()[typeKey];
+ }
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) {
+ return getAllMojomTypeDefinitions();
+ }
+}
+
abstract class InputService {
static const String serviceName = "input::InputService";
void setClient(Object client);
@@ -423,6 +515,9 @@ class _InputServiceProxyImpl extends bindings.Proxy {
return new _InputServiceProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InputServiceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -566,6 +661,44 @@ class InputServiceStub extends bindings.Stub {
}
int get version => 0;
+
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _InputServiceServiceDescription();
}
+
+
+
+
+
+Map<String, mojom_types.UserDefinedType> _initDescriptions() {
+ var map = new HashMap<String, mojom_types.UserDefinedType>();
+map["_input_InputClient_OnBackButton_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _input_InputClient_OnBackButton_Params__();
+map["_input_InputClient_OnBackButton_ResponseParams__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _input_InputClient_OnBackButton_ResponseParams__();
+map["_input_InputService_SetClient_Params__"] =
+ new mojom_types.UserDefinedType()
+ ..structType = _input_InputService_SetClient_Params__();
+map["_input_InputClient__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _input_InputClient__();
+map["_input_InputService__"] =
+ new mojom_types.UserDefinedType()
+ ..interfaceType = _input_InputService__();
+
+ return map;
+}
+
+var _MojomDesc;
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
+ if (_MojomDesc == null) {
+ _MojomDesc = _initDescriptions();
+ }
+ return _MojomDesc;
+}
+

Powered by Google App Engine
This is Rietveld 408576698