From 0a9141d2fd612dedc772b032ffa4da4311ec2c16 Mon Sep 17 00:00:00 2001 From: Ben Tian Date: Thu, 11 Sep 2014 10:03:52 +0800 Subject: [PATCH] Bug 1061481 - Patch 2/3: WebIDL change of BluetoothDevice.type attribute, r=bz --- dom/webidl/BluetoothDevice2.webidl | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/dom/webidl/BluetoothDevice2.webidl b/dom/webidl/BluetoothDevice2.webidl index 3e71eb024026..2eceaca9e6c3 100644 --- a/dom/webidl/BluetoothDevice2.webidl +++ b/dom/webidl/BluetoothDevice2.webidl @@ -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 uuids; @@ -29,10 +30,18 @@ interface BluetoothDevice : EventTarget Promise> 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 {