Index: Source/modules/bluetooth/BluetoothDevice.idl |
diff --git a/Source/modules/bluetooth/BluetoothDevice.idl b/Source/modules/bluetooth/BluetoothDevice.idl |
index 338e7c9f17a037889aa908a81024eaa768b07e28..65634048bb615b5e141c1b08e8475af0cf841c66 100644 |
--- a/Source/modules/bluetooth/BluetoothDevice.idl |
+++ b/Source/modules/bluetooth/BluetoothDevice.idl |
@@ -5,10 +5,13 @@ |
// https://webbluetoothcg.github.io/web-bluetooth/#idl-def-BluetoothDevice |
// Implement BluetoothDevice interface: http://crbug.com/421668 |
-// enum VendorIDSource { |
-// "bluetooth", |
-// "usb" |
-// }; |
+ |
+enum VendorIDSource { |
+ "bluetooth", |
+ "usb" |
+}; |
+ |
+typedef DOMString UUID; |
[ |
GarbageCollected, |
@@ -20,15 +23,15 @@ |
{ |
// Implement BluetoothDevice interface: http://crbug.com/421668 |
readonly attribute DOMString instanceID; |
-// readonly attribute DOMString? name; |
-// readonly attribute long? deviceClass; |
-// readonly attribute VendorIDSource? vendorIDSource; |
-// readonly attribute long? vendorID; |
-// readonly attribute long? productID; |
-// readonly attribute long? productVersion; |
-// readonly attribute boolean? paired; |
-// readonly attribute boolean? connected; |
-// readonly attribute sequence<UUID>? uuids; |
+ readonly attribute DOMString? name; |
+ readonly attribute unsigned long? deviceClass; |
+ readonly attribute VendorIDSource? vendorIDSource; |
+ readonly attribute unsigned long? vendorID; |
+ readonly attribute unsigned long? productID; |
+ readonly attribute unsigned long? productVersion; |
+ readonly attribute boolean? paired; |
+ readonly attribute boolean? connected; |
+ readonly attribute sequence<UUID>? uuids; |
// Promise<void> connect (); |
// Promise<void> disconnect (); |
// Promise<BluetoothGATTService> getService (BluetoothServiceUuid service); |