| 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 // org/chromium/example/jni_generator/Example | 8 // org/chromium/example/jni_generator/Example |
| 9 | 9 |
| 10 #ifndef org_chromium_example_jni_generator_Example_JNI | 10 #ifndef org_chromium_example_jni_generator_Example_JNI |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 ")" | 58 ")" |
| 59 "V", reinterpret_cast<void*>(Test3) }, | 59 "V", reinterpret_cast<void*>(Test3) }, |
| 60 { "nativeTest4", | 60 { "nativeTest4", |
| 61 "(" | 61 "(" |
| 62 "Lorg/test3/TestBar$Inner;" | 62 "Lorg/test3/TestBar$Inner;" |
| 63 ")" | 63 ")" |
| 64 "V", reinterpret_cast<void*>(Test4) }, | 64 "V", reinterpret_cast<void*>(Test4) }, |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 static bool RegisterNativesImpl(JNIEnv* env) { | 67 static bool RegisterNativesImpl(JNIEnv* env) { |
| 68 |
| 68 g_Example_clazz = reinterpret_cast<jclass>(env->NewGlobalRef( | 69 g_Example_clazz = reinterpret_cast<jclass>(env->NewGlobalRef( |
| 69 base::android::GetClass(env, kExampleClassPath).obj())); | 70 base::android::GetClass(env, kExampleClassPath).obj())); |
| 70 | 71 |
| 71 const int kMethodsExampleSize = arraysize(kMethodsExample); | 72 const int kMethodsExampleSize = arraysize(kMethodsExample); |
| 72 | 73 |
| 73 if (env->RegisterNatives(Example_clazz(env), | 74 if (env->RegisterNatives(Example_clazz(env), |
| 74 kMethodsExample, | 75 kMethodsExample, |
| 75 kMethodsExampleSize) < 0) { | 76 kMethodsExampleSize) < 0) { |
| 76 jni_generator::HandleRegistrationError( | 77 jni_generator::HandleRegistrationError( |
| 77 env, Example_clazz(env), __FILE__); | 78 env, Example_clazz(env), __FILE__); |
| 78 return false; | 79 return false; |
| 79 } | 80 } |
| 80 | 81 |
| 81 return true; | 82 return true; |
| 82 } | 83 } |
| 83 | 84 |
| 84 #endif // org_chromium_example_jni_generator_Example_JNI | 85 #endif // org_chromium_example_jni_generator_Example_JNI |
| OLD | NEW |