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

Unified Diff: device/bluetooth/bluetooth_device_win.cc

Issue 13416005: Bluetooth: clean up BluetoothDevice (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More win visible fixes 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
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_device_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_device_win.cc
diff --git a/device/bluetooth/bluetooth_device_win.cc b/device/bluetooth/bluetooth_device_win.cc
index c06693f9222c82524055e3063cd77e8560f819aa..22f51de85b42b75740f98c43c66346191ea85528 100644
--- a/device/bluetooth/bluetooth_device_win.cc
+++ b/device/bluetooth/bluetooth_device_win.cc
@@ -30,8 +30,9 @@ BluetoothDeviceWin::BluetoothDeviceWin(
name_ = state.name;
address_ = state.address;
bluetooth_class_ = state.bluetooth_class;
+ visible_ = state.visible;
connected_ = state.connected;
- bonded_ = state.authenticated;
+ paired_ = state.authenticated;
for (ScopedVector<BluetoothTaskManagerWin::ServiceRecordState>::const_iterator
iter = state.service_record_states.begin();
@@ -58,11 +59,35 @@ void BluetoothDeviceWin::SetVisible(bool visible) {
visible_ = visible;
}
+uint32 BluetoothDeviceWin::GetBluetoothClass() const {
+ return bluetooth_class_;
+}
+
+std::string BluetoothDeviceWin::GetDeviceName() const {
+ return name_;
+}
+
+std::string BluetoothDeviceWin::GetAddress() const {
+ return address_;
+}
+
bool BluetoothDeviceWin::IsPaired() const {
+ return paired_;
+}
+
+bool BluetoothDeviceWin::IsConnected() const {
+ return connected_;
+}
+
+bool BluetoothDeviceWin::IsConnectable() const {
+ return false;
+}
+
+bool BluetoothDeviceWin::IsConnecting() const {
return false;
}
-const BluetoothDevice::ServiceList& BluetoothDeviceWin::GetServices() const {
+BluetoothDevice::ServiceList BluetoothDeviceWin::GetServices() const {
return service_uuids_;
}
« no previous file with comments | « device/bluetooth/bluetooth_device_win.h ('k') | device/bluetooth/bluetooth_device_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698