Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Unified Diff: mojo/dart/packages/mojo_services/lib/nfc/nfc.mojom.dart

Issue 1539673003: Generate Mojom Types in Dart (Take 2) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Merge with master Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..a75cf275dbac7095d73c63a37a7509354f47c3e1 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,21 @@ class _NfcUnregisterParams extends bindings.Struct {
}
}
+
+
+
const int _NfcTransmission_cancelName = 0;
+
+
+class _NfcTransmissionServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class NfcTransmission {
static const String serviceName = null;
void cancel();
@@ -484,6 +511,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 +656,23 @@ 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;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class NfcReceiver {
static const String serviceName = "nfc::NfcReceiver";
void onReceivedNfcData(NfcData nfcData);
@@ -651,6 +694,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 +840,25 @@ 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;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class Nfc {
static const String serviceName = "nfc::Nfc";
dynamic transmitOnNextConnection(NfcData nfcData,Object transmission,[Function responseFactory = null]);
@@ -823,6 +882,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 +1097,10 @@ class NfcStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _NfcServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698