Bug 1080883 - Part 1: Add MMICall (webidl). r=hsinyi

This commit is contained in:
Szu-Yu Chen [:aknow] 2014-11-11 17:15:31 +08:00
Родитель ee596ffa2e
Коммит e51706d52a
3 изменённых файлов: 16 добавлений и 2 удалений

13
dom/webidl/MMICall.webidl Normal file
Просмотреть файл

@ -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',