OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_low_energy_device_mac.h" | 5 #include "device/bluetooth/bluetooth_low_energy_device_mac.h" |
6 | 6 |
7 #import <CoreFoundation/CoreFoundation.h> | 7 #import <CoreFoundation/CoreFoundation.h> |
8 | 8 |
9 #include "base/mac/scoped_cftyperef.h" | 9 #include "base/mac/scoped_cftyperef.h" |
10 #include "base/mac/sdk_forward_declarations.h" | 10 #include "base/mac/sdk_forward_declarations.h" |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 } | 140 } |
141 | 141 |
142 BluetoothDevice::UUIDList BluetoothLowEnergyDeviceMac::GetUUIDs() const { | 142 BluetoothDevice::UUIDList BluetoothLowEnergyDeviceMac::GetUUIDs() const { |
143 return std::vector<device::BluetoothUUID>(); | 143 return std::vector<device::BluetoothUUID>(); |
144 } | 144 } |
145 | 145 |
146 int16 BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const { | 146 int16 BluetoothLowEnergyDeviceMac::GetInquiryRSSI() const { |
147 return kUnknownPower; | 147 return kUnknownPower; |
148 } | 148 } |
149 | 149 |
| 150 int16 BluetoothLowEnergyDeviceMac::GetInquiryTxPower() const { |
| 151 NOTIMPLEMENTED(); |
| 152 return kUnknownPower; |
| 153 } |
| 154 |
150 bool BluetoothLowEnergyDeviceMac::ExpectingPinCode() const { | 155 bool BluetoothLowEnergyDeviceMac::ExpectingPinCode() const { |
151 return false; | 156 return false; |
152 } | 157 } |
153 | 158 |
154 bool BluetoothLowEnergyDeviceMac::ExpectingPasskey() const { | 159 bool BluetoothLowEnergyDeviceMac::ExpectingPasskey() const { |
155 return false; | 160 return false; |
156 } | 161 } |
157 | 162 |
158 bool BluetoothLowEnergyDeviceMac::ExpectingConfirmation() const { | 163 bool BluetoothLowEnergyDeviceMac::ExpectingConfirmation() const { |
159 return false; | 164 return false; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 // When -[CBPeripheral identifier] is available. | 237 // When -[CBPeripheral identifier] is available. |
233 NSUUID* uuid = [peripheral identifier]; | 238 NSUUID* uuid = [peripheral identifier]; |
234 NSString* uuidString = [uuid UUIDString]; | 239 NSString* uuidString = [uuid UUIDString]; |
235 return base::SysNSStringToUTF8(uuidString); | 240 return base::SysNSStringToUTF8(uuidString); |
236 } | 241 } |
237 | 242 |
238 base::ScopedCFTypeRef<CFStringRef> str( | 243 base::ScopedCFTypeRef<CFStringRef> str( |
239 CFUUIDCreateString(NULL, [peripheral UUID])); | 244 CFUUIDCreateString(NULL, [peripheral UUID])); |
240 return SysCFStringRefToUTF8(str); | 245 return SysCFStringRefToUTF8(str); |
241 } | 246 } |
OLD | NEW |