| Index: device/bluetooth/bluetooth_gatt_descriptor.h
|
| diff --git a/device/bluetooth/bluetooth_gatt_descriptor.h b/device/bluetooth/bluetooth_gatt_descriptor.h
|
| index 442a6aeb2c8a4b5100ca153182402151eee38fd4..c91de1cc3775f4e7134316e818ad0d70eb231829 100644
|
| --- a/device/bluetooth/bluetooth_gatt_descriptor.h
|
| +++ b/device/bluetooth/bluetooth_gatt_descriptor.h
|
| @@ -21,6 +21,14 @@ namespace device {
|
| // characteristic's features or to control certain behaviors.
|
| class DEVICE_BLUETOOTH_EXPORT BluetoothGattDescriptor {
|
| public:
|
| + // The ErrorCallback is used by methods to asynchronously report errors.
|
| + typedef base::Callback<void(BluetoothGattService::GattErrorCode)>
|
| + ErrorCallback;
|
| +
|
| + // The ValueCallback is used to return the value of a remote characteristic
|
| + // descriptor upon a read request.
|
| + typedef base::Callback<void(const std::vector<uint8>&)> ValueCallback;
|
| +
|
| // The Bluetooth Specification declares several predefined descriptors that
|
| // profiles can use. The following are definitions for the list of UUIDs
|
| // and descriptions of the characteristic descriptors that they represent.
|
| @@ -106,14 +114,6 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothGattDescriptor {
|
| // handled by the subsystem.
|
| static const BluetoothUUID& CharacteristicAggregateFormatUuid();
|
|
|
| - // The ErrorCallback is used by methods to asynchronously report errors.
|
| - typedef base::Callback<void(BluetoothGattService::GattErrorCode)>
|
| - ErrorCallback;
|
| -
|
| - // The ValueCallback is used to return the value of a remote characteristic
|
| - // descriptor upon a read request.
|
| - typedef base::Callback<void(const std::vector<uint8>&)> ValueCallback;
|
| -
|
| // Constructs a BluetoothGattDescriptor that can be associated with a local
|
| // GATT characteristic when the adapter is in the peripheral role. To
|
| // associate the returned descriptor with a characteristic, add it to a local
|
|
|