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

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: added unittests 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
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 {
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
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
OLDNEW
« no previous file with comments | « device/bluetooth/bluetooth_device_mac.h ('k') | device/bluetooth/bluetooth_device_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698