| 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 b6c15f296f1e670a0dc5d083d6f9d95817e6d459..e1e148a50c8c6f972215ac61151a44f9fa24a0c0 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/keyboard/keyboard.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/keyboard/keyboard.mojom.dart
|
| @@ -133,6 +133,13 @@ class CompletionData extends bindings.Struct {
|
|
|
| CompletionData() : super(kVersions.last.size);
|
|
|
| + CompletionData.init(
|
| + int this.id,
|
| + int this.position,
|
| + String this.text,
|
| + String this.label
|
| + ) : super(kVersions.last.size);
|
| +
|
| static CompletionData deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -246,6 +253,12 @@ class CorrectionData extends bindings.Struct {
|
|
|
| CorrectionData() : super(kVersions.last.size);
|
|
|
| + CorrectionData.init(
|
| + int this.offset,
|
| + String this.oldText,
|
| + String this.newText
|
| + ) : super(kVersions.last.size);
|
| +
|
| static CorrectionData deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -344,6 +357,10 @@ class _KeyboardClientCommitCompletionParams extends bindings.Struct {
|
|
|
| _KeyboardClientCommitCompletionParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientCommitCompletionParams.init(
|
| + CompletionData this.completion
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientCommitCompletionParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -417,6 +434,10 @@ class _KeyboardClientCommitCorrectionParams extends bindings.Struct {
|
|
|
| _KeyboardClientCommitCorrectionParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientCommitCorrectionParams.init(
|
| + CorrectionData this.correction
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientCommitCorrectionParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -491,6 +512,11 @@ class _KeyboardClientCommitTextParams extends bindings.Struct {
|
|
|
| _KeyboardClientCommitTextParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientCommitTextParams.init(
|
| + String this.text,
|
| + int this.newCursorPosition
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientCommitTextParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -577,6 +603,11 @@ class _KeyboardClientDeleteSurroundingTextParams extends bindings.Struct {
|
|
|
| _KeyboardClientDeleteSurroundingTextParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientDeleteSurroundingTextParams.init(
|
| + int this.beforeLength,
|
| + int this.afterLength
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientDeleteSurroundingTextParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -663,6 +694,11 @@ class _KeyboardClientSetComposingRegionParams extends bindings.Struct {
|
|
|
| _KeyboardClientSetComposingRegionParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientSetComposingRegionParams.init(
|
| + int this.start,
|
| + int this.end
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientSetComposingRegionParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -749,6 +785,11 @@ class _KeyboardClientSetComposingTextParams extends bindings.Struct {
|
|
|
| _KeyboardClientSetComposingTextParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientSetComposingTextParams.init(
|
| + String this.text,
|
| + int this.newCursorPosition
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientSetComposingTextParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -835,6 +876,11 @@ class _KeyboardClientSetSelectionParams extends bindings.Struct {
|
|
|
| _KeyboardClientSetSelectionParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientSetSelectionParams.init(
|
| + int this.start,
|
| + int this.end
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientSetSelectionParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -920,6 +966,10 @@ class _KeyboardClientSubmitParams extends bindings.Struct {
|
|
|
| _KeyboardClientSubmitParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardClientSubmitParams.init(
|
| + SubmitAction this.action
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardClientSubmitParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -997,6 +1047,11 @@ class _KeyboardServiceShowParams extends bindings.Struct {
|
|
|
| _KeyboardServiceShowParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardServiceShowParams.init(
|
| + KeyboardClientInterface this.client,
|
| + KeyboardType this.type
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardServiceShowParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -1083,6 +1138,9 @@ class _KeyboardServiceShowByRequestParams extends bindings.Struct {
|
|
|
| _KeyboardServiceShowByRequestParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardServiceShowByRequestParams.init(
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardServiceShowByRequestParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -1141,6 +1199,9 @@ class _KeyboardServiceHideParams extends bindings.Struct {
|
|
|
| _KeyboardServiceHideParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardServiceHideParams.init(
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardServiceHideParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -1200,6 +1261,10 @@ class _KeyboardServiceSetTextParams extends bindings.Struct {
|
|
|
| _KeyboardServiceSetTextParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardServiceSetTextParams.init(
|
| + String this.text
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardServiceSetTextParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -1273,6 +1338,11 @@ class _KeyboardServiceSetSelectionParams extends bindings.Struct {
|
|
|
| _KeyboardServiceSetSelectionParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardServiceSetSelectionParams.init(
|
| + int this.start,
|
| + int this.end
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardServiceSetSelectionParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -1359,6 +1429,11 @@ class _KeyboardServiceFactoryCreateKeyboardServiceParams extends bindings.Struct
|
|
|
| _KeyboardServiceFactoryCreateKeyboardServiceParams() : super(kVersions.last.size);
|
|
|
| + _KeyboardServiceFactoryCreateKeyboardServiceParams.init(
|
| + native_viewport_event_dispatcher_mojom.NativeViewportEventDispatcherInterfaceRequest this.keyEventDispatcher,
|
| + KeyboardServiceInterfaceRequest this.serviceRequest
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _KeyboardServiceFactoryCreateKeyboardServiceParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -1443,14 +1518,17 @@ const int _keyboardClientMethodSetSelectionName = 6;
|
| const int _keyboardClientMethodSubmitName = 7;
|
|
|
| class _KeyboardClientServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTopLevelInterface(Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTypeDefinition(String typeKey, Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getAllTypeDefinitions(Function responder) {
|
| + responder(null);
|
| + }
|
| }
|
|
|
| abstract class KeyboardClient {
|
| @@ -1710,11 +1788,11 @@ class _KeyboardClientStubControl
|
|
|
|
|
|
|
| - dynamic handleMessage(bindings.ServiceMessage message) {
|
| + void handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + bindings.ControlMessageHandler.handleMessage(
|
| + this, 0, message);
|
| + return;
|
| }
|
| if (_impl == null) {
|
| throw new core.MojoApiError("$this has no implementation set");
|
| @@ -1764,7 +1842,6 @@ class _KeyboardClientStubControl
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| }
|
| - return null;
|
| }
|
|
|
| KeyboardClient get impl => _impl;
|
| @@ -1851,14 +1928,17 @@ const int _keyboardServiceMethodSetTextName = 3;
|
| const int _keyboardServiceMethodSetSelectionName = 4;
|
|
|
| class _KeyboardServiceServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTopLevelInterface(Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTypeDefinition(String typeKey, Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getAllTypeDefinitions(Function responder) {
|
| + responder(null);
|
| + }
|
| }
|
|
|
| abstract class KeyboardService {
|
| @@ -2068,11 +2148,11 @@ class _KeyboardServiceStubControl
|
|
|
|
|
|
|
| - dynamic handleMessage(bindings.ServiceMessage message) {
|
| + void handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + bindings.ControlMessageHandler.handleMessage(
|
| + this, 0, message);
|
| + return;
|
| }
|
| if (_impl == null) {
|
| throw new core.MojoApiError("$this has no implementation set");
|
| @@ -2103,7 +2183,6 @@ class _KeyboardServiceStubControl
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| }
|
| - return null;
|
| }
|
|
|
| KeyboardService get impl => _impl;
|
| @@ -2177,14 +2256,17 @@ class KeyboardServiceStub
|
| const int _keyboardServiceFactoryMethodCreateKeyboardServiceName = 0;
|
|
|
| class _KeyboardServiceFactoryServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTopLevelInterface(Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTypeDefinition(String typeKey, Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getAllTypeDefinitions(Function responder) {
|
| + responder(null);
|
| + }
|
| }
|
|
|
| abstract class KeyboardServiceFactory {
|
| @@ -2335,11 +2417,11 @@ class _KeyboardServiceFactoryStubControl
|
|
|
|
|
|
|
| - dynamic handleMessage(bindings.ServiceMessage message) {
|
| + void handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + bindings.ControlMessageHandler.handleMessage(
|
| + this, 0, message);
|
| + return;
|
| }
|
| if (_impl == null) {
|
| throw new core.MojoApiError("$this has no implementation set");
|
| @@ -2354,7 +2436,6 @@ class _KeyboardServiceFactoryStubControl
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| }
|
| - return null;
|
| }
|
|
|
| KeyboardServiceFactory get impl => _impl;
|
|
|