зеркало из https://github.com/mozilla/gecko-dev.git
Bug 929376 - Part 1: Move 'IsConnected' from BluetoothManager.webidl to BluetoothAdapter.webidl and make it asynchronous. sr=mrbkap
This commit is contained in:
Родитель
7c3a02c975
Коммит
48d1b8f345
|
@ -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);
|
||||
|
|
|
@ -12,8 +12,6 @@ interface BluetoothManager : EventTarget {
|
|||
attribute EventHandler ondisabled;
|
||||
attribute EventHandler onadapteradded;
|
||||
|
||||
[Throws]
|
||||
boolean isConnected(unsigned short aProfile);
|
||||
[NewObject, Throws]
|
||||
DOMRequest? getDefaultAdapter();
|
||||
};
|
||||
|
|
Загрузка…
Ссылка в новой задаче