Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 module bluetooth.mojom; | |
| 6 | |
| 7 struct DeviceInfo { | |
| 8 string? name; | |
| 9 string name_for_display; | |
| 10 string id; | |
| 11 string address; | |
| 12 }; | |
| 13 | |
| 14 interface Adapter { | |
| 15 // Retrieves the list of the devices known by the adapter including Connected | |
| 16 // Devices, GATT Connected Devices, Paired Devices and Devices discovered | |
| 17 // during a classic low-energy scan. | |
|
ortuno
2016/09/26 01:57:56
nit: classic or low-energy
mbrunson
2016/09/28 02:18:23
Done.
| |
| 18 GetDevices() => (array<DeviceInfo> devices); | |
| 19 }; | |
| 20 | |
| 21 interface AdapterClient { | |
| 22 // Called the fisrt time a device is discovered. | |
| 23 DeviceAdded(DeviceInfo device); | |
| 24 | |
| 25 // Called after the device hasn't been seen for 3 minutes. | |
| 26 DeviceRemoved(DeviceInfo device); | |
| 27 }; | |
| OLD | NEW |