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
parent a2b96f0d94
commit d348d70520

View File

@ -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]