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..770a83722c7dad90b4a11b111be6a7a60c0ca28c 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/bindings/types/mojom_types.mojom.dart' as mojom_types; |
+import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer; |
@@ -78,6 +80,8 @@ class NfcData extends bindings.Struct { |
} |
+ |
+ |
class _NfcTransmissionCancelParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(8, 0) |
@@ -136,6 +140,8 @@ class _NfcTransmissionCancelParams extends bindings.Struct { |
} |
+ |
+ |
class _NfcReceiverOnReceivedNfcDataParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(16, 0) |
@@ -204,6 +210,8 @@ class _NfcReceiverOnReceivedNfcDataParams extends bindings.Struct { |
} |
+ |
+ |
class _NfcTransmitOnNextConnectionParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(24, 0) |
@@ -279,6 +287,8 @@ class _NfcTransmitOnNextConnectionParams extends bindings.Struct { |
} |
+ |
+ |
class NfcTransmitOnNextConnectionResponseParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(16, 0) |
@@ -346,6 +356,8 @@ class NfcTransmitOnNextConnectionResponseParams extends bindings.Struct { |
} |
+ |
+ |
class _NfcRegisterParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(8, 0) |
@@ -404,6 +416,8 @@ class _NfcRegisterParams extends bindings.Struct { |
} |
+ |
+ |
class _NfcUnregisterParams extends bindings.Struct { |
static const List<bindings.StructDataHeader> kVersions = const [ |
const bindings.StructDataHeader(8, 0) |
@@ -461,8 +475,22 @@ class _NfcUnregisterParams extends bindings.Struct { |
} |
} |
+ |
+ |
+ |
const int _NfcTransmission_cancelName = 0; |
+ |
+ |
+class _NfcTransmissionServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) => |
+ null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
+} |
+ |
abstract class NfcTransmission { |
static const String serviceName = null; |
void cancel(); |
@@ -484,6 +512,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 +657,24 @@ class NfcTransmissionStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcTransmissionServiceDescription(); |
} |
const int _NfcReceiver_onReceivedNfcDataName = 0; |
+ |
+ |
+class _NfcReceiverServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) => |
+ null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
+} |
+ |
abstract class NfcReceiver { |
static const String serviceName = "nfc::NfcReceiver"; |
void onReceivedNfcData(NfcData nfcData); |
@@ -651,6 +696,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 +842,26 @@ 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; |
+ |
+ |
+class _NfcServiceDescription implements service_describer.ServiceDescription { |
+dynamic getTopLevelInterface([Function responseFactory = null]) => null; |
+ |
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) => |
+ null; |
+ |
+ dynamic getAllTypeDefinitions([Function responseFactory = null]) => null; |
+} |
+ |
abstract class Nfc { |
static const String serviceName = "nfc::Nfc"; |
dynamic transmitOnNextConnection(NfcData nfcData,Object transmission,[Function responseFactory = null]); |
@@ -823,6 +885,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 +1100,11 @@ class NfcStub extends bindings.Stub { |
} |
int get version => 0; |
+ |
+ service_describer.ServiceDescription get serviceDescription => |
+ new _NfcServiceDescription(); |
} |
+ |
+ |