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

Unified Diff: device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm

Issue 2094633003: Bluetooth: Mac: implementation for start notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@write_read_characteristicscan_servicescan_cleanup
Patch Set: Addressing msarda's comments Created 4 years, 6 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/bluetooth_low_energy_peripheral_delegate.mm
diff --git a/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
index ac7b66ea44ce11aca7113192c5ea4e6d08cd205a..d4914adc3fad87676f90e15ff686cab0448fd920 100644
--- a/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
+++ b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
@@ -39,6 +39,11 @@ class BluetoothLowEnergyPeripheralBridge {
device_mac_->DidWriteValue(characteristic, error);
}
+ void DidUpdateNotificationState(CBCharacteristic* characteristic,
+ NSError* error) {
+ device_mac_->DidUpdateNotificationState(characteristic, error);
+ }
+
CBPeripheral* GetPeripheral() { return device_mac_->GetPeripheral(); }
private:
@@ -89,4 +94,11 @@ class BluetoothLowEnergyPeripheralBridge {
error:(nullable NSError*)error {
bridge_->DidWriteValue(characteristic, error);
}
+
+- (void)peripheral:(CBPeripheral*)peripheral
+ didUpdateNotificationStateForCharacteristic:
+ (nonnull CBCharacteristic*)characteristic
+ error:(nullable NSError*)error {
+ bridge_->DidUpdateNotificationState(characteristic, error);
+}
@end
« no previous file with comments | « device/bluetooth/bluetooth_low_energy_device_mac.mm ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698