Bug 929376 - Part 1: Move 'IsConnected' from BluetoothManager.webidl to BluetoothAdapter.webidl and make it asynchronous. sr=mrbkap
☠☠ backed out by ae82bbf09403 ☠ ☠
authorJamin Liu <jaliu@mozilla.com>
Mon, 25 Aug 2014 03:52:00 -0400
changeset 223002 a38ad201299fa1149040fc5f84a736e435a4017c
parent 223001 70bad98676c83b2b3273e8d6ad015917a5947b33
child 223003 d9cbdfbed1f5237134f4b24cab2cc84c42bf947d
push id3979
push userraliiev@mozilla.com
push dateMon, 13 Oct 2014 16:35:44 +0000
treeherdermozilla-beta@30f2cc610691 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmrbkap
bugs929376
milestone34.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 929376 - Part 1: Move 'IsConnected' from BluetoothManager.webidl to BluetoothAdapter.webidl and make it asynchronous. sr=mrbkap
dom/webidl/BluetoothAdapter.webidl
dom/webidl/BluetoothManager.webidl
--- a/dom/webidl/BluetoothAdapter.webidl
+++ b/dom/webidl/BluetoothAdapter.webidl
@@ -112,16 +112,19 @@ interface BluetoothAdapter : EventTarget
    * @param profile 2-octets service UUID. This is optional.
    */
   [NewObject, Throws]
   DOMRequest connect(BluetoothDevice device, optional unsigned short serviceUuid);
 
   [NewObject, Throws]
   DOMRequest disconnect(BluetoothDevice device, optional unsigned short serviceUuid);
 
+  [NewObject, Throws]
+  DOMRequest isConnected(unsigned short serviceUuid);
+
   // One device can only send one file at a time
   [NewObject, Throws]
   DOMRequest sendFile(DOMString deviceAddress, Blob blob);
   [NewObject, Throws]
   DOMRequest stopSendingFile(DOMString deviceAddress);
   [NewObject, Throws]
   DOMRequest confirmReceivingFile(DOMString deviceAddress, boolean confirmation);
 
--- a/dom/webidl/BluetoothManager.webidl
+++ b/dom/webidl/BluetoothManager.webidl
@@ -7,13 +7,11 @@
 interface BluetoothManager : EventTarget {
   [Throws]
   readonly attribute boolean      enabled;
 
            attribute EventHandler onenabled;
            attribute EventHandler ondisabled;
            attribute EventHandler onadapteradded;
 
-  [Throws]
-  boolean     isConnected(unsigned short aProfile);
   [NewObject, Throws]
   DOMRequest? getDefaultAdapter();
 };