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

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

Issue 2448713002: bluetooth: Add Device connection logic and accompanying user interface. (Closed)
Patch Set: Remove binding variable in Device.Create Created 4 years, 1 month 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/connect_result_type_converter.h ('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/device.mojom
diff --git a/device/bluetooth/public/interfaces/device.mojom b/device/bluetooth/public/interfaces/device.mojom
index 19fe22e149a9456a58bc29be6bc15738f58b704e..f4f18bfb7bf300bd13bc205292b3508cffbd80d2 100644
--- a/device/bluetooth/public/interfaces/device.mojom
+++ b/device/bluetooth/public/interfaces/device.mojom
@@ -4,6 +4,8 @@
module bluetooth.mojom;
+import "device/bluetooth/public/interfaces/uuid.mojom";
+
// TODO(crbug.com/657632): Remove when numerical values can be optional.
struct RSSIWrapper {
int8 value;
@@ -13,11 +15,23 @@ struct DeviceInfo {
string? name;
string name_for_display;
string address;
+ bool is_gatt_connected;
RSSIWrapper? rssi;
};
+struct ServiceInfo {
+ UUID uuid;
+ bool is_primary;
+};
+
interface Device {
+ // Disconnects and deletes the Device.
+ Disconnect();
+
// Gets basic information about the device. Returns null, if no device is
// available.
GetInfo() => (DeviceInfo? info);
+
+ // Gets the GATT Services in this device's GATT Server.
+ GetServices() => (array<ServiceInfo> services);
};
« no previous file with comments | « device/bluetooth/public/interfaces/connect_result_type_converter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698