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

Side by Side Diff: device/bluetooth/bluetooth_device_win.cc

Issue 1941923002: bluetooth: Return int8_t and use -128 for unknown tx power. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Fix extensions tests Created 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_win.h" 5 #include "device/bluetooth/bluetooth_device_win.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 } 105 }
106 106
107 bool BluetoothDeviceWin::IsConnecting() const { 107 bool BluetoothDeviceWin::IsConnecting() const {
108 return false; 108 return false;
109 } 109 }
110 110
111 BluetoothDevice::UUIDList BluetoothDeviceWin::GetUUIDs() const { 111 BluetoothDevice::UUIDList BluetoothDeviceWin::GetUUIDs() const {
112 return uuids_; 112 return uuids_;
113 } 113 }
114 114
115 int16_t BluetoothDeviceWin::GetInquiryRSSI() const { 115 base::Optional<int8_t> BluetoothDeviceWin::GetInquiryRSSI() const {
116 return kUnknownPower; 116 return base::Optional<int8_t>();
117 } 117 }
118 118
119 int16_t BluetoothDeviceWin::GetInquiryTxPower() const { 119 base::Optional<int8_t> BluetoothDeviceWin::GetInquiryTxPower() const {
120 NOTIMPLEMENTED(); 120 NOTIMPLEMENTED();
121 return kUnknownPower; 121 return base::Optional<int8_t>();
122 } 122 }
123 123
124 bool BluetoothDeviceWin::ExpectingPinCode() const { 124 bool BluetoothDeviceWin::ExpectingPinCode() const {
125 NOTIMPLEMENTED(); 125 NOTIMPLEMENTED();
126 return false; 126 return false;
127 } 127 }
128 128
129 bool BluetoothDeviceWin::ExpectingPasskey() const { 129 bool BluetoothDeviceWin::ExpectingPasskey() const {
130 NOTIMPLEMENTED(); 130 NOTIMPLEMENTED();
131 return false; 131 return false;
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 primary_service->GetIdentifier(), 394 primary_service->GetIdentifier(),
395 std::unique_ptr<BluetoothRemoteGattService>(primary_service)); 395 std::unique_ptr<BluetoothRemoteGattService>(primary_service));
396 adapter_->NotifyGattServiceAdded(primary_service); 396 adapter_->NotifyGattServiceAdded(primary_service);
397 } 397 }
398 } 398 }
399 399
400 adapter_->NotifyGattServicesDiscovered(this); 400 adapter_->NotifyGattServicesDiscovered(this);
401 } 401 }
402 402
403 } // namespace device 403 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698