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

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

Issue 2401193002: bluetooth: Add Device service for chrome://bluetooth-internals. (Closed)
Patch Set: Fully qualify mojom import 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
« no previous file with comments | « device/bluetooth/public/interfaces/BUILD.gn ('k') | device/bluetooth/public/interfaces/device.mojom » ('j') | 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 0ac42f5f14b876aaab61951025d826263ee1058f..959c8e35ee91e13c23dae917d74f89515cd160e8 100644
--- a/device/bluetooth/public/interfaces/adapter.mojom
+++ b/device/bluetooth/public/interfaces/adapter.mojom
@@ -4,6 +4,8 @@
module bluetooth.mojom;
+import "device/bluetooth/public/interfaces/device.mojom";
+
struct AdapterInfo {
string address;
string name;
@@ -14,17 +16,13 @@ struct AdapterInfo {
bool discovering;
};
-struct DeviceInfo {
- string? name;
- string name_for_display;
- string id;
- string address;
-};
-
interface Adapter {
// Gets basic information about the adapter.
GetInfo() => (AdapterInfo info);
+ // Gets the Device service for the device at the given address.
+ GetDevice(string address) => (Device? device);
+
// 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.
@@ -45,4 +43,4 @@ interface AdapterClient {
interface AdapterFactory {
// Gets an Adapter interface. Returns null if Bluetooth is not supported.
GetAdapter() => (Adapter? adapter);
-};
+};
« no previous file with comments | « device/bluetooth/public/interfaces/BUILD.gn ('k') | device/bluetooth/public/interfaces/device.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698