OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "device/bluetooth/bluetooth_adapter_chromeos.h" | 5 #include "device/bluetooth/bluetooth_adapter_chromeos.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
328 BluetoothDeviceClient::Properties* properties = | 328 BluetoothDeviceClient::Properties* properties = |
329 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> | 329 DBusThreadManager::Get()->GetBluetoothDeviceClient()-> |
330 GetProperties(object_path); | 330 GetProperties(object_path); |
331 | 331 |
332 if (property_name == properties->bluetooth_class.name() || | 332 if (property_name == properties->bluetooth_class.name() || |
333 property_name == properties->address.name() || | 333 property_name == properties->address.name() || |
334 property_name == properties->alias.name() || | 334 property_name == properties->alias.name() || |
335 property_name == properties->paired.name() || | 335 property_name == properties->paired.name() || |
336 property_name == properties->trusted.name() || | 336 property_name == properties->trusted.name() || |
337 property_name == properties->connected.name() || | 337 property_name == properties->connected.name() || |
338 property_name == properties->uuids.name()) | 338 property_name == properties->uuids.name() || |
339 property_name == properties->connection_rssi.name() || | |
340 property_name == properties->tx_power.name()) | |
keybuk
2014/05/09 00:35:25
add ordinary rssi while you're in here?
Tim Song
2014/05/09 02:55:29
Done.
| |
339 NotifyDeviceChanged(device_chromeos); | 341 NotifyDeviceChanged(device_chromeos); |
340 | 342 |
341 // When a device becomes paired, mark it as trusted so that the user does | 343 // When a device becomes paired, mark it as trusted so that the user does |
342 // not need to approve every incoming connection | 344 // not need to approve every incoming connection |
343 if (property_name == properties->paired.name() && | 345 if (property_name == properties->paired.name() && |
344 properties->paired.value()) | 346 properties->paired.value()) |
345 device_chromeos->SetTrusted(); | 347 device_chromeos->SetTrusted(); |
346 | 348 |
347 // UMA connection counting | 349 // UMA connection counting |
348 if (property_name == properties->connected.name()) { | 350 if (property_name == properties->connected.name()) { |
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
881 | 883 |
882 // If the queued request resulted in a pending call, then let it | 884 // If the queued request resulted in a pending call, then let it |
883 // asynchonously process the remaining queued requests once the pending | 885 // asynchonously process the remaining queued requests once the pending |
884 // call returns. | 886 // call returns. |
885 if (discovery_request_pending_) | 887 if (discovery_request_pending_) |
886 return; | 888 return; |
887 } | 889 } |
888 } | 890 } |
889 | 891 |
890 } // namespace chromeos | 892 } // namespace chromeos |
OLD | NEW |