| 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 d8ff08ae06336079d7ac18fba135fe20641d8331..d89f5a3915fe6c4a6dce512fe529aeb526102f83 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,17 @@ enum WebBluetoothError {
|
| ENUM_MAX_VALUE = REQUEST_DEVICE_WITHOUT_FRAME,
|
| };
|
|
|
| +struct WebBluetoothScanFilter {
|
| + array<string>? services;
|
| + string? name;
|
| + string? name_prefix;
|
| +};
|
| +
|
| +struct WebBluetoothRequestDeviceOptions {
|
| + array<WebBluetoothScanFilter> filters;
|
| + array<string> optional_services;
|
| +};
|
| +
|
| // Indicates if the function will return a single or multiple
|
| // GATT objects.
|
| enum WebBluetoothGATTQueryQuantity {
|
| @@ -75,6 +86,12 @@ enum WebBluetoothGATTQueryQuantity {
|
| MULTIPLE
|
| };
|
|
|
| +struct WebBluetoothDevice {
|
| + string id;
|
| + string name;
|
| + array<string> uuids;
|
| +};
|
| +
|
| struct WebBluetoothRemoteGATTService {
|
| string instance_id;
|
| string uuid;
|
| @@ -97,6 +114,9 @@ interface WebBluetoothService {
|
| // a device disconnects.
|
| SetClient(associated WebBluetoothServiceClient client);
|
|
|
| + RequestDevice(WebBluetoothRequestDeviceOptions options)
|
| + => (WebBluetoothError error, WebBluetoothDevice? device);
|
| +
|
| // Creates a GATT Connection to a Bluetooth Device with |device_id| if a
|
| // connection to the device didn't exist already. If a GATT connection existed
|
| // already then this function increases the ref count to keep that connection
|
|
|