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 2aa0ef5b5a1c6676a1689e8cafacf84769b97909..14052aaf422249ab79e8dc85db0e5a7bed78cfb2 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; |
import 'package:mojo_services/mojo/native_viewport.mojom.dart' as native_viewport_mojom; |
class SubmitAction extends bindings.MojoEnum { |
static const DONE = const SubmitAction._(0); |
@@ -46,11 +48,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); |
@@ -109,12 +122,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 { |
@@ -210,6 +243,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 [ |
@@ -295,6 +352,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 [ |
@@ -363,6 +440,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 [ |
@@ -431,6 +523,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 [ |
@@ -507,6 +614,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 [ |
@@ -583,6 +705,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 [ |
@@ -659,6 +795,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 [ |
@@ -735,6 +885,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 [ |
@@ -811,6 +976,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 [ |
@@ -882,6 +1061,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 [ |
@@ -960,6 +1154,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 [ |
@@ -1018,6 +1236,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 [ |
@@ -1076,6 +1300,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 [ |
@@ -1143,6 +1373,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 [ |
@@ -1219,6 +1460,20 @@ 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), |
+ ]; |
+} |
+ |
class KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
@@ -1293,6 +1548,33 @@ class KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct |
} |
} |
+mojom_types.MojomStruct _keyboard_KeyboardServiceFactory_CreateKeyboardService_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyboardServiceFactoryCreateKeyboardServiceParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'KeyEventDispatcher') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..isInterfaceRequest = true |
+ ..identifier = '_native_viewport_NativeViewportEventDispatcher__' |
+ ..typeKey = '_native_viewport_NativeViewportEventDispatcher__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'ServiceRequest') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..isInterfaceRequest = true |
+ ..identifier = '_keyboard_KeyboardService__' |
+ ..typeKey = '_keyboard_KeyboardService__' |
+ )), |
+ ]; |
+} |
+ |
+ |
const int kKeyboardClient_commitCompletion_name = 0; |
const int kKeyboardClient_commitCorrection_name = 1; |
const int kKeyboardClient_commitText_name = 2; |
@@ -1305,6 +1587,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); |
@@ -1335,6 +1656,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: |
@@ -1590,6 +1914,9 @@ class KeyboardClientStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _KeyboardClientServiceDescription(); |
} |
const int kKeyboardService_show_name = 0; |
@@ -1601,6 +1928,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(); |
@@ -1628,6 +1988,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: |
@@ -1833,6 +2196,9 @@ class KeyboardServiceStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _KeyboardServiceServiceDescription(); |
} |
const int kKeyboardServiceFactory_createKeyboardService_name = 0; |
@@ -1840,6 +2206,31 @@ const int kKeyboardServiceFactory_createKeyboardService_name = 0; |
const String KeyboardServiceFactoryName = |
'keyboard::KeyboardServiceFactory'; |
+mojom_types.MojomInterface _keyboard_KeyboardServiceFactory__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "KeyboardServiceFactory") |
+ ..interfaceName = "KeyboardServiceFactory" |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+kKeyboardServiceFactory_createKeyboardService_name: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = "CreateKeyboardService") |
+ ..ordinal = kKeyboardServiceFactory_createKeyboardService_name..parameters = _keyboard_KeyboardServiceFactory_CreateKeyboardService_Params__(), |
+ }; |
+} |
+ |
+class _KeyboardServiceFactoryServiceDescription extends service_describer.ServiceDescription { |
+ // Avoid infinite loop by overriding serviceDescription field. |
+ final service_describer.ServiceDescription serviceDescription = null; |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _keyboard_KeyboardServiceFactory__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class KeyboardServiceFactory { |
void createKeyboardService(Object keyEventDispatcher, Object serviceRequest); |
@@ -1863,6 +2254,9 @@ class KeyboardServiceFactoryProxyImpl extends bindings.Proxy { |
String get name => KeyboardServiceFactoryName; |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _KeyboardServiceFactoryServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -2009,6 +2403,201 @@ class KeyboardServiceFactoryStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _KeyboardServiceFactoryServiceDescription(); |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+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_KeyboardServiceFactory_CreateKeyboardService_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _keyboard_KeyboardServiceFactory_CreateKeyboardService_Params__(); |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+ map["_keyboard_KeyboardServiceFactory__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _keyboard_KeyboardServiceFactory__(); |
+ |
+native_viewport_mojom.getAllMojomTypeDefinitions().forEach((String s, mojom_types.UserDefinedType udt) { |
+ map[s] = udt; |
+}); |
+ return map; |
+} |
+ |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ return _MojomDesc__; |
} |