Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Side by Side Diff: device/bluetooth/android/wrappers.h

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Android: Don't require RegisterNatives if there are none Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698