Bug 814625 - Part 2: WebIDL: Add multisim support. r=hsinyi, r=khuey

This commit is contained in:
Szu-Yu Chen [:aknow] 2013-10-30 15:06:41 -04:00
parent 7cea42f8d8
commit 14ad5c3087
2 changed files with 18 additions and 5 deletions

View File

@ -6,17 +6,27 @@
[Pref="dom.telephony.enabled"]
interface Telephony : EventTarget {
[Throws]
TelephonyCall dial(DOMString number);
/**
* There are multiple telephony services in multi-sim architecture. We use
* |serviceId| to indicate the target telephony service. If not specified,
* the implementation MUST use the default service.
*
* Possible values of |serviceId| are 0 ~ (number of services - 1), which is
* simply the index of a service. Get number of services by acquiring
* |navigator.mozMobileConnections.length|.
*/
[Throws]
TelephonyCall dialEmergency(DOMString number);
TelephonyCall dial(DOMString number, optional unsigned long serviceId);
[Throws]
void startTone(DOMString tone);
TelephonyCall dialEmergency(DOMString number, optional unsigned long serviceId);
[Throws]
void stopTone();
void startTone(DOMString tone, optional unsigned long serviceId);
[Throws]
void stopTone(optional unsigned long serviceId);
[Throws]
attribute boolean muted;

View File

@ -6,6 +6,9 @@
[Pref="dom.telephony.enabled"]
interface TelephonyCall : EventTarget {
// Indicate which service the call comes from.
readonly attribute unsigned long serviceId;
readonly attribute DOMString number;
// In CDMA networks, the 2nd waiting call shares the connection with the 1st