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_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_ | 5 #ifndef DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_ |
6 #define DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_ | 6 #define DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_ |
7 | 7 |
8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
9 #include "base/android/scoped_java_ref.h" | 9 #include "base/android/scoped_java_ref.h" |
10 #include "device/bluetooth/bluetooth_export.h" | 10 #include "device/bluetooth/bluetooth_export.h" |
11 | 11 |
12 namespace device { | 12 namespace device { |
13 | 13 |
14 // Bindings into Java methods in org.chromium.device.bluetooth.Wrappers classes: | 14 // Bindings into Java methods in org.chromium.device.bluetooth.Wrappers classes: |
15 | 15 |
16 // Register C++ methods exposed to Java using JNI. | |
17 bool WrappersRegisterJNI(JNIEnv* env); | |
18 | |
19 // Calls Java: BluetoothAdapterWrapper.createWithDefaultAdapter(). | 16 // Calls Java: BluetoothAdapterWrapper.createWithDefaultAdapter(). |
20 DEVICE_BLUETOOTH_EXPORT base::android::ScopedJavaLocalRef<jobject> | 17 DEVICE_BLUETOOTH_EXPORT base::android::ScopedJavaLocalRef<jobject> |
21 BluetoothAdapterWrapper_CreateWithDefaultAdapter(); | 18 BluetoothAdapterWrapper_CreateWithDefaultAdapter(); |
22 | 19 |
23 } // namespace device | 20 } // namespace device |
24 | 21 |
25 #endif // DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_ | 22 #endif // DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_ |
OLD | NEW |