| Index: mojo/dart/packages/mojo_services/lib/keyboard/keyboard.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/keyboard/keyboard.mojom.dart b/mojo/dart/packages/mojo_services/lib/keyboard/keyboard.mojom.dart
|
| index 7e7f67de023de0d1153919787c7945b8498ab937..62be5a892fac14f31d240774957f85e41cd8d72f 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/keyboard/keyboard.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/keyboard/keyboard.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;
|
| class SubmitAction extends bindings.MojoEnum {
|
| static const DONE = const SubmitAction._(0);
|
|
|
| @@ -45,11 +47,22 @@ class SubmitAction extends bindings.MojoEnum {
|
| switch(this) {
|
| case DONE:
|
| return 'SubmitAction.DONE';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => value;
|
| }
|
| +
|
| +mojom_types.MojomEnum _keyboard_SubmitAction__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SubmitAction")
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DONE")
|
| + ..enumTypeKey = '_keyboard_SubmitAction__'
|
| + ..intValue = 0,];
|
| +}
|
| class KeyboardType extends bindings.MojoEnum {
|
| static const TEXT = const KeyboardType._(0);
|
| static const NUMBER = const KeyboardType._(1);
|
| @@ -108,12 +121,32 @@ class KeyboardType extends bindings.MojoEnum {
|
| return 'KeyboardType.PHONE';
|
| case DATETIME:
|
| return 'KeyboardType.DATETIME';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => value;
|
| }
|
|
|
| +mojom_types.MojomEnum _keyboard_KeyboardType__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "KeyboardType")
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "TEXT")
|
| + ..enumTypeKey = '_keyboard_KeyboardType__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "NUMBER")
|
| + ..enumTypeKey = '_keyboard_KeyboardType__'
|
| + ..intValue = 1,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "PHONE")
|
| + ..enumTypeKey = '_keyboard_KeyboardType__'
|
| + ..intValue = 2,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DATETIME")
|
| + ..enumTypeKey = '_keyboard_KeyboardType__'
|
| + ..intValue = 3,];
|
| +}
|
| +
|
|
|
|
|
| class CompletionData extends bindings.Struct {
|
| @@ -209,6 +242,30 @@ class CompletionData extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_CompletionData__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CompletionData')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Id')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT64),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Position')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Text')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Label')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
| +
|
|
|
| class CorrectionData extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -294,6 +351,26 @@ class CorrectionData extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_CorrectionData__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CorrectionData')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Offset')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'OldText')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NewText')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientCommitCompletionParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -362,6 +439,21 @@ class KeyboardClientCommitCompletionParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_CommitCompletion_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientCommitCompletionParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Completion')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_keyboard_CompletionData__'
|
| + ..typeKey = '_keyboard_CompletionData__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientCommitCorrectionParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -430,6 +522,21 @@ class KeyboardClientCommitCorrectionParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_CommitCorrection_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientCommitCorrectionParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Correction')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_keyboard_CorrectionData__'
|
| + ..typeKey = '_keyboard_CorrectionData__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientCommitTextParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -506,6 +613,21 @@ class KeyboardClientCommitTextParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_CommitText_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientCommitTextParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Text')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NewCursorPosition')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientDeleteSurroundingTextParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -582,6 +704,20 @@ class KeyboardClientDeleteSurroundingTextParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_DeleteSurroundingText_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientDeleteSurroundingTextParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'BeforeLength')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'AfterLength')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientSetComposingRegionParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -658,6 +794,20 @@ class KeyboardClientSetComposingRegionParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_SetComposingRegion_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientSetComposingRegionParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Start')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'End')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientSetComposingTextParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -734,6 +884,21 @@ class KeyboardClientSetComposingTextParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_SetComposingText_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientSetComposingTextParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Text')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NewCursorPosition')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientSetSelectionParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -810,6 +975,20 @@ class KeyboardClientSetSelectionParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_SetSelection_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientSetSelectionParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Start')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'End')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardClientSubmitParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -881,6 +1060,21 @@ class KeyboardClientSubmitParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardClient_Submit_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardClientSubmitParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Action')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_keyboard_SubmitAction__'
|
| + ..typeKey = '_keyboard_SubmitAction__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardServiceShowParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -959,6 +1153,30 @@ class KeyboardServiceShowParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardService_Show_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServiceShowParams')
|
| + ..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 = '_keyboard_KeyboardClient__'
|
| + ..typeKey = '_keyboard_KeyboardClient__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Type')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_keyboard_KeyboardType__'
|
| + ..typeKey = '_keyboard_KeyboardType__'
|
| + )),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardServiceShowByRequestParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -1017,6 +1235,12 @@ class KeyboardServiceShowByRequestParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardService_ShowByRequest_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServiceShowByRequestParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class KeyboardServiceHideParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -1075,6 +1299,12 @@ class KeyboardServiceHideParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardService_Hide_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServiceHideParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class KeyboardServiceSetTextParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -1142,6 +1372,17 @@ class KeyboardServiceSetTextParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardService_SetText_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServiceSetTextParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Text')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
| +
|
|
|
| class KeyboardServiceSetSelectionParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -1218,6 +1459,21 @@ class KeyboardServiceSetSelectionParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _keyboard_KeyboardService_SetSelection_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServiceSetSelectionParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Start')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'End')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.INT32),
|
| + ];
|
| +}
|
| +
|
| +
|
| const int kKeyboardClient_commitCompletion_name = 0;
|
| const int kKeyboardClient_commitCorrection_name = 1;
|
| const int kKeyboardClient_commitText_name = 2;
|
| @@ -1230,6 +1486,45 @@ const int kKeyboardClient_submit_name = 7;
|
| const String KeyboardClientName =
|
| 'keyboard::KeyboardClient';
|
|
|
| +mojom_types.MojomInterface _keyboard_KeyboardClient__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "KeyboardClient")
|
| + ..interfaceName = "KeyboardClient"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kKeyboardClient_commitCompletion_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CommitCompletion")
|
| + ..ordinal = kKeyboardClient_commitCompletion_name..parameters = _keyboard_KeyboardClient_CommitCompletion_Params__(),kKeyboardClient_commitCorrection_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CommitCorrection")
|
| + ..ordinal = kKeyboardClient_commitCorrection_name..parameters = _keyboard_KeyboardClient_CommitCorrection_Params__(),kKeyboardClient_commitText_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "CommitText")
|
| + ..ordinal = kKeyboardClient_commitText_name..parameters = _keyboard_KeyboardClient_CommitText_Params__(),kKeyboardClient_deleteSurroundingText_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "DeleteSurroundingText")
|
| + ..ordinal = kKeyboardClient_deleteSurroundingText_name..parameters = _keyboard_KeyboardClient_DeleteSurroundingText_Params__(),kKeyboardClient_setComposingRegion_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SetComposingRegion")
|
| + ..ordinal = kKeyboardClient_setComposingRegion_name..parameters = _keyboard_KeyboardClient_SetComposingRegion_Params__(),kKeyboardClient_setComposingText_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SetComposingText")
|
| + ..ordinal = kKeyboardClient_setComposingText_name..parameters = _keyboard_KeyboardClient_SetComposingText_Params__(),kKeyboardClient_setSelection_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SetSelection")
|
| + ..ordinal = kKeyboardClient_setSelection_name..parameters = _keyboard_KeyboardClient_SetSelection_Params__(),kKeyboardClient_submit_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Submit")
|
| + ..ordinal = kKeyboardClient_submit_name..parameters = _keyboard_KeyboardClient_Submit_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _KeyboardClientServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _keyboard_KeyboardClient__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class KeyboardClient {
|
| void commitCompletion(CompletionData completion);
|
| void commitCorrection(CorrectionData correction);
|
| @@ -1260,6 +1555,9 @@ class KeyboardClientProxyImpl extends bindings.Proxy {
|
|
|
| String get name => KeyboardClientName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _KeyboardClientServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1515,6 +1813,9 @@ class KeyboardClientStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _KeyboardClientServiceDescription();
|
| }
|
|
|
| const int kKeyboardService_show_name = 0;
|
| @@ -1526,6 +1827,39 @@ const int kKeyboardService_setSelection_name = 4;
|
| const String KeyboardServiceName =
|
| 'keyboard::KeyboardService';
|
|
|
| +mojom_types.MojomInterface _keyboard_KeyboardService__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "KeyboardService")
|
| + ..interfaceName = "KeyboardService"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kKeyboardService_show_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Show")
|
| + ..ordinal = kKeyboardService_show_name..parameters = _keyboard_KeyboardService_Show_Params__(),kKeyboardService_showByRequest_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "ShowByRequest")
|
| + ..ordinal = kKeyboardService_showByRequest_name..parameters = _keyboard_KeyboardService_ShowByRequest_Params__(),kKeyboardService_hide_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Hide")
|
| + ..ordinal = kKeyboardService_hide_name..parameters = _keyboard_KeyboardService_Hide_Params__(),kKeyboardService_setText_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SetText")
|
| + ..ordinal = kKeyboardService_setText_name..parameters = _keyboard_KeyboardService_SetText_Params__(),kKeyboardService_setSelection_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "SetSelection")
|
| + ..ordinal = kKeyboardService_setSelection_name..parameters = _keyboard_KeyboardService_SetSelection_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _KeyboardServiceServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _keyboard_KeyboardService__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class KeyboardService {
|
| void show(Object client, KeyboardType type);
|
| void showByRequest();
|
| @@ -1553,6 +1887,9 @@ class KeyboardServiceProxyImpl extends bindings.Proxy {
|
|
|
| String get name => KeyboardServiceName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _KeyboardServiceServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -1758,6 +2095,187 @@ class KeyboardServiceStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _KeyboardServiceServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<String, mojom_types.UserDefinedType>();
|
| +
|
| + map["_keyboard_SubmitAction__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _keyboard_SubmitAction__();
|
| +
|
| +
|
| + map["_keyboard_KeyboardType__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _keyboard_KeyboardType__();
|
| +
|
| +
|
| + map["_keyboard_CompletionData__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_CompletionData__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_CorrectionData__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_CorrectionData__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_CommitCompletion_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_CommitCompletion_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_CommitCorrection_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_CommitCorrection_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_CommitText_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_CommitText_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_DeleteSurroundingText_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_DeleteSurroundingText_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_SetComposingRegion_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_SetComposingRegion_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_SetComposingText_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_SetComposingText_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_SetSelection_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_SetSelection_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient_Submit_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardClient_Submit_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardService_Show_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardService_Show_Params__();
|
| +
|
| +
|
| + map["_keyboard_KeyboardClient__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _keyboard_KeyboardClient__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardService_ShowByRequest_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardService_ShowByRequest_Params__();
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardService_Hide_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardService_Hide_Params__();
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardService_SetText_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardService_SetText_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardService_SetSelection_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _keyboard_KeyboardService_SetSelection_Params__();
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| + map["_keyboard_KeyboardService__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _keyboard_KeyboardService__();
|
| +
|
| + return map;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| }
|
|
|
|
|
|
|