Index: mojo/dart/packages/mojo_services/lib/nfc/nfc.mojom.dart |
diff --git a/mojo/dart/packages/mojo_services/lib/nfc/nfc.mojom.dart b/mojo/dart/packages/mojo_services/lib/nfc/nfc.mojom.dart |
index 845c0cfe959587cf7de9582ebd6663c283cf8414..66189a81422ab0e741a5a51f10de0d5c6ecb0677 100644 |
--- a/mojo/dart/packages/mojo_services/lib/nfc/nfc.mojom.dart |
+++ b/mojo/dart/packages/mojo_services/lib/nfc/nfc.mojom.dart |
@@ -5,9 +5,12 @@ |
library nfc_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; |
@@ -76,6 +79,20 @@ class NfcData extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _nfc_NfcData__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'NfcData' |
+ ..fullIdentifier = 'nfc.NfcData') |
+ ..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 _NfcTransmissionCancelParams extends bindings.Struct { |
@@ -134,6 +151,13 @@ class _NfcTransmissionCancelParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _nfc_NfcTransmission_Cancel_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_NfcTransmissionCancelParams' |
+ ..fullIdentifier = 'nfc._NfcTransmissionCancelParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
class _NfcReceiverOnReceivedNfcDataParams extends bindings.Struct { |
@@ -202,6 +226,22 @@ class _NfcReceiverOnReceivedNfcDataParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _nfc_NfcReceiver_OnReceivedNfcData_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_NfcReceiverOnReceivedNfcDataParams' |
+ ..fullIdentifier = 'nfc._NfcReceiverOnReceivedNfcDataParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NfcData') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_nfc_NfcData__' |
+ ..typeKey = '_nfc_NfcData__' |
+ )), |
+ ]; |
+} |
class _NfcTransmitOnNextConnectionParams extends bindings.Struct { |
@@ -277,6 +317,34 @@ class _NfcTransmitOnNextConnectionParams extends bindings.Struct { |
'Object containing handles cannot be encoded to JSON.'); |
} |
} |
+mojom_types.MojomStruct _nfc_Nfc_TransmitOnNextConnection_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_NfcTransmitOnNextConnectionParams' |
+ ..fullIdentifier = 'nfc._NfcTransmitOnNextConnectionParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'NfcData') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ |
+ ..identifier = '_nfc_NfcData__' |
+ ..typeKey = '_nfc_NfcData__' |
+ )), |
+ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Transmission') |
+ ..type = (new mojom_types.Type() |
+ ..typeReference = (new mojom_types.TypeReference() |
+ ..nullable = true |
+ |
+ |
+ ..isInterfaceRequest = true |
+ ..identifier = '_nfc_NfcTransmission__' |
+ ..typeKey = '_nfc_NfcTransmission__' |
+ )), |
+ ]; |
+} |
class NfcTransmitOnNextConnectionResponseParams extends bindings.Struct { |
@@ -344,6 +412,17 @@ class NfcTransmitOnNextConnectionResponseParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _nfc_Nfc_TransmitOnNextConnection_ResponseParams__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'NfcTransmitOnNextConnectionResponseParams' |
+ ..fullIdentifier = 'nfc.NfcTransmitOnNextConnectionResponseParams') |
+ ..fields = <mojom_types.StructField>[ |
+ new mojom_types.StructField() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Success') |
+ ..type = (new mojom_types.Type()..simpleType = mojom_types.SimpleType.bool), |
+ ]; |
+} |
class _NfcRegisterParams extends bindings.Struct { |
@@ -402,6 +481,13 @@ class _NfcRegisterParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _nfc_Nfc_Register_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_NfcRegisterParams' |
+ ..fullIdentifier = 'nfc._NfcRegisterParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
class _NfcUnregisterParams extends bindings.Struct { |
@@ -460,9 +546,42 @@ class _NfcUnregisterParams extends bindings.Struct { |
return map; |
} |
} |
+mojom_types.MojomStruct _nfc_Nfc_Unregister_Params__() { |
+ return new mojom_types.MojomStruct() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = '_NfcUnregisterParams' |
+ ..fullIdentifier = 'nfc._NfcUnregisterParams') |
+ ..fields = <mojom_types.StructField>[]; |
+} |
+ |
const int _NfcTransmission_cancelName = 0; |
+mojom_types.MojomInterface _nfc_NfcTransmission__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'NfcTransmission' |
+ ..fullIdentifier = 'nfc.NfcTransmission') |
+ ..interfaceName = 'NfcTransmission' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_NfcTransmission_cancelName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Cancel') |
+ ..ordinal = _NfcTransmission_cancelName..parameters = _nfc_NfcTransmission_Cancel_Params__(), |
+ }; |
+} |
+ |
+class _NfcTransmissionServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _nfc_NfcTransmission__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class NfcTransmission { |
static const String serviceName = null; |
void cancel(); |
@@ -484,6 +603,9 @@ class _NfcTransmissionProxyImpl extends bindings.Proxy { |
return new _NfcTransmissionProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcTransmissionServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -626,10 +748,39 @@ class NfcTransmissionStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcTransmissionServiceDescription(); |
} |
const int _NfcReceiver_onReceivedNfcDataName = 0; |
+mojom_types.MojomInterface _nfc_NfcReceiver__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'NfcReceiver' |
+ ..fullIdentifier = 'nfc.NfcReceiver') |
+ ..interfaceName = 'NfcReceiver' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_NfcReceiver_onReceivedNfcDataName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'OnReceivedNfcData') |
+ ..ordinal = _NfcReceiver_onReceivedNfcDataName..parameters = _nfc_NfcReceiver_OnReceivedNfcData_Params__(), |
+ }; |
+} |
+ |
+class _NfcReceiverServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _nfc_NfcReceiver__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class NfcReceiver { |
static const String serviceName = "nfc::NfcReceiver"; |
void onReceivedNfcData(NfcData nfcData); |
@@ -651,6 +802,9 @@ class _NfcReceiverProxyImpl extends bindings.Proxy { |
return new _NfcReceiverProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcReceiverServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
default: |
@@ -794,12 +948,46 @@ class NfcReceiverStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcReceiverServiceDescription(); |
} |
const int _Nfc_transmitOnNextConnectionName = 0; |
const int _Nfc_registerName = 1; |
const int _Nfc_unregisterName = 2; |
+mojom_types.MojomInterface _nfc_Nfc__() { |
+ return new mojom_types.MojomInterface() |
+ ..declData = (new mojom_types.DeclarationData() |
+ ..shortName = 'Nfc' |
+ ..fullIdentifier = 'nfc.Nfc') |
+ ..interfaceName = 'Nfc' |
+ ..methods = <int, mojom_types.MojomMethod>{ |
+_Nfc_transmitOnNextConnectionName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'TransmitOnNextConnection') |
+ ..ordinal = _Nfc_transmitOnNextConnectionName |
+ ..responseParams = _nfc_Nfc_TransmitOnNextConnection_ResponseParams__()..parameters = _nfc_Nfc_TransmitOnNextConnection_Params__(),_Nfc_registerName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Register') |
+ ..ordinal = _Nfc_registerName..parameters = _nfc_Nfc_Register_Params__(),_Nfc_unregisterName: new mojom_types.MojomMethod() |
+ ..declData = (new mojom_types.DeclarationData()..shortName = 'Unregister') |
+ ..ordinal = _Nfc_unregisterName..parameters = _nfc_Nfc_Unregister_Params__(), |
+ }; |
+} |
+ |
+class _NfcServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) { |
+ return _nfc_Nfc__(); |
+ } |
+ dynamic getTypeDefinition(String typeKey,[Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions()[typeKey]; |
+ } |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) { |
+ return getAllMojomTypeDefinitions(); |
+ } |
+} |
+ |
abstract class Nfc { |
static const String serviceName = "nfc::Nfc"; |
dynamic transmitOnNextConnection(NfcData nfcData,Object transmission,[Function responseFactory = null]); |
@@ -823,6 +1011,9 @@ class _NfcProxyImpl extends bindings.Proxy { |
return new _NfcProxyImpl.fromEndpoint(endpoint); |
} |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcServiceDescription(); |
+ |
void handleResponse(bindings.ServiceMessage message) { |
switch (message.header.type) { |
case _Nfc_transmitOnNextConnectionName: |
@@ -1035,6 +1226,59 @@ class NfcStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcServiceDescription(); |
+} |
+ |
+ |
+ |
+ |
+ |
+ |
+ |
+Map<String, mojom_types.UserDefinedType> _initDescriptions() { |
+ var map = new HashMap<String, mojom_types.UserDefinedType>(); |
+map["_nfc_NfcData__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _nfc_NfcData__(); |
+map["_nfc_NfcTransmission_Cancel_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _nfc_NfcTransmission_Cancel_Params__(); |
+map["_nfc_NfcReceiver_OnReceivedNfcData_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _nfc_NfcReceiver_OnReceivedNfcData_Params__(); |
+map["_nfc_Nfc_TransmitOnNextConnection_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _nfc_Nfc_TransmitOnNextConnection_Params__(); |
+map["_nfc_Nfc_TransmitOnNextConnection_ResponseParams__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _nfc_Nfc_TransmitOnNextConnection_ResponseParams__(); |
+map["_nfc_Nfc_Register_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _nfc_Nfc_Register_Params__(); |
+map["_nfc_Nfc_Unregister_Params__"] = |
+ new mojom_types.UserDefinedType() |
+ ..structType = _nfc_Nfc_Unregister_Params__(); |
+map["_nfc_NfcTransmission__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _nfc_NfcTransmission__(); |
+map["_nfc_NfcReceiver__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _nfc_NfcReceiver__(); |
+map["_nfc_Nfc__"] = |
+ new mojom_types.UserDefinedType() |
+ ..interfaceType = _nfc_Nfc__(); |
+ |
+ return map; |
} |
+var _MojomDesc; |
+Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() { |
+ if (_MojomDesc == null) { |
+ _MojomDesc = _initDescriptions(); |
+ } |
+ return _MojomDesc; |
+} |