зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1080883 - Part 1: Add MMICall (webidl). r=hsinyi
This commit is contained in:
Родитель
ee596ffa2e
Коммит
e51706d52a
|
@ -0,0 +1,13 @@
|
||||||
|
/* -*- 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/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
[Pref="dom.telephony.enabled",
|
||||||
|
CheckPermissions="telephony",
|
||||||
|
AvailableIn="CertifiedApps"]
|
||||||
|
interface MMICall {
|
||||||
|
[Throws]
|
||||||
|
readonly attribute Promise<MozMMIResult> result;
|
||||||
|
};
|
|
@ -20,10 +20,10 @@ interface Telephony : EventTarget {
|
||||||
* Make a phone call or send the mmi code depending on the number provided.
|
* Make a phone call or send the mmi code depending on the number provided.
|
||||||
*
|
*
|
||||||
* TelephonyCall - for call setup
|
* TelephonyCall - for call setup
|
||||||
* DOMRequest - for MMI code
|
* MMICall - for MMI code
|
||||||
*/
|
*/
|
||||||
[Throws]
|
[Throws]
|
||||||
Promise<(TelephonyCall or DOMRequest)> dial(DOMString number, optional unsigned long serviceId);
|
Promise<(TelephonyCall or MMICall)> dial(DOMString number, optional unsigned long serviceId);
|
||||||
|
|
||||||
[Throws]
|
[Throws]
|
||||||
Promise<TelephonyCall> dialEmergency(DOMString number, optional unsigned long serviceId);
|
Promise<TelephonyCall> dialEmergency(DOMString number, optional unsigned long serviceId);
|
||||||
|
|
|
@ -276,6 +276,7 @@ WEBIDL_FILES = [
|
||||||
'MessagePortList.webidl',
|
'MessagePortList.webidl',
|
||||||
'MimeType.webidl',
|
'MimeType.webidl',
|
||||||
'MimeTypeArray.webidl',
|
'MimeTypeArray.webidl',
|
||||||
|
'MMICall.webidl',
|
||||||
'MouseEvent.webidl',
|
'MouseEvent.webidl',
|
||||||
'MouseScrollEvent.webidl',
|
'MouseScrollEvent.webidl',
|
||||||
'MozActivity.webidl',
|
'MozActivity.webidl',
|
||||||
|
|
Загрузка…
Ссылка в новой задаче