| Index: third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
|
| diff --git a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
|
| index bdd829d20c149f7dd8ee6fdac0c444e22373004f..4def9bb32c146205a0f06b2fe3cd1049f3bb564b 100644
|
| --- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
|
| +++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom
|
| @@ -68,6 +68,19 @@ enum WebBluetoothError {
|
| ENUM_MAX_VALUE = REQUEST_DEVICE_WITHOUT_FRAME,
|
| };
|
|
|
| +// Indicates if the function will return a single or multiple
|
| +// GATT objects.
|
| +enum WebBluetoothGATTQueryQuantity {
|
| + SINGLE,
|
| + MULTIPLE
|
| +};
|
| +
|
| +struct WebBluetoothRemoteGATTCharacteristic {
|
| + string instance_id;
|
| + string uuid;
|
| + uint32 properties;
|
| +};
|
| +
|
| // TODO(ortuno): Define Bluetooth Service.
|
| // https://crbug.com/508771
|
|
|
| @@ -79,6 +92,16 @@ interface WebBluetoothService {
|
| // a device disconnects.
|
| SetClient(associated WebBluetoothServiceClient client);
|
|
|
| + // Returns the Characteristics of a GATT Service with |service_instance_id|.
|
| + // If |quantity| == WebBluetoothGATTQueryQuantity::SINGLE, only one
|
| + // characteristic will be returned.
|
| + RemoteServiceGetCharacteristics(
|
| + string service_instance_id,
|
| + WebBluetoothGATTQueryQuantity quantity,
|
| + string? characteristics_uuid) => (
|
| + WebBluetoothError error,
|
| + array<WebBluetoothRemoteGATTCharacteristic>? characteristics);
|
| +
|
| // Reads the value for characteristic with
|
| // |characteristic_instance_id|. If the value is successfully read the
|
| // callback will be run with WebBluetoothError::SUCCESS and the
|
|
|