Bug 929376 - Part 1: Move 'IsConnected' from BluetoothManager.webidl to BluetoothAdapter.webidl and make it asynchronous. sr=mrbkap

This commit is contained in:
Jamin Liu 2014-08-26 18:50:30 +08:00
parent 943444cd44
commit a2f9f9be46
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -12,8 +12,6 @@ interface BluetoothManager : EventTarget {
attribute EventHandler ondisabled;
attribute EventHandler onadapteradded;
[Throws]
boolean isConnected(unsigned short aProfile);
[NewObject, Throws]
DOMRequest? getDefaultAdapter();
};