Index: modules/bluetooth/BluetoothDevice.idl |
diff --git a/modules/bluetooth/BluetoothDevice.idl b/modules/bluetooth/BluetoothDevice.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..70ba6f875326080aa034797454ccc319f302436a |
--- /dev/null |
+++ b/modules/bluetooth/BluetoothDevice.idl |
@@ -0,0 +1,34 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// https://webbluetoothchrome.github.io/web-bluetooth/#idl-def-bluetoothdevice |
+ |
+// Implement BluetoothDevice interface: http://crbug.com/421668 |
+ |
+enum VendorIDSource { |
+ "bluetooth", |
+ "usb" |
+}; |
+ |
+[ |
+ GarbageCollected, |
+ RuntimeEnabled=WebBluetooth, |
+] interface BluetoothDevice |
+// Implement ServiceEventHandlers interface: http://crbug.com/421670 |
+// : ServiceEventHandlers |
+{ |
+// Implement BluetoothDevice interface: http://crbug.com/421668 |
+ readonly attribute DOMString instanceID; |
+ readonly attribute DOMString? name; |
+// readonly attribute BluetoothAdvertisingData adData; |
+ 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 BluetoothGATTRemoteServer? gattServer; |
+ readonly attribute UUID[] uuids; |
+ [CallWith=ScriptState] Promise<BluetoothGATTRemoteServer> connectGATT (); |
+}; |