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

Side by Side Diff: device/bluetooth/bluetooth_low_energy_device_mac.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_LOW_ENERGY_DEVICE_MAC_H_ 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ 6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_
7 7
8 #if defined(OS_IOS) 8 #if defined(OS_IOS)
9 #import <CoreBluetooth/CoreBluetooth.h> 9 #import <CoreBluetooth/CoreBluetooth.h>
10 #else // !defined(OS_IOS) 10 #else // !defined(OS_IOS)
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 uint16_t GetVendorID() const override; 46 uint16_t GetVendorID() const override;
47 uint16_t GetProductID() const override; 47 uint16_t GetProductID() const override;
48 uint16_t GetDeviceID() const override; 48 uint16_t GetDeviceID() const override;
49 uint16_t GetAppearance() const override; 49 uint16_t GetAppearance() const override;
50 bool IsPaired() const override; 50 bool IsPaired() const override;
51 bool IsConnected() const override; 51 bool IsConnected() const override;
52 bool IsGattConnected() const override; 52 bool IsGattConnected() const override;
53 bool IsConnectable() const override; 53 bool IsConnectable() const override;
54 bool IsConnecting() const override; 54 bool IsConnecting() const override;
55 BluetoothDevice::UUIDList GetUUIDs() const override; 55 BluetoothDevice::UUIDList GetUUIDs() const override;
56 int16_t GetInquiryRSSI() const override; 56 base::Optional<int8_t> GetInquiryRSSI() const override;
57 int16_t GetInquiryTxPower() const override; 57 base::Optional<int8_t> GetInquiryTxPower() const override;
58 bool ExpectingPinCode() const override; 58 bool ExpectingPinCode() const override;
59 bool ExpectingPasskey() const override; 59 bool ExpectingPasskey() const override;
60 bool ExpectingConfirmation() const override; 60 bool ExpectingConfirmation() const override;
61 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; 61 void GetConnectionInfo(const ConnectionInfoCallback& callback) override;
62 void Connect(PairingDelegate* pairing_delegate, 62 void Connect(PairingDelegate* pairing_delegate,
63 const base::Closure& callback, 63 const base::Closure& callback,
64 const ConnectErrorCallback& error_callback) override; 64 const ConnectErrorCallback& error_callback) override;
65 void SetPinCode(const std::string& pincode) override; 65 void SetPinCode(const std::string& pincode) override;
66 void SetPasskey(uint32_t passkey) override; 66 void SetPasskey(uint32_t passkey) override;
67 void ConfirmPairing() override; 67 void ConfirmPairing() override;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 // The services (identified by UUIDs) that this device provides. 136 // The services (identified by UUIDs) that this device provides.
137 std::set<BluetoothUUID> advertised_uuids_; 137 std::set<BluetoothUUID> advertised_uuids_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); 139 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac);
140 }; 140 };
141 141
142 } // namespace device 142 } // namespace device
143 143
144 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ 144 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698