2015-04-11 06:19:28 +03:00
|
|
|
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/
|
|
|
|
*/
|
|
|
|
|
2015-07-27 22:35:28 +03:00
|
|
|
[Constructor(DOMString type, optional PushEventInit eventInitDict),
|
|
|
|
Func="nsContentUtils::PushEnabled",
|
|
|
|
Exposed=ServiceWorker]
|
2015-04-11 06:19:28 +03:00
|
|
|
interface PushEvent : ExtendableEvent {
|
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
|
|
|
};
|