Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(236)

Side by Side Diff: device/bluetooth/public/interfaces/adapter.mojom

Issue 2357383002: bluetooth: Add device list retrieval for chrome://bluetooth-internals (Closed)
Patch Set: Remove scoped_refptr get calls Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 or low-energy scan.
18 GetDevices() => (array<DeviceInfo> devices);
19
20 // Sets the client that listens for the adapter's events.
dpapad 2016/10/03 17:51:03 Optional: It is not clear at all that the "client"
mbrunson 2016/10/03 18:56:03 This Mojo interface will not be used exclusively b
21 SetClient(AdapterClient client);
22 };
23
24 interface AdapterClient {
25 // Called the first time a device is discovered.
26 DeviceAdded(DeviceInfo device);
27
28 // Called after the device hasn't been seen for 3 minutes.
29 DeviceRemoved(DeviceInfo device);
30 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698