Bug 1077075 - Part 1: Change the return types to promises (WebIDL). r=hsinyi
☠☠ backed out by 9901b54d5ce7 ☠ ☠
authorBen Hsu <bhsu@mozilla.com>
Tue, 23 Dec 2014 19:34:00 +0100
changeset 221468 1cddaf8b16f460b5a08a8edccbd6c9848bc13c3d
parent 221467 a73ce3cb8b260ac335134e0aef91aa75f7e70ebf
child 221469 cfddd3baeb0b1538a7c5b7598e01473ab822055b
push id53352
push usercbook@mozilla.com
push dateMon, 29 Dec 2014 15:17:49 +0000
treeherdermozilla-inbound@8530f5b7443b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewershsinyi
bugs1077075
milestone37.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 1077075 - Part 1: Change the return types to promises (WebIDL). r=hsinyi
dom/webidl/TelephonyCall.webidl
--- a/dom/webidl/TelephonyCall.webidl
+++ b/dom/webidl/TelephonyCall.webidl
@@ -28,24 +28,24 @@ interface TelephonyCall : EventTarget {
 
   // Indicate whether the call can be added into TelephonyCallGroup.
   readonly attribute boolean mergeable;
 
   readonly attribute DOMError? error;
 
   readonly attribute TelephonyCallGroup? group;
 
-  [Throws]
-  void answer();
-  [Throws]
-  void hangUp();
-  [Throws]
-  void hold();
-  [Throws]
-  void resume();
+  [NewObject, Throws]
+  Promise<void> answer();
+  [NewObject, Throws]
+  Promise<void> hangUp();
+  [NewObject, Throws]
+  Promise<void> hold();
+  [NewObject, Throws]
+  Promise<void> resume();
 
   attribute EventHandler onstatechange;
   attribute EventHandler ondialing;
   attribute EventHandler onalerting;
   attribute EventHandler onconnecting;
   attribute EventHandler onconnected;
   attribute EventHandler ondisconnecting;
   attribute EventHandler ondisconnected;