blob: 6579a6cbf8e1ab112043d5cb496263b16defcb1e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// 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-bluetoothgattservice
// Implement BluetoothRemoteGATTService interface: https://crbug.com/483342
[
GarbageCollected,
RuntimeEnabled=WebBluetooth,
OriginTrialEnabled=WebBluetooth,
] interface BluetoothRemoteGATTService { // : ServiceEventHandlers {
readonly attribute UUID uuid;
readonly attribute boolean isPrimary;
// TODO(ortuno): Once device is implemented test that it matches
// the original device.
// readonly attribute BluetoothDevice device;
[RaisesException, CallWith=ScriptState] Promise<BluetoothRemoteGATTCharacteristic> getCharacteristic(BluetoothCharacteristicUUID characteristic);
// Promise<sequence<BluetoothRemoteGATTCharacteristic>> getCharacteristics(optional BluetoothCharacteristicUUID characteristic);
// Promise<BluetoothRemoteGATTService> getIncludedService(BluetoothServiceUUID service);
// Promise<sequence<BluetoothRemoteGATTService>> getIncludedServices(optional BluetoothServiceUUID service);
};
|