2018-09-13 23:04:55 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2015-04-11 06:19:28 +03:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* https://w3c.github.io/push-api/
|
|
|
|
*/
|
|
|
|
|
2019-09-11 17:35:28 +03:00
|
|
|
[Pref="dom.push.enabled",
|
2015-07-27 22:35:28 +03:00
|
|
|
Exposed=ServiceWorker]
|
2015-04-11 06:19:28 +03:00
|
|
|
interface PushEvent : ExtendableEvent {
|
2019-09-11 17:35:28 +03:00
|
|
|
[Throws]
|
|
|
|
constructor(DOMString type, optional PushEventInit eventInitDict = {});
|
|
|
|
|
2015-09-17 15:13:04 +03:00
|
|
|
readonly attribute PushMessageData? data;
|
2015-04-11 06:19:28 +03:00
|
|
|
};
|
|
|
|
|
2015-09-17 15:10:42 +03:00
|
|
|
typedef (BufferSource or USVString) PushMessageDataInit;
|
2015-04-11 06:19:28 +03:00
|
|
|
|
|
|
|
dictionary PushEventInit : ExtendableEventInit {
|
2015-09-17 15:10:42 +03:00
|
|
|
PushMessageDataInit data;
|
2015-07-27 22:35:28 +03:00
|
|
|
};
|