| Index: mojo/dart/packages/mojo_services/lib/mojo/clipboard.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/mojo/clipboard.mojom.dart b/mojo/dart/packages/mojo_services/lib/mojo/clipboard.mojom.dart
|
| index 08a16894f5d868d5c46c117c07d1b2526cae9626..82ad11ab61855b6a5c79a31880e694c55c629c79 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/mojo/clipboard.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/mojo/clipboard.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library clipboard_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;
|
|
|
|
|
|
|
| @@ -80,6 +83,22 @@ class _ClipboardGetSequenceNumberParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _clipboard_Clipboard_GetSequenceNumber_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ClipboardGetSequenceNumberParams'
|
| + ..fullIdentifier = 'mojo._ClipboardGetSequenceNumberParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ClipboardType')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_clipboard_Type__'
|
| + ..typeKey = '_clipboard_Type__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class ClipboardGetSequenceNumberResponseParams extends bindings.Struct {
|
| @@ -147,6 +166,17 @@ class ClipboardGetSequenceNumberResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _clipboard_Clipboard_GetSequenceNumber_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ClipboardGetSequenceNumberResponseParams'
|
| + ..fullIdentifier = 'mojo.ClipboardGetSequenceNumberResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Sequence')
|
| + ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint64),
|
| + ];
|
| +}
|
|
|
|
|
| class _ClipboardGetAvailableMimeTypesParams extends bindings.Struct {
|
| @@ -218,6 +248,22 @@ class _ClipboardGetAvailableMimeTypesParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _clipboard_Clipboard_GetAvailableMimeTypes_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ClipboardGetAvailableMimeTypesParams'
|
| + ..fullIdentifier = 'mojo._ClipboardGetAvailableMimeTypesParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ClipboardTypes')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_clipboard_Type__'
|
| + ..typeKey = '_clipboard_Type__'
|
| + )),
|
| + ];
|
| +}
|
|
|
|
|
| class ClipboardGetAvailableMimeTypesResponseParams extends bindings.Struct {
|
| @@ -301,6 +347,19 @@ class ClipboardGetAvailableMimeTypesResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _clipboard_Clipboard_GetAvailableMimeTypes_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ClipboardGetAvailableMimeTypesResponseParams'
|
| + ..fullIdentifier = 'mojo.ClipboardGetAvailableMimeTypesResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Types')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)))),
|
| + ];
|
| +}
|
|
|
|
|
| class _ClipboardReadMimeTypeParams extends bindings.Struct {
|
| @@ -381,6 +440,27 @@ class _ClipboardReadMimeTypeParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _clipboard_Clipboard_ReadMimeType_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ClipboardReadMimeTypeParams'
|
| + ..fullIdentifier = 'mojo._ClipboardReadMimeTypeParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ClipboardType')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_clipboard_Type__'
|
| + ..typeKey = '_clipboard_Type__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'MimeType')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| + ];
|
| +}
|
|
|
|
|
| class ClipboardReadMimeTypeResponseParams extends bindings.Struct {
|
| @@ -448,6 +528,20 @@ class ClipboardReadMimeTypeResponseParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _clipboard_Clipboard_ReadMimeType_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ClipboardReadMimeTypeResponseParams'
|
| + ..fullIdentifier = 'mojo.ClipboardReadMimeTypeResponseParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Data')
|
| + ..type = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..nullable = true
|
| +
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))),
|
| + ];
|
| +}
|
|
|
|
|
| class _ClipboardWriteClipboardDataParams extends bindings.Struct {
|
| @@ -584,13 +678,39 @@ class _ClipboardWriteClipboardDataParams extends bindings.Struct {
|
| return map;
|
| }
|
| }
|
| +mojom_types.MojomStruct _clipboard_Clipboard_WriteClipboardData_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = '_ClipboardWriteClipboardDataParams'
|
| + ..fullIdentifier = 'mojo._ClipboardWriteClipboardDataParams')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ClipboardType')
|
| + ..type = (new mojom_types.Type()
|
| + ..typeReference = (new mojom_types.TypeReference()
|
| +
|
| + ..identifier = '_clipboard_Type__'
|
| + ..typeKey = '_clipboard_Type__'
|
| + )),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Data')
|
| + ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
|
| + ..nullable = true
|
| +
|
| + ..keyType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false))
|
| + ..valueType = (new mojom_types.Type()..arrayType = (new mojom_types.ArrayType()
|
| + ..elementType = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.uint8))))),
|
| + ];
|
| +}
|
| +
|
|
|
| const int _Clipboard_getSequenceNumberName = 0;
|
| const int _Clipboard_getAvailableMimeTypesName = 1;
|
| const int _Clipboard_readMimeTypeName = 2;
|
| const int _Clipboard_writeClipboardDataName = 3;
|
| -
|
| -class ClipboardType extends bindings.MojoEnum {
|
| + class ClipboardType extends bindings.MojoEnum {
|
| static const ClipboardType copyPaste = const ClipboardType._(0);
|
| static const ClipboardType selection = const ClipboardType._(1);
|
| static const ClipboardType drag = const ClipboardType._(2);
|
| @@ -641,12 +761,65 @@ class ClipboardType extends bindings.MojoEnum {
|
| return 'ClipboardType.selection';
|
| case drag:
|
| return 'ClipboardType.drag';
|
| + default:
|
| + return null;
|
| }
|
| }
|
|
|
| int toJson() => mojoEnumValue;
|
| }
|
|
|
| +mojom_types.MojomEnum _clipboard_Type__() {
|
| + return new mojom_types.MojomEnum()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'ClipboardType'
|
| + ..fullIdentifier = 'mojo.ClipboardType')
|
| + ..values = <mojom_types.EnumValue>[new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'CopyPaste')
|
| + ..enumTypeKey = '_clipboard_Type__'
|
| + ..intValue = 0,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Selection')
|
| + ..enumTypeKey = '_clipboard_Type__'
|
| + ..intValue = 1,new mojom_types.EnumValue()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Drag')
|
| + ..enumTypeKey = '_clipboard_Type__'
|
| + ..intValue = 2,];
|
| +}
|
| +
|
| +mojom_types.MojomInterface _clipboard_Clipboard__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'Clipboard'
|
| + ..fullIdentifier = 'mojo.Clipboard')
|
| + ..interfaceName = 'Clipboard'
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +_Clipboard_getSequenceNumberName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GetSequenceNumber')
|
| + ..ordinal = _Clipboard_getSequenceNumberName
|
| + ..responseParams = _clipboard_Clipboard_GetSequenceNumber_ResponseParams__()..parameters = _clipboard_Clipboard_GetSequenceNumber_Params__(),_Clipboard_getAvailableMimeTypesName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'GetAvailableMimeTypes')
|
| + ..ordinal = _Clipboard_getAvailableMimeTypesName
|
| + ..responseParams = _clipboard_Clipboard_GetAvailableMimeTypes_ResponseParams__()..parameters = _clipboard_Clipboard_GetAvailableMimeTypes_Params__(),_Clipboard_readMimeTypeName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'ReadMimeType')
|
| + ..ordinal = _Clipboard_readMimeTypeName
|
| + ..responseParams = _clipboard_Clipboard_ReadMimeType_ResponseParams__()..parameters = _clipboard_Clipboard_ReadMimeType_Params__(),_Clipboard_writeClipboardDataName: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'WriteClipboardData')
|
| + ..ordinal = _Clipboard_writeClipboardDataName..parameters = _clipboard_Clipboard_WriteClipboardData_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _ClipboardServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) {
|
| + return _clipboard_Clipboard__();
|
| + }
|
| + dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions()[typeKey];
|
| + }
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) {
|
| + return getAllMojomTypeDefinitions();
|
| + }
|
| +}
|
| +
|
| abstract class Clipboard {
|
| static const String serviceName = "mojo::Clipboard";
|
| dynamic getSequenceNumber(ClipboardType clipboardType,[Function responseFactory = null]);
|
| @@ -674,6 +847,9 @@ class _ClipboardProxyImpl extends bindings.Proxy {
|
| return new _ClipboardProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ClipboardServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _Clipboard_getSequenceNumberName:
|
| @@ -987,6 +1163,56 @@ class ClipboardStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _ClipboardServiceDescription();
|
| }
|
|
|
|
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_clipboard_Clipboard_GetSequenceNumber_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _clipboard_Clipboard_GetSequenceNumber_Params__();
|
| +map["_clipboard_Clipboard_GetSequenceNumber_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _clipboard_Clipboard_GetSequenceNumber_ResponseParams__();
|
| +map["_clipboard_Clipboard_GetAvailableMimeTypes_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _clipboard_Clipboard_GetAvailableMimeTypes_Params__();
|
| +map["_clipboard_Clipboard_GetAvailableMimeTypes_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _clipboard_Clipboard_GetAvailableMimeTypes_ResponseParams__();
|
| +map["_clipboard_Clipboard_ReadMimeType_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _clipboard_Clipboard_ReadMimeType_Params__();
|
| +map["_clipboard_Clipboard_ReadMimeType_ResponseParams__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _clipboard_Clipboard_ReadMimeType_ResponseParams__();
|
| +map["_clipboard_Clipboard_WriteClipboardData_Params__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _clipboard_Clipboard_WriteClipboardData_Params__();
|
| +map["_clipboard_Clipboard__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _clipboard_Clipboard__();
|
| + map["_clipboard_Type__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..enumType = _clipboard_Type__();
|
| +
|
| + return map;
|
| +}
|
| +
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
| +
|
|
|