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
Родитель 4eca37ce95
Коммит 0a9141d2fd
1 изменённых файлов: 11 добавлений и 2 удалений

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

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