From b1fbe34fd26bae5f29bbc88f970368d28a848c84 Mon Sep 17 00:00:00 2001 From: Jamin Liu Date: Mon, 25 Aug 2014 03:52:00 -0400 Subject: [PATCH] Bug 929376 - Part 1: Move 'IsConnected' from BluetoothManager.webidl to BluetoothAdapter.webidl and make it asynchronous. sr=mrbkap --- dom/webidl/BluetoothAdapter.webidl | 3 +++ dom/webidl/BluetoothManager.webidl | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dom/webidl/BluetoothAdapter.webidl b/dom/webidl/BluetoothAdapter.webidl index 7a1ae7d6b3b..12a25663b5a 100644 --- a/dom/webidl/BluetoothAdapter.webidl +++ b/dom/webidl/BluetoothAdapter.webidl @@ -117,6 +117,9 @@ interface BluetoothAdapter : EventTarget { [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); diff --git a/dom/webidl/BluetoothManager.webidl b/dom/webidl/BluetoothManager.webidl index 184cc20e5a0..8083888a0e6 100644 --- a/dom/webidl/BluetoothManager.webidl +++ b/dom/webidl/BluetoothManager.webidl @@ -12,8 +12,6 @@ interface BluetoothManager : EventTarget { attribute EventHandler ondisabled; attribute EventHandler onadapteradded; - [Throws] - boolean isConnected(unsigned short aProfile); [NewObject, Throws] DOMRequest? getDefaultAdapter(); };