Chromium Code Reviews| Index: device/bluetooth/public/interfaces/device.mojom |
| diff --git a/device/bluetooth/public/interfaces/device.mojom b/device/bluetooth/public/interfaces/device.mojom |
| index 19fe22e149a9456a58bc29be6bc15738f58b704e..4de5e5e5b8bc686e81cef5eff29de042bfe59361 100644 |
| --- a/device/bluetooth/public/interfaces/device.mojom |
| +++ b/device/bluetooth/public/interfaces/device.mojom |
| @@ -4,6 +4,8 @@ |
| module bluetooth.mojom; |
| +import "device/bluetooth/public/interfaces/uuid.mojom"; |
| + |
| // TODO(crbug.com/657632): Remove when numerical values can be optional. |
| struct RSSIWrapper { |
| int8 value; |
| @@ -13,11 +15,20 @@ struct DeviceInfo { |
| string? name; |
| string name_for_display; |
| string address; |
| + bool is_gatt_connected; |
| RSSIWrapper? rssi; |
| }; |
| +struct ServiceInfo { |
| + UUID uuid; |
| + bool is_primary; |
| +}; |
| + |
| interface Device { |
| // Gets basic information about the device. Returns null, if no device is |
| // available. |
| GetInfo() => (DeviceInfo? info); |
| + |
| + // Gets the discovered services advertising on this device. |
|
ortuno
2016/10/26 02:52:21
// Gets the GATT Services in this device's GATT Se
mbrunson
2016/10/28 21:06:48
Done.
|
| + GetServices() => (array<ServiceInfo> services); |
| }; |