dom/webidl/TelephonyCall.webidl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     1 /* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
     5  */
     7 [Pref="dom.telephony.enabled"]
     8 interface TelephonyCall : EventTarget {
     9   // Indicate which service the call comes from.
    10   readonly attribute unsigned long serviceId;
    12   readonly attribute DOMString number;
    14   // In CDMA networks, the 2nd waiting call shares the connection with the 1st
    15   // call. We need an additional attribute for the 2nd number.
    16   readonly attribute DOMString? secondNumber;
    18   readonly attribute DOMString state;
    20   // The property "emergency" indicates whether the call number is an emergency
    21   // number. Only the outgoing call could have a value with true and it is
    22   // available after dialing state.
    23   readonly attribute boolean emergency;
    25   // Indicate whether the call state can be switched between "connected" and
    26   // "held".
    27   readonly attribute boolean switchable;
    29   // Indicate whether the call can be added into TelephonyCallGroup.
    30   readonly attribute boolean mergeable;
    32   readonly attribute DOMError? error;
    34   readonly attribute TelephonyCallGroup? group;
    36   [Throws]
    37   void answer();
    38   [Throws]
    39   void hangUp();
    40   [Throws]
    41   void hold();
    42   [Throws]
    43   void resume();
    45   attribute EventHandler onstatechange;
    46   attribute EventHandler ondialing;
    47   attribute EventHandler onalerting;
    48   attribute EventHandler onconnecting;
    49   attribute EventHandler onconnected;
    50   attribute EventHandler ondisconnecting;
    51   attribute EventHandler ondisconnected;
    52   attribute EventHandler onholding;
    53   attribute EventHandler onheld;
    54   attribute EventHandler onresuming;
    55   attribute EventHandler onerror;
    57   // Fired whenever the group attribute changes.
    58   attribute EventHandler ongroupchange;
    59 };

mercurial