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

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 735893002: Add GetConnectionInfo function for BluetoothDevice, replacing the existing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile errors on other platforms Created 5 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
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluetooth_device_chromeos.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index 87c11901496c80ed5945b7363abb224968d08249..1f88d2e3ac7c03e5ffd8726e040d1581ac9db10f 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -21,6 +21,19 @@ BluetoothDevice::~BluetoothDevice() {
STLDeleteValues(&gatt_services_);
}
+BluetoothDevice::ConnectionInfo::ConnectionInfo()
+ : rssi(kUnknownPower),
+ transmit_power(kUnknownPower),
+ max_transmit_power(kUnknownPower) {}
+
+BluetoothDevice::ConnectionInfo::ConnectionInfo(
+ int rssi, int transmit_power, int max_transmit_power)
+ : rssi(rssi),
+ transmit_power(transmit_power),
+ max_transmit_power(max_transmit_power) {}
+
+BluetoothDevice::ConnectionInfo::~ConnectionInfo() {}
+
base::string16 BluetoothDevice::GetName() const {
std::string name = GetDeviceName();
if (!name.empty()) {
« no previous file with comments | « device/bluetooth/bluetooth_device.h ('k') | device/bluetooth/bluetooth_device_chromeos.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698