| 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 "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "device/bluetooth/android/wrappers.h" | 10 #include "device/bluetooth/android/wrappers.h" |
| 11 #include "device/bluetooth/bluetooth_adapter_android.h" | 11 #include "device/bluetooth/bluetooth_adapter_android.h" |
| 12 #include "device/bluetooth/bluetooth_device_android.h" | 12 #include "device/bluetooth/bluetooth_device_android.h" |
| 13 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_android.h" | 13 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_android.h" |
| 14 #include "device/bluetooth/bluetooth_remote_gatt_descriptor_android.h" | 14 #include "device/bluetooth/bluetooth_remote_gatt_descriptor_android.h" |
| 15 #include "device/bluetooth/bluetooth_remote_gatt_service_android.h" | 15 #include "device/bluetooth/bluetooth_remote_gatt_service_android.h" |
| 16 | 16 |
| 17 namespace device { | 17 namespace device { |
| 18 namespace android { | 18 namespace android { |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const base::android::RegistrationMethod kRegisteredMethods[] = { | 21 const base::android::RegistrationMethod kRegisteredMethods[] = { |
| 22 {"BluetoothAdapterAndroid", device::BluetoothAdapterAndroid::RegisterJNI}, | 22 {"BluetoothAdapterAndroid", device::BluetoothAdapterAndroid::RegisterJNI}, |
| 23 {"BluetoothDeviceAndroid", device::BluetoothDeviceAndroid::RegisterJNI}, | 23 {"BluetoothDeviceAndroid", device::BluetoothDeviceAndroid::RegisterJNI}, |
| 24 {"BluetoothRemoteGattCharacteristicAndroid", | 24 {"BluetoothRemoteGattCharacteristicAndroid", |
| 25 device::BluetoothRemoteGattCharacteristicAndroid::RegisterJNI}, | 25 device::BluetoothRemoteGattCharacteristicAndroid::RegisterJNI}, |
| 26 {"BluetoothRemoteGattDescriptorAndroid", | 26 {"BluetoothRemoteGattDescriptorAndroid", |
| 27 device::BluetoothRemoteGattDescriptorAndroid::RegisterJNI}, | 27 device::BluetoothRemoteGattDescriptorAndroid::RegisterJNI}, |
| 28 {"BluetoothRemoteGattServiceAndroid", | 28 {"BluetoothRemoteGattServiceAndroid", |
| 29 device::BluetoothRemoteGattServiceAndroid::RegisterJNI}, | 29 device::BluetoothRemoteGattServiceAndroid::RegisterJNI}, |
| 30 {"Wrappers", device::WrappersRegisterJNI}, | |
| 31 }; | 30 }; |
| 32 | 31 |
| 33 } // namespace | 32 } // namespace |
| 34 | 33 |
| 35 bool RegisterBluetoothJni(JNIEnv* env) { | 34 bool RegisterBluetoothJni(JNIEnv* env) { |
| 36 return RegisterNativeMethods(env, kRegisteredMethods, | 35 return RegisterNativeMethods(env, kRegisteredMethods, |
| 37 arraysize(kRegisteredMethods)); | 36 arraysize(kRegisteredMethods)); |
| 38 } | 37 } |
| 39 | 38 |
| 40 } // namespace android | 39 } // namespace android |
| 41 } // namespace device | 40 } // namespace device |
| OLD | NEW |