Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Side by Side Diff: device/bluetooth/bluetooth_device_mac.mm

Issue 1133173002: Expose TxPower for bluetooth devices during discovery (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 {
armansito 2015/05/12 01:09:13 Add NOTIMPLEMENTED()
jpawlowski1 2015/05/12 08:11:01 Done.
133 return kUnknownPower;
134 }
135
132 bool BluetoothDeviceMac::ExpectingPinCode() const { 136 bool BluetoothDeviceMac::ExpectingPinCode() const {
133 NOTIMPLEMENTED(); 137 NOTIMPLEMENTED();
134 return false; 138 return false;
135 } 139 }
136 140
137 bool BluetoothDeviceMac::ExpectingPasskey() const { 141 bool BluetoothDeviceMac::ExpectingPasskey() const {
138 NOTIMPLEMENTED(); 142 NOTIMPLEMENTED();
139 return false; 143 return false;
140 } 144 }
141 145
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 254
251 return power_level; 255 return power_level;
252 } 256 }
253 257
254 // static 258 // static
255 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) { 259 std::string BluetoothDeviceMac::GetDeviceAddress(IOBluetoothDevice* device) {
256 return CanonicalizeAddress(base::SysNSStringToUTF8([device addressString])); 260 return CanonicalizeAddress(base::SysNSStringToUTF8([device addressString]));
257 } 261 }
258 262
259 } // namespace device 263 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698