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_DEVICE_ANDROID_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_ANDROID_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_ANDROID_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_ANDROID_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 uint16_t GetVendorID() const override; | 61 uint16_t GetVendorID() const override; |
62 uint16_t GetProductID() const override; | 62 uint16_t GetProductID() const override; |
63 uint16_t GetDeviceID() const override; | 63 uint16_t GetDeviceID() const override; |
64 uint16_t GetAppearance() const override; | 64 uint16_t GetAppearance() const override; |
65 bool IsPaired() const override; | 65 bool IsPaired() const override; |
66 bool IsConnected() const override; | 66 bool IsConnected() const override; |
67 bool IsGattConnected() const override; | 67 bool IsGattConnected() const override; |
68 bool IsConnectable() const override; | 68 bool IsConnectable() const override; |
69 bool IsConnecting() const override; | 69 bool IsConnecting() const override; |
70 UUIDList GetUUIDs() const override; | 70 UUIDList GetUUIDs() const override; |
71 int16_t GetInquiryRSSI() const override; | 71 base::Optional<int8_t> GetInquiryRSSI() const override; |
72 int16_t GetInquiryTxPower() const override; | 72 base::Optional<int8_t> GetInquiryTxPower() const override; |
73 bool ExpectingPinCode() const override; | 73 bool ExpectingPinCode() const override; |
74 bool ExpectingPasskey() const override; | 74 bool ExpectingPasskey() const override; |
75 bool ExpectingConfirmation() const override; | 75 bool ExpectingConfirmation() const override; |
76 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 76 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
77 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, | 77 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, |
78 const base::Closure& callback, | 78 const base::Closure& callback, |
79 const ConnectErrorCallback& error_callback) override; | 79 const ConnectErrorCallback& error_callback) override; |
80 void SetPinCode(const std::string& pincode) override; | 80 void SetPinCode(const std::string& pincode) override; |
81 void SetPasskey(uint32_t passkey) override; | 81 void SetPasskey(uint32_t passkey) override; |
82 void ConfirmPairing() override; | 82 void ConfirmPairing() override; |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 base::android::ScopedJavaGlobalRef<jobject> j_device_; | 130 base::android::ScopedJavaGlobalRef<jobject> j_device_; |
131 | 131 |
132 bool gatt_connected_ = false; | 132 bool gatt_connected_ = false; |
133 | 133 |
134 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceAndroid); | 134 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceAndroid); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace device | 137 } // namespace device |
138 | 138 |
139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_ANDROID_H_ | 139 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_ANDROID_H_ |
OLD | NEW |