| OLD | NEW |
| 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ |
| 6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ |
| 7 | 7 |
| 8 #import <IOBluetooth/IOBluetooth.h> | 8 #import <IOBluetooth/IOBluetooth.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 uint16_t GetProductID() const override; | 36 uint16_t GetProductID() const override; |
| 37 uint16_t GetDeviceID() const override; | 37 uint16_t GetDeviceID() const override; |
| 38 uint16_t GetAppearance() const override; | 38 uint16_t GetAppearance() const override; |
| 39 base::Optional<std::string> GetName() const override; | 39 base::Optional<std::string> GetName() const override; |
| 40 bool IsPaired() const override; | 40 bool IsPaired() const override; |
| 41 bool IsConnected() const override; | 41 bool IsConnected() const override; |
| 42 bool IsGattConnected() const override; | 42 bool IsGattConnected() const override; |
| 43 bool IsConnectable() const override; | 43 bool IsConnectable() const override; |
| 44 bool IsConnecting() const override; | 44 bool IsConnecting() const override; |
| 45 UUIDList GetUUIDs() const override; | 45 UUIDList GetUUIDs() const override; |
| 46 int16_t GetInquiryRSSI() const override; | 46 base::Optional<int8_t> GetInquiryRSSI() const override; |
| 47 int16_t GetInquiryTxPower() const override; | 47 base::Optional<int8_t> GetInquiryTxPower() const override; |
| 48 bool ExpectingPinCode() const override; | 48 bool ExpectingPinCode() const override; |
| 49 bool ExpectingPasskey() const override; | 49 bool ExpectingPasskey() const override; |
| 50 bool ExpectingConfirmation() const override; | 50 bool ExpectingConfirmation() const override; |
| 51 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 51 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
| 52 void Connect(PairingDelegate* pairing_delegate, | 52 void Connect(PairingDelegate* pairing_delegate, |
| 53 const base::Closure& callback, | 53 const base::Closure& callback, |
| 54 const ConnectErrorCallback& error_callback) override; | 54 const ConnectErrorCallback& error_callback) override; |
| 55 void SetPinCode(const std::string& pincode) override; | 55 void SetPinCode(const std::string& pincode) override; |
| 56 void SetPasskey(uint32_t passkey) override; | 56 void SetPasskey(uint32_t passkey) override; |
| 57 void ConfirmPairing() override; | 57 void ConfirmPairing() override; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 BluetoothHCITransmitPowerLevelType power_level_type) const; | 93 BluetoothHCITransmitPowerLevelType power_level_type) const; |
| 94 | 94 |
| 95 base::scoped_nsobject<IOBluetoothDevice> device_; | 95 base::scoped_nsobject<IOBluetoothDevice> device_; |
| 96 | 96 |
| 97 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac); | 97 DISALLOW_COPY_AND_ASSIGN(BluetoothClassicDeviceMac); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace device | 100 } // namespace device |
| 101 | 101 |
| 102 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ | 102 #endif // DEVICE_BLUETOOTH_BLUETOOTH_CLASSIC_DEVICE_MAC_H_ |
| OLD | NEW |