Bug 1061481 - Patch 2/3: WebIDL change of BluetoothDevice.type attribute, r=bz

This commit is contained in:
Ben Tian 2014-09-11 10:03:52 +08:00
parent 4eca37ce95
commit 0a9141d2fd

View File

@ -11,6 +11,7 @@ interface BluetoothDevice : EventTarget
readonly attribute BluetoothClassOfDevice cod;
readonly attribute DOMString name;
readonly attribute boolean paired;
readonly attribute BluetoothDeviceType type;
[Cached, Pure]
readonly attribute sequence<DOMString> uuids;
@ -29,10 +30,18 @@ interface BluetoothDevice : EventTarget
Promise<sequence<DOMString>> fetchUuids();
};
enum BluetoothDeviceType
{
"unknown",
"classic",
"le",
"dual"
};
/*
* Possible device attributes that attributechanged event reports.
* Note "address" is excluded since it never changes once BluetoothDevice
* is created.
* Note "address" and "type" are excluded since they never change once
* BluetoothDevice is created.
*/
enum BluetoothDeviceAttribute
{