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

Unified Diff: content/common/bluetooth/bluetooth_messages.h

Issue 1723723002: bluetooth: Implement Service.getCharacteristics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Address jyasskin's comments and add moar tests Created 4 years, 10 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: content/common/bluetooth/bluetooth_messages.h
diff --git a/content/common/bluetooth/bluetooth_messages.h b/content/common/bluetooth/bluetooth_messages.h
index 53623e773ea63739c6b5b60ddba9c56fb54ed73b..8863475670119411910546ca08c9f884db2323c9 100644
--- a/content/common/bluetooth/bluetooth_messages.h
+++ b/content/common/bluetooth/bluetooth_messages.h
@@ -164,6 +164,23 @@ IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicError,
int /* request_id */,
blink::WebBluetoothError /* result */)
+// Informs the renderer that the multiple-characteristic request |request_id|
+// succeeded.
+IPC_MESSAGE_CONTROL5(
+ BluetoothMsg_GetCharacteristicsSuccess,
+ int /* thread_id */,
+ int /* request_id */,
+ std::vector<std::string> /* characteristics_instance_ids */,
+ std::vector<std::string> /* characteristics_uuids */,
+ std::vector<uint32_t> /* characteristics_properties */)
+
+// Informs the renderer that the multiple-characteristic request |request_id|
+// failed.
+IPC_MESSAGE_CONTROL3(BluetoothMsg_GetCharacteristicsError,
+ int /* thread_id */,
+ int /* request_id */,
+ blink::WebBluetoothError /* result */)
+
// Informs the renderer that the value has been read.
IPC_MESSAGE_CONTROL3(BluetoothMsg_ReadCharacteristicValueSuccess,
int /* thread_id */,
@@ -253,6 +270,14 @@ IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristic,
std::string /* service_instance_id */,
std::string /* characteristic_uuid */)
+// Gets GATT Characteristics within a GATT Service.
+IPC_MESSAGE_CONTROL5(BluetoothHostMsg_GetCharacteristics,
+ int /* thread_id */,
+ int /* request_id */,
+ int /* frame_routing_id */,
+ std::string /* service_instance_id */,
+ std::string /* characteristics_uuid */)
+
// Reads the characteristics value from a bluetooth device.
IPC_MESSAGE_CONTROL4(BluetoothHostMsg_ReadValue,
int /* thread_id */,

Powered by Google App Engine
This is Rietveld 408576698