| 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 735a7b809012f9f838d9dbe00a9fb4152c913e9e..7e836970c9aa59c9930984b02112a4336bede23b 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/notifications/notifications.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/notifications/notifications.mojom.dart
|
| @@ -22,6 +22,14 @@ class NotificationData extends bindings.Struct {
|
|
|
| NotificationData() : super(kVersions.last.size);
|
|
|
| + NotificationData.init(
|
| + String this.title,
|
| + String this.text,
|
| + bool this.playSound,
|
| + bool this.vibrate,
|
| + bool this.setLights
|
| + ) : super(kVersions.last.size);
|
| +
|
| static NotificationData deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -145,6 +153,9 @@ class _NotificationClientOnSelectedParams extends bindings.Struct {
|
|
|
| _NotificationClientOnSelectedParams() : super(kVersions.last.size);
|
|
|
| + _NotificationClientOnSelectedParams.init(
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _NotificationClientOnSelectedParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -203,6 +214,9 @@ class _NotificationClientOnDismissedParams extends bindings.Struct {
|
|
|
| _NotificationClientOnDismissedParams() : super(kVersions.last.size);
|
|
|
| + _NotificationClientOnDismissedParams.init(
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _NotificationClientOnDismissedParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -262,6 +276,10 @@ class _NotificationUpdateParams extends bindings.Struct {
|
|
|
| _NotificationUpdateParams() : super(kVersions.last.size);
|
|
|
| + _NotificationUpdateParams.init(
|
| + NotificationData this.notificationData
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _NotificationUpdateParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -334,6 +352,9 @@ class _NotificationCancelParams extends bindings.Struct {
|
|
|
| _NotificationCancelParams() : super(kVersions.last.size);
|
|
|
| + _NotificationCancelParams.init(
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _NotificationCancelParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -395,6 +416,12 @@ class _NotificationServicePostParams extends bindings.Struct {
|
|
|
| _NotificationServicePostParams() : super(kVersions.last.size);
|
|
|
| + _NotificationServicePostParams.init(
|
| + NotificationData this.notificationData,
|
| + NotificationClientInterface this.client,
|
| + NotificationInterfaceRequest this.notification
|
| + ) : super(kVersions.last.size);
|
| +
|
| static _NotificationServicePostParams deserialize(bindings.Message message) {
|
| var decoder = new bindings.Decoder(message);
|
| var result = decode(decoder);
|
| @@ -486,14 +513,17 @@ const int _notificationClientMethodOnSelectedName = 0;
|
| const int _notificationClientMethodOnDismissedName = 1;
|
|
|
| class _NotificationClientServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTopLevelInterface(Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTypeDefinition(String typeKey, Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getAllTypeDefinitions(Function responder) {
|
| + responder(null);
|
| + }
|
| }
|
|
|
| abstract class NotificationClient {
|
| @@ -656,11 +686,11 @@ class _NotificationClientStubControl
|
|
|
|
|
|
|
| - dynamic handleMessage(bindings.ServiceMessage message) {
|
| + void handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + bindings.ControlMessageHandler.handleMessage(
|
| + this, 0, message);
|
| + return;
|
| }
|
| if (_impl == null) {
|
| throw new core.MojoApiError("$this has no implementation set");
|
| @@ -676,7 +706,6 @@ class _NotificationClientStubControl
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| }
|
| - return null;
|
| }
|
|
|
| NotificationClient get impl => _impl;
|
| @@ -742,14 +771,17 @@ const int _notificationMethodUpdateName = 0;
|
| const int _notificationMethodCancelName = 1;
|
|
|
| class _NotificationServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTopLevelInterface(Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTypeDefinition(String typeKey, Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getAllTypeDefinitions(Function responder) {
|
| + responder(null);
|
| + }
|
| }
|
|
|
| abstract class Notification {
|
| @@ -913,11 +945,11 @@ class _NotificationStubControl
|
|
|
|
|
|
|
| - dynamic handleMessage(bindings.ServiceMessage message) {
|
| + void handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + bindings.ControlMessageHandler.handleMessage(
|
| + this, 0, message);
|
| + return;
|
| }
|
| if (_impl == null) {
|
| throw new core.MojoApiError("$this has no implementation set");
|
| @@ -935,7 +967,6 @@ class _NotificationStubControl
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| }
|
| - return null;
|
| }
|
|
|
| Notification get impl => _impl;
|
| @@ -1000,14 +1031,17 @@ class NotificationStub
|
| const int _notificationServiceMethodPostName = 0;
|
|
|
| class _NotificationServiceServiceDescription implements service_describer.ServiceDescription {
|
| - dynamic getTopLevelInterface([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTopLevelInterface(Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getTypeDefinition(String typeKey, [Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getTypeDefinition(String typeKey, Function responder) {
|
| + responder(null);
|
| + }
|
|
|
| - dynamic getAllTypeDefinitions([Function responseFactory]) =>
|
| - responseFactory(null);
|
| + void getAllTypeDefinitions(Function responder) {
|
| + responder(null);
|
| + }
|
| }
|
|
|
| abstract class NotificationService {
|
| @@ -1159,11 +1193,11 @@ class _NotificationServiceStubControl
|
|
|
|
|
|
|
| - dynamic handleMessage(bindings.ServiceMessage message) {
|
| + void handleMessage(bindings.ServiceMessage message) {
|
| if (bindings.ControlMessageHandler.isControlMessage(message)) {
|
| - return bindings.ControlMessageHandler.handleMessage(this,
|
| - 0,
|
| - message);
|
| + bindings.ControlMessageHandler.handleMessage(
|
| + this, 0, message);
|
| + return;
|
| }
|
| if (_impl == null) {
|
| throw new core.MojoApiError("$this has no implementation set");
|
| @@ -1178,7 +1212,6 @@ class _NotificationServiceStubControl
|
| throw new bindings.MojoCodecError("Unexpected message name");
|
| break;
|
| }
|
| - return null;
|
| }
|
|
|
| NotificationService get impl => _impl;
|
|
|