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_device_mac.h" | 5 #include "device/bluetooth/bluetooth_device_mac.h" |
6 | 6 |
7 #include <IOBluetooth/Bluetooth.h> | 7 #include <IOBluetooth/Bluetooth.h> |
8 #import <IOBluetooth/objc/IOBluetoothDevice.h> | 8 #import <IOBluetooth/objc/IOBluetoothDevice.h> |
9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> | 9 #import <IOBluetooth/objc/IOBluetoothSDPServiceRecord.h> |
10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> | 10 #import <IOBluetooth/objc/IOBluetoothSDPUUID.h> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 } | 77 } |
78 | 78 |
79 uint16 BluetoothDeviceMac::GetProductID() const { | 79 uint16 BluetoothDeviceMac::GetProductID() const { |
80 return 0; | 80 return 0; |
81 } | 81 } |
82 | 82 |
83 uint16 BluetoothDeviceMac::GetDeviceID() const { | 83 uint16 BluetoothDeviceMac::GetDeviceID() const { |
84 return 0; | 84 return 0; |
85 } | 85 } |
86 | 86 |
| 87 int BluetoothDeviceMac::GetRSSI() const { |
| 88 return [device_ rawRSSI]; |
| 89 } |
| 90 |
87 bool BluetoothDeviceMac::IsPaired() const { | 91 bool BluetoothDeviceMac::IsPaired() const { |
88 return [device_ isPaired]; | 92 return [device_ isPaired]; |
89 } | 93 } |
90 | 94 |
91 bool BluetoothDeviceMac::IsConnected() const { | 95 bool BluetoothDeviceMac::IsConnected() const { |
92 return [device_ isConnected]; | 96 return [device_ isConnected]; |
93 } | 97 } |
94 | 98 |
95 bool BluetoothDeviceMac::IsConnectable() const { | 99 bool BluetoothDeviceMac::IsConnectable() const { |
96 return false; | 100 return false; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 NOTIMPLEMENTED(); | 181 NOTIMPLEMENTED(); |
178 } | 182 } |
179 | 183 |
180 void BluetoothDeviceMac::ClearOutOfBandPairingData( | 184 void BluetoothDeviceMac::ClearOutOfBandPairingData( |
181 const base::Closure& callback, | 185 const base::Closure& callback, |
182 const ErrorCallback& error_callback) { | 186 const ErrorCallback& error_callback) { |
183 NOTIMPLEMENTED(); | 187 NOTIMPLEMENTED(); |
184 } | 188 } |
185 | 189 |
186 } // namespace device | 190 } // namespace device |
OLD | NEW |