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

Unified Diff: device/bluetooth/bluetooth_gatt_descriptor.h

Issue 1100483005: bluetooth: Refactor device/bluetooth for C++ Style: typedef ordering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typedefs for all of src/device/bluetooth Created 5 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_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
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698