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_bluez.h" | 5 #include "device/bluetooth/bluetooth_adapter_bluez.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 property_name == properties->alias.name() || | 518 property_name == properties->alias.name() || |
519 property_name == properties->paired.name() || | 519 property_name == properties->paired.name() || |
520 property_name == properties->trusted.name() || | 520 property_name == properties->trusted.name() || |
521 property_name == properties->connected.name() || | 521 property_name == properties->connected.name() || |
522 property_name == properties->uuids.name() || | 522 property_name == properties->uuids.name() || |
523 property_name == properties->rssi.name() || | 523 property_name == properties->rssi.name() || |
524 property_name == properties->tx_power.name()) { | 524 property_name == properties->tx_power.name()) { |
525 NotifyDeviceChanged(device_bluez); | 525 NotifyDeviceChanged(device_bluez); |
526 } | 526 } |
527 | 527 |
528 if (property_name == properties->gatt_services.name()) { | 528 if (property_name == properties->services_resolved.name()) { |
529 device_bluez->SetGattServicesDiscoveryComplete(true); | 529 device_bluez->SetGattServicesDiscoveryComplete(true); |
530 NotifyGattServicesDiscovered(device_bluez); | 530 NotifyGattServicesDiscovered(device_bluez); |
531 } | 531 } |
532 | 532 |
533 // When a device becomes paired, mark it as trusted so that the user does | 533 // When a device becomes paired, mark it as trusted so that the user does |
534 // not need to approve every incoming connection | 534 // not need to approve every incoming connection |
535 if (property_name == properties->paired.name() && | 535 if (property_name == properties->paired.name() && |
536 properties->paired.value() && !properties->trusted.value()) { | 536 properties->paired.value() && !properties->trusted.value()) { |
537 device_bluez->SetTrusted(); | 537 device_bluez->SetTrusted(); |
538 } | 538 } |
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1449 | 1449 |
1450 // If the queued request resulted in a pending call, then let it | 1450 // If the queued request resulted in a pending call, then let it |
1451 // asynchonously process the remaining queued requests once the pending | 1451 // asynchonously process the remaining queued requests once the pending |
1452 // call returns. | 1452 // call returns. |
1453 if (discovery_request_pending_) | 1453 if (discovery_request_pending_) |
1454 return; | 1454 return; |
1455 } | 1455 } |
1456 } | 1456 } |
1457 | 1457 |
1458 } // namespace bluez | 1458 } // namespace bluez |
OLD | NEW |