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 a9af9a9790e01b9ccf9ac6c86035ef23a899dd8d..56e060131e072e53fc42e003c3e72415bac1403b 100644 |
--- a/mojo/dart/packages/mojo_services/lib/input/input.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/input/input.mojom.dart |
@@ -8,6 +8,8 @@ import 'dart:async'; |
import 'package:mojo/bindings.dart' as bindings; |
import 'package:mojo/core.dart' as core; |
+import 'package:mojo/mojo/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo/mojo/service_describer.mojom.dart' as service_describer; |
@@ -68,6 +70,12 @@ class InputClientOnBackButtonParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _input_InputClient_OnBackButton_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'InputClientOnBackButtonParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
+ |
class InputClientOnBackButtonResponseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -126,6 +134,12 @@ class InputClientOnBackButtonResponseParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _input_InputClient_OnBackButton_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'InputClientOnBackButtonResponseParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
+ |
class InputServiceSetClientParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -192,11 +206,53 @@ class InputServiceSetClientParams extends bindings.Struct { |
} |
} |
+mojom_types.MojomStruct _input_InputService_SetClient_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = '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 kInputClient_onBackButton_name = 0; |
const String InputClientName = |
'input::InputClient'; |
+mojom_types.MojomInterface _input_InputClient__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "InputClient") |
+ ..interfaceName = "InputClient" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kInputClient_onBackButton_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "OnBackButton") |
+ ..ordinal = kInputClient_onBackButton_name |
+ ..responseParams = _input_InputClient_OnBackButton_ResponseParams__()..parameters = _input_InputClient_OnBackButton_Params__(), |
+ }; |
+} |
+ |
+class _InputClientServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+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 { |
dynamic onBackButton([Function responseFactory = null]); |
@@ -220,6 +276,9 @@ class InputClientProxyImpl extends bindings.Proxy { |
String get name => InputClientName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _InputClientServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case kInputClient_onBackButton_name: |
@@ -404,6 +463,9 @@ class InputClientStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _InputClientServiceDescription(); |
} |
const int kInputService_setClient_name = 0; |
@@ -411,6 +473,31 @@ const int kInputService_setClient_name = 0; |
const String InputServiceName = |
'input::InputService'; |
+mojom_types.MojomInterface _input_InputService__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "InputService") |
+ ..interfaceName = "InputService" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kInputService_setClient_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "SetClient") |
+ ..ordinal = kInputService_setClient_name..parameters = _input_InputService_SetClient_Params__(), |
+ }; |
+} |
+ |
+class _InputServiceServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+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 { |
void setClient(Object client); |
@@ -434,6 +521,9 @@ class InputServiceProxyImpl extends bindings.Proxy { |
String get name => InputServiceName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _InputServiceServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -579,6 +669,57 @@ class InputServiceStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _InputServiceServiceDescription(); |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+var _MojomDesc__ = _initDescriptions(); |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new Map<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; |
+} |
+ |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ return _MojomDesc__; |
} |