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

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

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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 29 matching lines...) Expand all
40 uint16_t GetVendorID() const override; 40 uint16_t GetVendorID() const override;
41 uint16_t GetProductID() const override; 41 uint16_t GetProductID() const override;
42 uint16_t GetDeviceID() const override; 42 uint16_t GetDeviceID() const override;
43 uint16_t GetAppearance() const override; 43 uint16_t GetAppearance() const override;
44 bool IsPaired() const override; 44 bool IsPaired() const override;
45 bool IsConnected() const override; 45 bool IsConnected() const override;
46 bool IsGattConnected() const override; 46 bool IsGattConnected() const override;
47 bool IsConnectable() const override; 47 bool IsConnectable() const override;
48 bool IsConnecting() const override; 48 bool IsConnecting() const override;
49 UUIDList GetUUIDs() const override; 49 UUIDList GetUUIDs() const override;
50 int16_t GetInquiryRSSI() const override; 50 base::Optional<int8_t> GetInquiryRSSI() const override;
51 int16_t GetInquiryTxPower() const override; 51 base::Optional<int8_t> GetInquiryTxPower() const override;
52 bool ExpectingPinCode() const override; 52 bool ExpectingPinCode() const override;
53 bool ExpectingPasskey() const override; 53 bool ExpectingPasskey() const override;
54 bool ExpectingConfirmation() const override; 54 bool ExpectingConfirmation() const override;
55 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 55 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
56 void Connect(PairingDelegate* pairing_delegate, 56 void Connect(PairingDelegate* pairing_delegate,
57 const base::Closure& callback, 57 const base::Closure& callback,
58 const ConnectErrorCallback& error_callback) override; 58 const ConnectErrorCallback& error_callback) override;
59 void SetPinCode(const std::string& pincode) override; 59 void SetPinCode(const std::string& pincode) override;
60 void SetPasskey(uint32_t passkey) override; 60 void SetPasskey(uint32_t passkey) override;
61 void ConfirmPairing() override; 61 void ConfirmPairing() override;
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 // The service records retrieved from SDP. 154 // The service records retrieved from SDP.
155 ServiceRecordList service_record_list_; 155 ServiceRecordList service_record_list_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin); 157 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceWin);
158 }; 158 };
159 159
160 } // namespace device 160 } // namespace device
161 161
162 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_ 162 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698