| 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 182d1476417f76f5413a6fff2552a98ab22a0e06..e0041d6959da09d56c60d7e9571f391d7d3cca00 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/nfc/nfc.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/nfc/nfc.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;
|
|
|
|
|
|
|
| @@ -77,6 +79,19 @@ class NfcData extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _nfc_NfcData__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -135,6 +150,12 @@ class NfcTransmissionCancelParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _nfc_NfcTransmission_Cancel_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NfcTransmissionCancelParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class NfcReceiverOnReceivedNfcDataParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -203,6 +224,21 @@ class NfcReceiverOnReceivedNfcDataParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _nfc_NfcReceiver_OnReceivedNfcData_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -278,6 +314,33 @@ class NfcTransmitOnNextConnectionParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _nfc_Nfc_TransmitOnNextConnection_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -345,6 +408,16 @@ class NfcTransmitOnNextConnectionResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _nfc_Nfc_TransmitOnNextConnection_ResponseParams__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = '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 {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -403,6 +476,12 @@ class NfcRegisterParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _nfc_Nfc_Register_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NfcRegisterParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
|
|
| class NfcUnregisterParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| @@ -461,11 +540,43 @@ class NfcUnregisterParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +mojom_types.MojomStruct _nfc_Nfc_Unregister_Params__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'NfcUnregisterParams')
|
| + ..fields = <mojom_types.StructField>[];
|
| +}
|
| +
|
| +
|
| const int kNfcTransmission_cancel_name = 0;
|
|
|
| const String NfcTransmissionName =
|
| 'nfc::NfcTransmission';
|
|
|
| +mojom_types.MojomInterface _nfc_NfcTransmission__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "NfcTransmission")
|
| + ..interfaceName = "NfcTransmission"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kNfcTransmission_cancel_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Cancel")
|
| + ..ordinal = kNfcTransmission_cancel_name..parameters = _nfc_NfcTransmission_Cancel_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _NfcTransmissionServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +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 {
|
| void cancel();
|
|
|
| @@ -489,6 +600,9 @@ class NfcTransmissionProxyImpl extends bindings.Proxy {
|
|
|
| String get name => NfcTransmissionName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _NfcTransmissionServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -633,6 +747,9 @@ class NfcTransmissionStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _NfcTransmissionServiceDescription();
|
| }
|
|
|
| const int kNfcReceiver_onReceivedNfcData_name = 0;
|
| @@ -640,6 +757,31 @@ const int kNfcReceiver_onReceivedNfcData_name = 0;
|
| const String NfcReceiverName =
|
| 'nfc::NfcReceiver';
|
|
|
| +mojom_types.MojomInterface _nfc_NfcReceiver__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "NfcReceiver")
|
| + ..interfaceName = "NfcReceiver"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kNfcReceiver_onReceivedNfcData_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "OnReceivedNfcData")
|
| + ..ordinal = kNfcReceiver_onReceivedNfcData_name..parameters = _nfc_NfcReceiver_OnReceivedNfcData_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _NfcReceiverServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +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 {
|
| void onReceivedNfcData(NfcData nfcData);
|
|
|
| @@ -663,6 +805,9 @@ class NfcReceiverProxyImpl extends bindings.Proxy {
|
|
|
| String get name => NfcReceiverName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _NfcReceiverServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| default:
|
| @@ -808,6 +953,9 @@ class NfcReceiverStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _NfcReceiverServiceDescription();
|
| }
|
|
|
| const int kNfc_transmitOnNextConnection_name = 0;
|
| @@ -817,6 +965,36 @@ const int kNfc_unregister_name = 2;
|
| const String NfcName =
|
| 'nfc::Nfc';
|
|
|
| +mojom_types.MojomInterface _nfc_Nfc__() {
|
| + return new mojom_types.MojomInterface()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Nfc")
|
| + ..interfaceName = "Nfc"
|
| + ..methods = <int, mojom_types.MojomMethod>{
|
| +kNfc_transmitOnNextConnection_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "TransmitOnNextConnection")
|
| + ..ordinal = kNfc_transmitOnNextConnection_name
|
| + ..responseParams = _nfc_Nfc_TransmitOnNextConnection_ResponseParams__()..parameters = _nfc_Nfc_TransmitOnNextConnection_Params__(),kNfc_register_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Register")
|
| + ..ordinal = kNfc_register_name..parameters = _nfc_Nfc_Register_Params__(),kNfc_unregister_name: new mojom_types.MojomMethod()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = "Unregister")
|
| + ..ordinal = kNfc_unregister_name..parameters = _nfc_Nfc_Unregister_Params__(),
|
| + };
|
| +}
|
| +
|
| +class _NfcServiceDescription extends service_describer.ServiceDescription {
|
| + // Avoid infinite loop by overriding serviceDescription field.
|
| + final service_describer.ServiceDescription serviceDescription = null;
|
| +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 {
|
| dynamic transmitOnNextConnection(NfcData nfcData,Object transmission,[Function responseFactory = null]);
|
| void register();
|
| @@ -842,6 +1020,9 @@ class NfcProxyImpl extends bindings.Proxy {
|
|
|
| String get name => NfcName;
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _NfcServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case kNfc_transmitOnNextConnection_name:
|
| @@ -1057,6 +1238,90 @@ class NfcStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _NfcServiceDescription();
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +var _MojomDesc__ = _initDescriptions();
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new Map<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_NfcReceiver__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _nfc_NfcReceiver__();
|
| +
|
| +
|
| + map["_nfc_Nfc__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..interfaceType = _nfc_Nfc__();
|
| +
|
| + return map;
|
| +}
|
| +
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + return _MojomDesc__;
|
| }
|
|
|
|
|
|
|