Bug 1061481 - Patch 2/3: WebIDL change of BluetoothDevice.type attribute, r=bz
authorBen Tian <btian@mozilla.com>
Thu, 11 Sep 2014 10:03:52 +0800
changeset 204832 02f7498edae38d98f80ffd32c5e32cb5f0d7faf0
parent 204831 efee139d45db48e944c35d070741a3801821ae92
child 204833 abc3a737f800b414f72ca5934dad1c702d1376d3
push id27467
push usercbook@mozilla.com
push dateThu, 11 Sep 2014 13:33:13 +0000
treeherdermozilla-central@98ea98c8191a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs1061481
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1061481 - Patch 2/3: WebIDL change of BluetoothDevice.type attribute, r=bz
dom/webidl/BluetoothDevice2.webidl
--- a/dom/webidl/BluetoothDevice2.webidl
+++ b/dom/webidl/BluetoothDevice2.webidl
@@ -6,16 +6,17 @@
 
 [CheckPermissions="bluetooth"]
 interface BluetoothDevice : EventTarget
 {
   readonly attribute DOMString              address;
   readonly attribute BluetoothClassOfDevice cod;
   readonly attribute DOMString              name;
   readonly attribute boolean                paired;
+  readonly attribute BluetoothDeviceType    type;
 
   [Cached, Pure]
   readonly attribute sequence<DOMString>    uuids;
 
   // Fired when attribute(s) of BluetoothDevice changed
            attribute EventHandler           onattributechanged;
 
   /**
@@ -24,20 +25,28 @@ interface BluetoothDevice : EventTarget
    *
    * If the operation succeeds, the promise will be resolved with up-to-date
    * UUID list which is identical to attribute uuids.
    */
   [NewObject, Throws]
   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
 {
   "unknown",
   "cod",
   "name",
   "paired",
   "uuids"