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

Side by Side Diff: third_party/gvr-android-sdk/native_callbacks_jni.h

Issue 2501193003: Selectively perform JNI registration in render processes on Android. (Closed)
Patch Set: Address Ted C comments Created 3 years, 10 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
« no previous file with comments | « third_party/gvr-android-sdk/gvr_api_jni.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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
OLDNEW
« no previous file with comments | « third_party/gvr-android-sdk/gvr_api_jni.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698