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

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

Issue 2388533003: bluetooth: Add AdapterInfo in Bluetooth adapter service. (Closed)
Patch Set: More descriptive comments in mojom 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
« device/bluetooth/adapter.cc ('K') | « device/bluetooth/adapter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/public/interfaces/adapter.mojom
diff --git a/device/bluetooth/public/interfaces/adapter.mojom b/device/bluetooth/public/interfaces/adapter.mojom
index e46e7a9b89ed12953058d31d1649cb3b4e2cd33f..bfd457efd8508c32d841caed0ece53aa24a8e185 100644
--- a/device/bluetooth/public/interfaces/adapter.mojom
+++ b/device/bluetooth/public/interfaces/adapter.mojom
@@ -12,6 +12,20 @@ struct DeviceInfo {
};
interface Adapter {
+ // Gets the address of the adapter.
+ // Returns empty string if address cannot be retrieved.
+ GetAddress() => (string address);
+
+ // Gets the name of the adapter.
+ // Returns empty string if name cannot be retrieved.
+ GetName() => (string name);
+
+ // Returns true if adapter is powered.
+ IsPowered() => (bool powered);
+
+ // Returns true if adapter is present.
+ IsPresent() => (bool present);
+
// 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.
« device/bluetooth/adapter.cc ('K') | « device/bluetooth/adapter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698