2012-10-17 15:17:19 +04: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/.
|
|
|
|
*/
|
|
|
|
|
2014-10-15 10:50:00 +04:00
|
|
|
[Pref="dom.telephony.enabled",
|
2015-07-14 05:25:26 +03:00
|
|
|
CheckAnyPermissions="telephony",
|
2014-10-15 10:50:00 +04:00
|
|
|
AvailableIn="CertifiedApps",
|
2014-01-03 09:55:27 +04:00
|
|
|
Constructor(DOMString type, optional USSDReceivedEventInit eventInitDict)]
|
2013-06-18 22:48:45 +04:00
|
|
|
interface USSDReceivedEvent : Event
|
|
|
|
{
|
2014-10-15 10:50:00 +04:00
|
|
|
readonly attribute unsigned long serviceId;
|
2013-06-18 22:48:45 +04:00
|
|
|
readonly attribute DOMString? message;
|
2014-10-15 10:50:00 +04:00
|
|
|
readonly attribute USSDSession? session; // null if session is ended.
|
2013-06-18 22:48:45 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
dictionary USSDReceivedEventInit : EventInit
|
|
|
|
{
|
2014-10-15 10:50:00 +04:00
|
|
|
unsigned long serviceId = 0;
|
2012-10-31 16:53:09 +04:00
|
|
|
DOMString? message = null;
|
2014-10-15 10:50:00 +04:00
|
|
|
USSDSession? session = null;
|
2013-06-18 22:48:45 +04:00
|
|
|
};
|