 Chromium Code Reviews
 Chromium Code Reviews Issue 2637343002:
  Implement WebBluetooth descriptor.readValue()  (Closed)
    
  
    Issue 2637343002:
  Implement WebBluetooth descriptor.readValue()  (Closed) 
  | 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 ecacfdb945c0b1af77877dba8cfed1a6700d2316..ecd821f7ccdecce6be74a86ea2c54fbbd76255af 100644 | 
| --- a/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom | 
| +++ b/third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom | 
| @@ -72,6 +72,7 @@ enum WebBluetoothResult { | 
| REQUEST_DEVICE_WITH_BLOCKLISTED_UUID, | 
| REQUEST_DEVICE_FROM_CROSS_ORIGIN_IFRAME, | 
| REQUEST_DEVICE_WITHOUT_FRAME, | 
| + DESCRIPTOR_NO_LONGER_EXISTS, | 
| }; | 
| struct WebBluetoothScanFilter { | 
| @@ -198,6 +199,16 @@ interface WebBluetoothService { | 
| bluetooth.mojom.UUID? descriptor_uuid) => ( | 
| WebBluetoothResult result, | 
| array<WebBluetoothRemoteGATTDescriptor>? descriptors); | 
| + | 
| + // Reads the value for descriptor with |descriptor_instance_id|. | 
| 
scheib
2017/01/19 06:16:18
See comment style template change in tip of tree,
 
dougt
2017/01/20 03:17:24
Done.
 | 
| + // If the value is successfully read the callback will be run with | 
| + // WebBluetoothResult::SUCCESS and the descriptor's value. If the value is not | 
| + // successfully read the callback with be run with the corresponding error and | 
| + // nullptr for value. | 
| + RemoteDescriptorReadValue( | 
| + string descriptor_instance_id) => ( | 
| + WebBluetoothResult result, | 
| + array<uint8>? value); | 
| }; | 
| // Classes should implement this interface and pass an associated pointer |