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

Unified Diff: device/bluetooth/public/interfaces/bluetooth.mojom

Issue 2357383002: bluetooth: Add device list retrieval for chrome://bluetooth-internals (Closed)
Patch Set: Mojo interface and implementation fixes Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/public/interfaces/bluetooth.mojom
diff --git a/device/bluetooth/public/interfaces/bluetooth.mojom b/device/bluetooth/public/interfaces/bluetooth.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..1a58126c982ff605018d838106b1c41fe30e650b
--- /dev/null
+++ b/device/bluetooth/public/interfaces/bluetooth.mojom
@@ -0,0 +1,27 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module bluetooth.mojom;
+
+struct DeviceInfo {
+ string? name;
+ string name_for_display;
+ string id;
+ string address;
+};
+
+interface Adapter {
+ // Retrieves the list of the devices known by the adapter including Connected
+ // Devices, GATT Connected Devices, Paired Devices and Devices discovered
+ // 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.
+ GetDevices() => (array<DeviceInfo> devices);
+};
+
+interface AdapterClient {
+ // Called the fisrt time a device is discovered.
+ DeviceAdded(DeviceInfo device);
+
+ // Called after the device hasn't been seen for 3 minutes.
+ DeviceRemoved(DeviceInfo device);
+};

Powered by Google App Engine
This is Rietveld 408576698