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

Unified Diff: device/bluetooth/bluetooth_device.cc

Issue 12929003: Implemented BluetoothAdapterMac::AddDevices(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed the format type to unsigned long. Created 7 years, 9 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_device.cc
diff --git a/device/bluetooth/bluetooth_device.cc b/device/bluetooth/bluetooth_device.cc
index a2249c50709db713510a7caab4ed1fb546269bb7..7f4324bae07c01fc702a77c69259caf8f44e401c 100644
--- a/device/bluetooth/bluetooth_device.cc
+++ b/device/bluetooth/bluetooth_device.cc
@@ -18,11 +18,17 @@ bool BluetoothDevice::IsUUIDValid(const std::string& uuid) {
return !bluetooth_utils::CanonicalUuid(uuid).empty();
}
-BluetoothDevice::BluetoothDevice()
- : bluetooth_class_(0),
+BluetoothDevice::BluetoothDevice(const std::string& name,
+ const std::string& address,
+ uint32 bluetooth_class,
+ bool connected,
+ bool bonded)
+ : bluetooth_class_(bluetooth_class),
+ name_(name),
+ address_(address),
visible_(false),
- bonded_(false),
- connected_(false),
+ bonded_(bonded),
+ connected_(connected),
connectable_(true),
connecting_(false) {
keybuk 2013/03/21 18:03:34 What's the reason for adding these methods to the
youngki 2013/03/21 18:43:28 I think the member variables to BluetoothDevice sh
keybuk 2013/03/21 18:46:25 My concern is that these don't need to be member v
youngki 2013/03/21 20:07:20 Currently BluetoothDevice::address() is returning
keybuk 2013/03/25 16:49:47 It should probably just return std::string; and ye
youngki 2013/03/25 17:52:03 So according to the new design doc it's likely we
}
@@ -198,4 +204,8 @@ bool BluetoothDevice::ProvidesServiceWithUUID(
return false;
}
+void BluetoothDevice::SetVisible(bool visible) {
+ visible_ = visible;
+}
+
} // namespace device

Powered by Google App Engine
This is Rietveld 408576698