| // Copyright 2015 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-bluetoothgattremoteserver |
| |
| // Implement BluetoothGATTRemoteServer interface: https://crbug.com/476735 |
| |
| [ |
| GarbageCollected, |
| RuntimeEnabled=WebBluetooth, |
| ] interface BluetoothGATTRemoteServer |
| // Implement ServiceEventHandlers interface: http://crbug.com/421670 |
| // : ServiceEventHandlers |
| { |
| // readonly attribute BluetoothDevice device; |
| readonly attribute boolean connected; |
| // void disconnect (); |
| [CallWith=ScriptState, RaisesException] Promise<BluetoothGATTService> getPrimaryService (BluetoothServiceUUID service); |
| // Promise<sequence<BluetoothGATTService>> getPrimaryServices (optional BluetoothServiceUUID service); |
| }; |