1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/dom/webidl/TelephonyCallGroup.webidl Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,35 @@ 1.4 +/* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ 1.5 +/* vim: set ts=2 et sw=2 tw=40: */ 1.6 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.7 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.9 + 1.10 +[Pref="dom.telephony.enabled"] 1.11 +interface TelephonyCallGroup : EventTarget { 1.12 + readonly attribute CallsList calls; 1.13 + 1.14 + [Throws] 1.15 + void add(TelephonyCall call); 1.16 + 1.17 + [Throws] 1.18 + void add(TelephonyCall call, TelephonyCall secondCall); 1.19 + 1.20 + [Throws] 1.21 + void remove(TelephonyCall call); 1.22 + 1.23 + [Throws] 1.24 + void hold(); 1.25 + 1.26 + [Throws] 1.27 + void resume(); 1.28 + 1.29 + readonly attribute DOMString state; 1.30 + 1.31 + attribute EventHandler onstatechange; 1.32 + attribute EventHandler onconnected; 1.33 + attribute EventHandler onholding; 1.34 + attribute EventHandler onheld; 1.35 + attribute EventHandler onresuming; 1.36 + attribute EventHandler oncallschanged; 1.37 + attribute EventHandler onerror; 1.38 +};