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 <string> | 7 #include <string> |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 uuids.push_back(uuid); | 122 uuids.push_back(uuid); |
123 } | 123 } |
124 } | 124 } |
125 return uuids; | 125 return uuids; |
126 } | 126 } |
127 | 127 |
128 int16 BluetoothDeviceMac::GetInquiryRSSI() const { | 128 int16 BluetoothDeviceMac::GetInquiryRSSI() const { |
129 return kUnknownPower; | 129 return kUnknownPower; |
130 } | 130 } |
131 | 131 |
| 132 int16 BluetoothDeviceMac::GetInquiryTxPower() const { |
| 133 NOTIMPLEMENTED(); |
| 134 return kUnknownPower; |
| 135 } |
| 136 |
132 bool BluetoothDeviceMac::ExpectingPinCode() const { | 137 bool BluetoothDeviceMac::ExpectingPinCode() const { |
133 NOTIMPLEMENTED(); | 138 NOTIMPLEMENTED(); |
134 return false; | 139 return false; |
135 } | 140 } |
136 | 141 |
137 bool BluetoothDeviceMac::ExpectingPasskey() const { | 142 bool BluetoothDeviceMac::ExpectingPasskey() const { |
138 NOTIMPLEMENTED(); | 143 NOTIMPLEMENTED(); |
139 return false; | 144 return false; |
140 } | 145 } |
141 | 146 |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 255 |
251 return power_level; | 256 return power_level; |
252 } | 257 } |
253 | 258 |
254 // static | 259 // static |
255 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) { | 260 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) { |
256 return CanonicalizeAddress(base::SysNSStringToUTF8([device addressString])); | 261 return CanonicalizeAddress(base::SysNSStringToUTF8([device addressString])); |
257 } | 262 } |
258 | 263 |
259 } // namespace device | 264 } // namespace device |
OLD | NEW |