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

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

Issue 2622393002: bluetooth: Add characteristic list to DeviceDetailsPage in internals page. (Closed)
Patch Set: Change incorrect snackbar type Created 3 years, 11 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/device.mojom
diff --git a/device/bluetooth/public/interfaces/device.mojom b/device/bluetooth/public/interfaces/device.mojom
index 71922af2439e8515f4db175fa1991cecaa06a992..5fb82e52dd654c7b16ad8da17a0469bf943441eb 100644
--- a/device/bluetooth/public/interfaces/device.mojom
+++ b/device/bluetooth/public/interfaces/device.mojom
@@ -25,6 +25,29 @@ struct ServiceInfo {
bool is_primary;
};
+struct Properties {
+ bool broadcast;
+ bool read;
+ bool write_without_response;
+ bool write;
+ bool notify;
+ bool indicate;
+ bool authenticated_signed_writes;
+ bool extended_properties;
+ bool reliable_write;
+ bool writable_auxiliaries;
+ bool read_encrypted;
+ bool write_encrypted;
+ bool read_encrypted_authenticated;
+ bool write_encrypted_authenticated;
+};
+
+struct CharacteristicInfo {
+ string id;
+ UUID uuid;
+ Properties properties;
+};
+
interface Device {
// Disconnects and deletes the Device.
Disconnect();
@@ -35,4 +58,8 @@ interface Device {
// Gets the GATT Services in this device's GATT Server.
GetServices() => (array<ServiceInfo> services);
+
+ // Gets the GATT Characteristics in the GATT Service with |service_id|.
+ GetCharacteristics(string service_id) =>
+ (array<CharacteristicInfo> characteristics);
};

Powered by Google App Engine
This is Rietveld 408576698