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

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

Issue 2388533003: bluetooth: Add AdapterInfo in Bluetooth adapter service. (Closed)
Patch Set: Update mojom comments 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 side-by-side diff with in-line comments
Download patch
Index: device/bluetooth/public/interfaces/adapter.mojom
diff --git a/device/bluetooth/public/interfaces/adapter.mojom b/device/bluetooth/public/interfaces/adapter.mojom
index a5ef798874602f737f0af81f2a0a29b6a3bec353..0ac42f5f14b876aaab61951025d826263ee1058f 100644
--- a/device/bluetooth/public/interfaces/adapter.mojom
+++ b/device/bluetooth/public/interfaces/adapter.mojom
@@ -4,6 +4,16 @@
module bluetooth.mojom;
+struct AdapterInfo {
+ string address;
+ string name;
+ bool initialized;
+ bool present;
+ bool powered;
+ bool discoverable;
+ bool discovering;
+};
+
struct DeviceInfo {
string? name;
string name_for_display;
@@ -12,6 +22,9 @@ struct DeviceInfo {
};
interface Adapter {
+ // Gets basic information about the adapter.
+ GetInfo() => (AdapterInfo info);
+
// Retrieves the list of the devices known by the adapter including Connected
// Devices, GATT Connected Devices, Paired Devices and Devices discovered
// during a classic or low-energy scan.

Powered by Google App Engine
This is Rietveld 408576698