| OLD | NEW |
| 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 | 10 #else |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 BluetoothDevice::VendorIDSource GetVendorIDSource() const override; | 35 BluetoothDevice::VendorIDSource GetVendorIDSource() const override; |
| 36 uint16 GetVendorID() const override; | 36 uint16 GetVendorID() const override; |
| 37 uint16 GetProductID() const override; | 37 uint16 GetProductID() const override; |
| 38 uint16 GetDeviceID() const override; | 38 uint16 GetDeviceID() const override; |
| 39 bool IsPaired() const override; | 39 bool IsPaired() const override; |
| 40 bool IsConnected() const override; | 40 bool IsConnected() const override; |
| 41 bool IsConnectable() const override; | 41 bool IsConnectable() const override; |
| 42 bool IsConnecting() const override; | 42 bool IsConnecting() const override; |
| 43 BluetoothDevice::UUIDList GetUUIDs() const override; | 43 BluetoothDevice::UUIDList GetUUIDs() const override; |
| 44 int16 GetInquiryRSSI() const override; | 44 int16 GetInquiryRSSI() const override; |
| 45 int16 GetInquiryTxPower() const override; |
| 45 bool ExpectingPinCode() const override; | 46 bool ExpectingPinCode() const override; |
| 46 bool ExpectingPasskey() const override; | 47 bool ExpectingPasskey() const override; |
| 47 bool ExpectingConfirmation() const override; | 48 bool ExpectingConfirmation() const override; |
| 48 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 49 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
| 49 void Connect(PairingDelegate* pairing_delegate, | 50 void Connect(PairingDelegate* pairing_delegate, |
| 50 const base::Closure& callback, | 51 const base::Closure& callback, |
| 51 const ConnectErrorCallback& error_callback) override; | 52 const ConnectErrorCallback& error_callback) override; |
| 52 void SetPinCode(const std::string& pincode) override; | 53 void SetPinCode(const std::string& pincode) override; |
| 53 void SetPasskey(uint32 passkey) override; | 54 void SetPasskey(uint32 passkey) override; |
| 54 void ConfirmPairing() override; | 55 void ConfirmPairing() override; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 | 92 |
| 92 // Whether the device is connectable. | 93 // Whether the device is connectable. |
| 93 bool connectable_; | 94 bool connectable_; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); | 96 DISALLOW_COPY_AND_ASSIGN(BluetoothLowEnergyDeviceMac); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace device | 99 } // namespace device |
| 99 | 100 |
| 100 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ | 101 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEVICE_MAC_H_ |
| OLD | NEW |