Chromium Code Reviews| 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 b1eca7bc2de49c90ab832bf01744fb4305c8f2c1..ecacfdb945c0b1af77877dba8cfed1a6700d2316 100644 |
| --- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom |
| +++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom |
| @@ -51,6 +51,8 @@ enum WebBluetoothResult { |
| NO_SERVICES_FOUND, |
| CHARACTERISTIC_NOT_FOUND, |
| NO_CHARACTERISTICS_FOUND, |
| + DESCRIPTOR_NOT_FOUND, |
| + NO_DESCRIPTORS_FOUND, |
| WEB_BLUETOOTH_NOT_SUPPORTED, |
| BLUETOOTH_LOW_ENERGY_NOT_AVAILABLE, |
| // NotSupportedError: |
| @@ -61,6 +63,7 @@ enum WebBluetoothResult { |
| GATT_UNTRANSLATED_ERROR_CODE, |
| // SecurityError: |
| GATT_NOT_AUTHORIZED, |
| + BLOCKLISTED_DESCRIPTOR_UUID, |
| BLOCKLISTED_CHARACTERISTIC_UUID, |
| BLOCKLISTED_READ, |
| BLOCKLISTED_WRITE, |
| @@ -110,6 +113,11 @@ struct WebBluetoothRemoteGATTCharacteristic { |
| uint32 properties; |
| }; |
| +struct WebBluetoothRemoteGATTDescriptor { |
| + string instance_id; |
| + string uuid; |
| +}; |
| + |
| // Web Bluetooth Interface that Blink can use to perform |
| // Bluetooth GATT Operations on Bluetooth Devices. |
| interface WebBluetoothService { |
| @@ -179,6 +187,17 @@ interface WebBluetoothService { |
| // |characteristic_instance_id|. |
| RemoteCharacteristicStopNotifications( |
| string characteristic_instance_id) => (); |
| + |
| + // Returns the Descriptors of a GATT Characteristic with |
| + // |characteristics_instance_id|. |
|
dcheng
2017/01/13 22:48:33
Elaborate when |descriptor_uuid| can be null and w
dougt
2017/01/14 02:34:20
yes. Tracked in bug 680587.
|
| + // If |quantity| == WebBluetoothGATTQueryQuantity::SINGLE, only one descriptor |
| + // will be returned. |
| + RemoteCharacteristicGetDescriptors( |
| + string characteristics_instance_id, |
| + WebBluetoothGATTQueryQuantity quantity, |
| + bluetooth.mojom.UUID? descriptor_uuid) => ( |
| + WebBluetoothResult result, |
| + array<WebBluetoothRemoteGATTDescriptor>? descriptors); |
| }; |
| // Classes should implement this interface and pass an associated pointer |