Bug 1006310 - Patch1: Revise setName and setDiscoverable method in BluetoothAdapter.webidl. f=btian, r=bz

This commit is contained in:
Jocelyn Liu 2014-06-24 15:30:56 +08:00
Родитель 6010d09598
Коммит 2525f0bc5f
1 изменённых файлов: 6 добавлений и 4 удалений

Просмотреть файл

@ -86,10 +86,12 @@ interface BluetoothAdapter : EventTarget {
// Fired when attributes of BluetoothAdapter changed
attribute EventHandler onattributechanged;
[NewObject, Throws]
DOMRequest setName(DOMString name);
[NewObject, Throws]
DOMRequest setDiscoverable(boolean discoverable);
// Promise<void>
[Throws]
Promise setName(DOMString aName);
// Promise<void>
[Throws]
Promise setDiscoverable(boolean aDiscoverable);
[NewObject, Throws]
DOMRequest startDiscovery();
[NewObject, Throws]