From 48d1b8f34564a0547adb779a886dbecf8a420120 Mon Sep 17 00:00:00 2001 From: Jamin Liu Date: Tue, 26 Aug 2014 18:50:30 +0800 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 7a1ae7d6b3ba..12a25663b5a6 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 184cc20e5a03..8083888a0e69 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(); };