mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 814625 - Part 2: WebIDL: Add multisim support. r=hsinyi, r=khuey
This commit is contained in:
parent
7cea42f8d8
commit
14ad5c3087
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user