| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file is autogenerated by | 5 // This file is autogenerated by |
| 6 // base/android/jni_generator/jni_generator.py | 6 // base/android/jni_generator/jni_generator.py |
| 7 // For | 7 // For |
| 8 // com/google/vr/internal/controller/NativeCallbacks | 8 // com/google/vr/internal/controller/NativeCallbacks |
| 9 | 9 |
| 10 // Local modification includes: | 10 // Local modification includes: |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 {"handleServiceDisconnected", | 258 {"handleServiceDisconnected", |
| 259 "(" | 259 "(" |
| 260 "J" | 260 "J" |
| 261 ")" | 261 ")" |
| 262 "V", | 262 "V", |
| 263 reinterpret_cast<void*>( | 263 reinterpret_cast<void*>( |
| 264 Java_com_google_vr_internal_controller_NativeCallbacks_handleServiceDis
connected)}, | 264 Java_com_google_vr_internal_controller_NativeCallbacks_handleServiceDis
connected)}, |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 static bool RegisterNativesImpl(JNIEnv* env) { | 267 static bool RegisterNativesImpl(JNIEnv* env) { |
| 268 if (base::android::IsManualJniRegistrationDisabled()) | 268 if (jni_generator::ShouldSkipJniRegistration(false)) |
| 269 return true; | 269 return true; |
| 270 | 270 |
| 271 const int kMethodsNativeCallbacksSize = arraysize(kMethodsNativeCallbacks); | 271 const int kMethodsNativeCallbacksSize = arraysize(kMethodsNativeCallbacks); |
| 272 | 272 |
| 273 if (env->RegisterNatives(NativeCallbacks_clazz(env), kMethodsNativeCallbacks, | 273 if (env->RegisterNatives(NativeCallbacks_clazz(env), kMethodsNativeCallbacks, |
| 274 kMethodsNativeCallbacksSize) < 0) { | 274 kMethodsNativeCallbacksSize) < 0) { |
| 275 jni_generator::HandleRegistrationError(env, NativeCallbacks_clazz(env), | 275 jni_generator::HandleRegistrationError(env, NativeCallbacks_clazz(env), |
| 276 __FILE__); | 276 __FILE__); |
| 277 return false; | 277 return false; |
| 278 } | 278 } |
| 279 | 279 |
| 280 return true; | 280 return true; |
| 281 } | 281 } |
| 282 | 282 |
| 283 static bool RegisterNativeCallbacksNatives(JNIEnv* env) { | 283 static bool RegisterNativeCallbacksNatives(JNIEnv* env) { |
| 284 return RegisterNativesImpl(env); | 284 return RegisterNativesImpl(env); |
| 285 } | 285 } |
| 286 | 286 |
| 287 } // namespace NativeCallbacks | 287 } // namespace NativeCallbacks |
| 288 | 288 |
| 289 #endif // com_google_vr_internal_controller_NativeCallbacks_JNI | 289 #endif // com_google_vr_internal_controller_NativeCallbacks_JNI |
| OLD | NEW |