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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 uint16_t GetVendorID() const override; | 56 uint16_t GetVendorID() const override; |
57 uint16_t GetProductID() const override; | 57 uint16_t GetProductID() const override; |
58 uint16_t GetDeviceID() const override; | 58 uint16_t GetDeviceID() const override; |
59 uint16_t GetAppearance() const override; | 59 uint16_t GetAppearance() const override; |
60 base::Optional<std::string> GetName() const override; | 60 base::Optional<std::string> GetName() const override; |
61 bool IsPaired() const override; | 61 bool IsPaired() const override; |
62 bool IsConnected() const override; | 62 bool IsConnected() const override; |
63 bool IsGattConnected() const override; | 63 bool IsGattConnected() const override; |
64 bool IsConnectable() const override; | 64 bool IsConnectable() const override; |
65 bool IsConnecting() const override; | 65 bool IsConnecting() const override; |
66 base::Optional<int8_t> GetInquiryRSSI() const override; | |
67 base::Optional<int8_t> GetInquiryTxPower() const override; | |
68 bool ExpectingPinCode() const override; | 66 bool ExpectingPinCode() const override; |
69 bool ExpectingPasskey() const override; | 67 bool ExpectingPasskey() const override; |
70 bool ExpectingConfirmation() const override; | 68 bool ExpectingConfirmation() const override; |
71 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; | 69 void GetConnectionInfo(const ConnectionInfoCallback& callback) override; |
72 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, | 70 void Connect(device::BluetoothDevice::PairingDelegate* pairing_delegate, |
73 const base::Closure& callback, | 71 const base::Closure& callback, |
74 const ConnectErrorCallback& error_callback) override; | 72 const ConnectErrorCallback& error_callback) override; |
75 void SetPinCode(const std::string& pincode) override; | 73 void SetPinCode(const std::string& pincode) override; |
76 void SetPasskey(uint32_t passkey) override; | 74 void SetPasskey(uint32_t passkey) override; |
77 void ConfirmPairing() override; | 75 void ConfirmPairing() override; |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 base::android::ScopedJavaGlobalRef<jobject> j_device_; | 122 base::android::ScopedJavaGlobalRef<jobject> j_device_; |
125 | 123 |
126 bool gatt_connected_ = false; | 124 bool gatt_connected_ = false; |
127 | 125 |
128 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceAndroid); | 126 DISALLOW_COPY_AND_ASSIGN(BluetoothDeviceAndroid); |
129 }; | 127 }; |
130 | 128 |
131 } // namespace device | 129 } // namespace device |
132 | 130 |
133 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_ANDROID_H_ | 131 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_ANDROID_H_ |
OLD | NEW |