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

Unified Diff: device/bluetooth/dbus/bluetooth_device_client.h

Issue 1941923002: bluetooth: Return int8_t and use -128 for unknown tx power. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix extensions tests Created 4 years, 7 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/dbus/bluetooth_device_client.h
diff --git a/device/bluetooth/dbus/bluetooth_device_client.h b/device/bluetooth/dbus/bluetooth_device_client.h
index 676b44a86bb06f8b63988d2c5cad62d3e64c15f4..c157d379f406f8ca4f462f2812109216f0d3a125 100644
--- a/device/bluetooth/dbus/bluetooth_device_client.h
+++ b/device/bluetooth/dbus/bluetooth_device_client.h
@@ -13,6 +13,7 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/observer_list.h"
+#include "base/optional.h"
#include "base/values.h"
#include "dbus/object_path.h"
#include "dbus/property.h"
@@ -185,9 +186,11 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothDeviceClient : public BluezDBusClient {
// The callback invoked for a successful GetConnInfo API call with the
// RSSI, TX power, and maximum TX power of the current connection.
- typedef base::Callback<void(int16_t rssi,
- int16_t transmit_power,
- int16_t max_transmit_power)> ConnInfoCallback;
+ typedef base::Callback<void(
+ const base::Optional<int16_t>& rssi,
+ const base::Optional<int16_t>& transmit_power,
+ const base::Optional<int16_t>& max_transmit_power)>
+ ConnInfoCallback;
// Returns the RSSI, TX power, and maximum TX power of a connection to the
// device with object path |object_path|. If the device is not connected, then

Powered by Google App Engine
This is Rietveld 408576698