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

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

Issue 1382743002: bluetooth: Add characteristicvaluechanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-notifications-1
Patch Set: Address tkent's comments Created 5 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
Index: content/common/bluetooth/bluetooth_messages.h
diff --git a/content/common/bluetooth/bluetooth_messages.h b/content/common/bluetooth/bluetooth_messages.h
index e0e8b543279fa041811c758e270286d1e701015c..30e4942bb2cff41a0088c19f1bcf425ac08f2b84 100644
--- a/content/common/bluetooth/bluetooth_messages.h
+++ b/content/common/bluetooth/bluetooth_messages.h
@@ -202,6 +202,12 @@ IPC_MESSAGE_CONTROL2(BluetoothMsg_StopNotificationsSuccess,
int /* thread_id */,
int /* request_id */)
+// Informs the renderer that a characteristic's value changed.
+IPC_MESSAGE_CONTROL3(BluetoothMsg_CharacteristicValueChanged,
+ int /* thread_id */,
+ std::string /* characteristic_instance_id */,
+ std::vector<uint8_t> /* value */)
+
// Messages sent from the renderer to the browser.
// Requests a bluetooth device from the browser.
@@ -256,3 +262,13 @@ IPC_MESSAGE_CONTROL3(BluetoothHostMsg_StopNotifications,
int /* thread_id */,
int /* request_id */,
std::string /* characteristic_instance_id */)
+
+// Register to receive characteristic value changed events.
+IPC_MESSAGE_CONTROL2(BluetoothHostMsg_RegisterCharacteristic,
+ int /* thread_id */,
+ std::string /* characteristics_instance_id */)
+
+// Unregister from characteristic value changed events.
+IPC_MESSAGE_CONTROL2(BluetoothHostMsg_UnregisterCharacteristic,
+ int /* thread_id */,
+ std::string /* characteristics_instance_id */)
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.cc ('k') | content/renderer/bluetooth/bluetooth_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698