| 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 #include "device/bluetooth/android/bluetooth_jni_registrar.h" | 5 #include "device/bluetooth/android/bluetooth_jni_registrar.h" |
| 6 | 6 |
| 7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
| 8 #include "base/android/jni_registrar.h" | 8 #include "base/android/jni_registrar.h" |
| 9 #include "device/bluetooth/android/wrappers.h" | 9 #include "device/bluetooth/android/wrappers.h" |
| 10 #include "device/bluetooth/bluetooth_adapter_android.h" | 10 #include "device/bluetooth/bluetooth_adapter_android.h" |
| 11 #include "device/bluetooth/bluetooth_device_android.h" |
| 11 | 12 |
| 12 namespace device { | 13 namespace device { |
| 13 namespace android { | 14 namespace android { |
| 14 namespace { | 15 namespace { |
| 15 | 16 |
| 16 const base::android::RegistrationMethod kRegisteredMethods[] = { | 17 const base::android::RegistrationMethod kRegisteredMethods[] = { |
| 17 {"BluetoothAdapterAndroid", device::BluetoothAdapterAndroid::RegisterJNI}, | 18 {"BluetoothAdapterAndroid", device::BluetoothAdapterAndroid::RegisterJNI}, |
| 19 {"BluetoothDeviceAndroid", device::BluetoothDeviceAndroid::RegisterJNI}, |
| 18 {"Wrappers", device::WrappersRegisterJNI}, | 20 {"Wrappers", device::WrappersRegisterJNI}, |
| 19 }; | 21 }; |
| 20 | 22 |
| 21 } // namespace | 23 } // namespace |
| 22 | 24 |
| 23 bool RegisterBluetoothJni(JNIEnv* env) { | 25 bool RegisterBluetoothJni(JNIEnv* env) { |
| 24 return RegisterNativeMethods(env, kRegisteredMethods, | 26 return RegisterNativeMethods(env, kRegisteredMethods, |
| 25 arraysize(kRegisteredMethods)); | 27 arraysize(kRegisteredMethods)); |
| 26 } | 28 } |
| 27 | 29 |
| 28 } // namespace android | 30 } // namespace android |
| 29 } // namespace device | 31 } // namespace device |
| OLD | NEW |