mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1061481 - Patch 2/3: WebIDL change of BluetoothDevice.type attribute, r=bz
This commit is contained in:
parent
4eca37ce95
commit
0a9141d2fd
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user