summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/android/wrappers.h
blob: c5144edc115cf481ec119733020d578da13f5839 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_
#define DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_

#include "base/android/jni_android.h"
#include "base/android/scoped_java_ref.h"
#include "device/bluetooth/bluetooth_export.h"

namespace device {

// Bindings into Java methods in org.chromium.device.bluetooth.Wrappers classes:

// Register C++ methods exposed to Java using JNI.
bool WrappersRegisterJNI(JNIEnv* env);

// Calls Java: BluetoothAdapterWrapper.createWithDefaultAdapter().
DEVICE_BLUETOOTH_EXPORT base::android::ScopedJavaLocalRef<jobject>
BluetoothAdapterWrapper_CreateWithDefaultAdapter();

}  // namespace device

#endif  // DEVICE_BLUETOOTH_ANDROID_BLUETOOTH_ADAPTER_WRAPPER_H_