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

Unified Diff: mojo/dart/packages/mojo_services/lib/notifications/notifications.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/notifications/notifications.mojom.dart
diff --git a/mojo/dart/packages/mojo_services/lib/notifications/notifications.mojom.dart b/mojo/dart/packages/mojo_services/lib/notifications/notifications.mojom.dart
index 0875c0ea67b6fbfec02b6632c8b9077fd1650ae3..c166b5d7371850066e548ace4c4728f9d54a562a 100644
--- a/mojo/dart/packages/mojo_services/lib/notifications/notifications.mojom.dart
+++ b/mojo/dart/packages/mojo_services/lib/notifications/notifications.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;
@@ -114,6 +116,8 @@ class NotificationData extends bindings.Struct {
}
+
+
class _NotificationClientOnSelectedParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -172,6 +176,8 @@ class _NotificationClientOnSelectedParams extends bindings.Struct {
}
+
+
class _NotificationClientOnDismissedParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -230,6 +236,8 @@ class _NotificationClientOnDismissedParams extends bindings.Struct {
}
+
+
class _NotificationUpdateParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(16, 0)
@@ -298,6 +306,8 @@ class _NotificationUpdateParams extends bindings.Struct {
}
+
+
class _NotificationCancelParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(8, 0)
@@ -356,6 +366,8 @@ class _NotificationCancelParams extends bindings.Struct {
}
+
+
class _NotificationServicePostParams extends bindings.Struct {
static const List<bindings.StructDataHeader> kVersions = const [
const bindings.StructDataHeader(32, 0)
@@ -438,9 +450,22 @@ class _NotificationServicePostParams extends bindings.Struct {
}
}
+
+
+
const int _NotificationClient_onSelectedName = 0;
const int _NotificationClient_onDismissedName = 1;
+
+
+class _NotificationClientServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class NotificationClient {
static const String serviceName = null;
void onSelected();
@@ -463,6 +488,9 @@ class _NotificationClientProxyImpl extends bindings.Proxy {
return new _NotificationClientProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _NotificationClientServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -618,11 +646,24 @@ class NotificationClientStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _NotificationClientServiceDescription();
}
const int _Notification_updateName = 0;
const int _Notification_cancelName = 1;
+
+
+class _NotificationServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class Notification {
static const String serviceName = null;
void update(NotificationData notificationData);
@@ -645,6 +686,9 @@ class _NotificationProxyImpl extends bindings.Proxy {
return new _NotificationProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _NotificationServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -801,10 +845,23 @@ class NotificationStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _NotificationServiceDescription();
}
const int _NotificationService_postName = 0;
+
+
+class _NotificationServiceServiceDescription implements service_describer.ServiceDescription {
+ dynamic getTopLevelInterface([Function responseFactory]) => null;
+
+ dynamic getTypeDefinition(String typeKey, [Function responseFactory]) => null;
+
+ dynamic getAllTypeDefinitions([Function responseFactory]) => null;
+}
+
abstract class NotificationService {
static const String serviceName = "notifications::NotificationService";
void post(NotificationData notificationData, Object client, Object notification);
@@ -826,6 +883,9 @@ class _NotificationServiceProxyImpl extends bindings.Proxy {
return new _NotificationServiceProxyImpl.fromEndpoint(endpoint);
}
+ service_describer.ServiceDescription get serviceDescription =>
+ new _NotificationServiceServiceDescription();
+
void handleResponse(bindings.ServiceMessage message) {
switch (message.header.type) {
default:
@@ -971,6 +1031,10 @@ class NotificationServiceStub extends bindings.Stub {
}
int get version => 0;
+
+ service_describer.ServiceDescription get serviceDescription =>
+ new _NotificationServiceServiceDescription();
}
+

Powered by Google App Engine
This is Rietveld 408576698