OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 <string> | 5 #include <string> |
6 #include <utility> | 6 #include <utility> |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "device/bluetooth/adapter.h" | 9 #include "device/bluetooth/adapter.h" |
10 #include "device/bluetooth/device.h" | 10 #include "device/bluetooth/device.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 } | 67 } |
68 | 68 |
69 void Adapter::DeviceRemoved(device::BluetoothAdapter* adapter, | 69 void Adapter::DeviceRemoved(device::BluetoothAdapter* adapter, |
70 device::BluetoothDevice* device) { | 70 device::BluetoothDevice* device) { |
71 if (client_) { | 71 if (client_) { |
72 auto device_info = Device::ConstructDeviceInfoStruct(device); | 72 auto device_info = Device::ConstructDeviceInfoStruct(device); |
73 client_->DeviceRemoved(std::move(device_info)); | 73 client_->DeviceRemoved(std::move(device_info)); |
74 } | 74 } |
75 } | 75 } |
76 | 76 |
| 77 void Adapter::DeviceChanged(device::BluetoothAdapter* adapter, |
| 78 device::BluetoothDevice* device) { |
| 79 if (client_) { |
| 80 auto device_info = Device::ConstructDeviceInfoStruct(device); |
| 81 client_->DeviceChanged(std::move(device_info)); |
| 82 } |
| 83 } |
| 84 |
77 } // namespace bluetooth | 85 } // namespace bluetooth |
OLD | NEW |