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 { | |
armansito
2015/05/12 01:09:14
NOTIMPLEMENTED()
jpawlowski1
2015/05/12 08:11:01
Done.
| |
151 return kUnknownPower; | |
152 } | |
153 | |
150 bool BluetoothLowEnergyDeviceMac::ExpectingPinCode() const { | 154 bool BluetoothLowEnergyDeviceMac::ExpectingPinCode() const { |
151 return false; | 155 return false; |
152 } | 156 } |
153 | 157 |
154 bool BluetoothLowEnergyDeviceMac::ExpectingPasskey() const { | 158 bool BluetoothLowEnergyDeviceMac::ExpectingPasskey() const { |
155 return false; | 159 return false; |
156 } | 160 } |
157 | 161 |
158 bool BluetoothLowEnergyDeviceMac::ExpectingConfirmation() const { | 162 bool BluetoothLowEnergyDeviceMac::ExpectingConfirmation() const { |
159 return false; | 163 return false; |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
232 // When -[CBPeripheral identifier] is available. | 236 // When -[CBPeripheral identifier] is available. |
233 NSUUID* uuid = [peripheral identifier]; | 237 NSUUID* uuid = [peripheral identifier]; |
234 NSString* uuidString = [uuid UUIDString]; | 238 NSString* uuidString = [uuid UUIDString]; |
235 return base::SysNSStringToUTF8(uuidString); | 239 return base::SysNSStringToUTF8(uuidString); |
236 } | 240 } |
237 | 241 |
238 base::ScopedCFTypeRef<CFStringRef> str( | 242 base::ScopedCFTypeRef<CFStringRef> str( |
239 CFUUIDCreateString(NULL, [peripheral UUID])); | 243 CFUUIDCreateString(NULL, [peripheral UUID])); |
240 return SysCFStringRefToUTF8(str); | 244 return SysCFStringRefToUTF8(str); |
241 } | 245 } |
OLD | NEW |