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

Unified Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.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: third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
diff --git a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
index 445c074a22a4dfbc95f93e6b73bf53972379fb6f..6118f2e8a3622e82bd6517bb181600cfd927c310 100644
--- a/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
+++ b/third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h
@@ -86,6 +86,11 @@ public:
virtual void stopNotifications(const WebString& characteristicInstanceID,
WebBluetoothGATTCharacteristic*,
WebBluetoothNotificationsCallbacks*) {}
+
+ // Called when addEventListener is called on a characteristic.
+ virtual void registerCharacteristicObject(
+ const WebString& characteristicInstanceID,
+ WebBluetoothGATTCharacteristic*) = 0;
virtual void characteristicObjectRemoved(
const WebString& characteristicInstanceID,
WebBluetoothGATTCharacteristic*) {}

Powered by Google App Engine
This is Rietveld 408576698