Chromium Code Reviews| Index: device/bluetooth/public/interfaces/adapter.mojom |
| diff --git a/device/bluetooth/public/interfaces/adapter.mojom b/device/bluetooth/public/interfaces/adapter.mojom |
| index 0ac42f5f14b876aaab61951025d826263ee1058f..c869c0752c8ec7226966bc0f2c3a63cbe22df3fb 100644 |
| --- a/device/bluetooth/public/interfaces/adapter.mojom |
| +++ b/device/bluetooth/public/interfaces/adapter.mojom |
| @@ -4,6 +4,8 @@ |
| module bluetooth.mojom; |
| +import "device.mojom"; |
| + |
| struct AdapterInfo { |
| string address; |
| string name; |
| @@ -14,15 +16,8 @@ struct AdapterInfo { |
| bool discovering; |
| }; |
| -struct DeviceInfo { |
| - string? name; |
| - string name_for_display; |
| - string id; |
| - string address; |
| -}; |
| - |
| interface Adapter { |
| - // Gets basic information about the adapter. |
| + // Returns basic information about the adapter. |
| GetInfo() => (AdapterInfo info); |
| // Retrieves the list of the devices known by the adapter including Connected |
| @@ -30,6 +25,9 @@ interface Adapter { |
| // during a classic or low-energy scan. |
| GetDevices() => (array<DeviceInfo> devices); |
| + // Gets the Device service for the device at the given address. |
| + GetDeviceService(string address) => (Device? device); |
|
scheib
2016/10/10 20:23:51
I'm concerned about the 'Service' suffix here.. I
mbrunson
2016/10/10 22:01:09
Ah ok. I will change this.
|
| + |
| // Sets the client that listens for the adapter's events. |
| SetClient(AdapterClient client); |
| }; |
| @@ -45,4 +43,4 @@ interface AdapterClient { |
| interface AdapterFactory { |
| // Gets an Adapter interface. Returns null if Bluetooth is not supported. |
| GetAdapter() => (Adapter? adapter); |
| -}; |
| +}; |