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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.h

Issue 2767813002: Bluetooth: macOS: Implementing read/write for descriptors (Closed)
Patch Set: NSString/NSNumber type for descriptor value Created 3 years, 8 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_device_mac.h
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.h b/device/bluetooth/bluetooth_low_energy_device_mac.h
index 0b1aafd2b4f209fb962ebbed73229449047682c0..e2823d16eded4be599c5ab404dc5cc1d93a166ba 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.h
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.h
@@ -28,6 +28,7 @@ namespace device {
class BluetoothAdapterMac;
class BluetoothRemoteGattServiceMac;
+class BluetoothRemoteGattDescriptorMac;
class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
: public BluetoothDeviceMac {
@@ -90,6 +91,8 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
void DidUpdateNotificationState(CBCharacteristic* characteristic,
NSError* error);
void DidDiscoverDescriptors(CBCharacteristic* characteristic, NSError* error);
+ void DidUpdateValueForDescriptor(CBDescriptor* cb_descriptor, NSError* error);
+ void DidWriteValueForDescriptor(CBDescriptor* descriptor, NSError* error);
static std::string GetPeripheralIdentifier(CBPeripheral* peripheral);
@@ -123,6 +126,10 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothLowEnergyDeviceMac
BluetoothRemoteGattServiceMac* GetBluetoothRemoteGattService(
CBService* service) const;
+ // Returns BluetoothRemoteGattDescriptorMac based on the CBDescriptor.
+ BluetoothRemoteGattDescriptorMac* GetBluetoothRemoteGattDescriptor(
+ CBDescriptor* cb_descriptor) const;
+
// Callback used when the CoreBluetooth Peripheral is disconnected.
void DidDisconnectPeripheral(NSError* error);

Powered by Google App Engine
This is Rietveld 408576698