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

Unified Diff: device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm

Issue 2595373003: Bluetooth: mac: Working on macOS descriptor implementation. (Closed)
Patch Set: More test 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/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 d4914adc3fad87676f90e15ff686cab0448fd920..4f8a1b853928ee53d48ad465865045002c99f75d 100644
--- a/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
+++ b/device/bluetooth/bluetooth_low_energy_peripheral_delegate.mm
@@ -44,6 +44,11 @@ class BluetoothLowEnergyPeripheralBridge {
device_mac_->DidUpdateNotificationState(characteristic, error);
}
+ void DidDiscoverDescriptors(CBCharacteristic* characteristic,
+ NSError* error) {
+ device_mac_->DidDiscoverDescriptors(characteristic, error);
+ }
+
CBPeripheral* GetPeripheral() { return device_mac_->GetPeripheral(); }
private:
@@ -101,4 +106,11 @@ class BluetoothLowEnergyPeripheralBridge {
error:(nullable NSError*)error {
bridge_->DidUpdateNotificationState(characteristic, error);
}
+
+- (void)peripheral:(CBPeripheral*)peripheral
+ didDiscoverDescriptorsForCharacteristic:(CBCharacteristic*)characteristic
+ error:(nullable NSError*)error {
+ bridge_->DidDiscoverDescriptors(characteristic, error);
+}
+
@end

Powered by Google App Engine
This is Rietveld 408576698