Bug 969218 - Part 1: Use promise for dial and dialEmergency - webidl. r=hsinyi

This commit is contained in:
Szu-Yu Chen [:aknow] 2014-02-26 11:03:55 -08:00
parent a429f1b38a
commit 45066f58f7

View File

@ -16,11 +16,11 @@ interface Telephony : EventTarget {
* |navigator.mozMobileConnections.length|.
*/
[Throws]
TelephonyCall dial(DOMString number, optional unsigned long serviceId);
// Promise<TelephonyCall>
Promise dial(DOMString number, optional unsigned long serviceId);
[Throws]
TelephonyCall dialEmergency(DOMString number, optional unsigned long serviceId);
// Promise<TelephonyCall>
Promise dialEmergency(DOMString number, optional unsigned long serviceId);
[Throws]
void startTone(DOMString tone, optional unsigned long serviceId);