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

Side by Side Diff: base/android/jni_generator/testInnerClassNativesMultiple.golden

Issue 2146753002: Android: Remove unneeded RegisterNatives() calls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, more fixes 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 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/TestJni 8 // org/chromium/TestJni
9 9
10 #ifndef org_chromium_TestJni_JNI 10 #ifndef org_chromium_TestJni_JNI
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 } 45 }
46 46
47 static jint Init(JNIEnv* env, const JavaParamRef<jobject>& jcaller); 47 static jint Init(JNIEnv* env, const JavaParamRef<jobject>& jcaller);
48 48
49 extern "C" __attribute__((visibility("default"))) 49 extern "C" __attribute__((visibility("default")))
50 jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(JNIEnv* env, 50 jint Java_org_chromium_TestJni_00024MyOtherInnerClass_nativeInit(JNIEnv* env,
51 jobject jcaller) { 51 jobject jcaller) {
52 return Init(env, JavaParamRef<jobject>(env, jcaller)); 52 return Init(env, JavaParamRef<jobject>(env, jcaller));
53 } 53 }
54 54
55 // Step 3: RegisterNatives.
56
57 static const JNINativeMethod kMethodsMyOtherInnerClass[] = { 55 static const JNINativeMethod kMethodsMyOtherInnerClass[] = {
58 { "nativeInit", 56 { "nativeInit",
59 "(" 57 "("
60 ")" 58 ")"
61 "I", 59 "I",
62 reinterpret_cast<void*>(Java_org_chromium_TestJni_00024MyOtherInnerClass_nat iveInit) 60 reinterpret_cast<void*>(Java_org_chromium_TestJni_00024MyOtherInnerClass_nat iveInit)
63 }, 61 },
64 }; 62 };
65 63
66 static const JNINativeMethod kMethodsMyInnerClass[] = { 64 static const JNINativeMethod kMethodsMyInnerClass[] = {
(...skipping 26 matching lines...) Expand all
93 kMethodsMyInnerClassSize) < 0) { 91 kMethodsMyInnerClassSize) < 0) {
94 jni_generator::HandleRegistrationError( 92 jni_generator::HandleRegistrationError(
95 env, MyInnerClass_clazz(env), __FILE__); 93 env, MyInnerClass_clazz(env), __FILE__);
96 return false; 94 return false;
97 } 95 }
98 96
99 return true; 97 return true;
100 } 98 }
101 99
102 #endif // org_chromium_TestJni_JNI 100 #endif // org_chromium_TestJni_JNI
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698