Bug 1095362 - Part 1: Change the return types to promises (WebIDL). r=hsinyi
authorBen Hsu <bhsu@mozilla.com>
Wed, 07 Jan 2015 02:45:00 -0500
changeset 223632 a48c2bd869f4d1a644f29f33dbd026dfe3b761cd
parent 223631 7d7a31553aa1aad3467420c5c63c7fee0ce9f7db
child 223633 1bbcc30b950b434fdb4def1883127d7c46525ed3
push id28099
push userkwierso@gmail.com
push dateWed, 14 Jan 2015 01:38:51 +0000
treeherdermozilla-central@3100ceecc1bb [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1095362
milestone38.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1095362 - Part 1: Change the return types to promises (WebIDL). r=hsinyi
dom/webidl/TelephonyCallGroup.webidl
--- a/dom/webidl/TelephonyCallGroup.webidl
+++ b/dom/webidl/TelephonyCallGroup.webidl
@@ -3,33 +3,33 @@
 /* This Source Code Form is subject to the terms of the Mozilla Public
  * License, v. 2.0. If a copy of the MPL was not distributed with this
  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
 [Pref="dom.telephony.enabled"]
 interface TelephonyCallGroup : EventTarget {
   readonly attribute CallsList calls;
 
-  [Throws]
-  void add(TelephonyCall call);
+  [NewObject, Throws]
+  Promise<void> add(TelephonyCall call);
 
-  [Throws]
-  void add(TelephonyCall call, TelephonyCall secondCall);
+  [NewObject, Throws]
+  Promise<void> add(TelephonyCall call, TelephonyCall secondCall);
 
-  [Throws]
-  void remove(TelephonyCall call);
+  [NewObject, Throws]
+  Promise<void> remove(TelephonyCall call);
 
   [NewObject]
   Promise<void> hangUp();
 
-  [Throws]
-  void hold();
+  [NewObject, Throws]
+  Promise<void> hold();
 
-  [Throws]
-  void resume();
+  [NewObject, Throws]
+  Promise<void> resume();
 
   readonly attribute DOMString state;
 
   attribute EventHandler onstatechange;
   attribute EventHandler onconnected;
   attribute EventHandler onholding;
   attribute EventHandler onheld;
   attribute EventHandler onresuming;