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

Unified Diff: base/android/jni_android.h

Issue 7828084: Refactor ScopedJavaRef (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: operator= docs Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/android/jni_android.cc » ('j') | base/android/jni_array.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_android.h
diff --git a/base/android/jni_android.h b/base/android/jni_android.h
index 9a158950210c2bf5c2c17f146866f3ea58e9ac54..66b3134e35d2b271760c2d9a19952c6affb15b97 100644
--- a/base/android/jni_android.h
+++ b/base/android/jni_android.h
@@ -37,6 +37,13 @@ jmethodID GetMethodID(JNIEnv* env,
const char* const method,
const char* const jni_signature);
+// Get the method ID for a class static method. Will clear the pending Java
+// exception and return 0 if the method is not found.
+jmethodID GetStaticMethodID(JNIEnv* env,
+ jclass clazz,
+ const char* const method,
+ const char* const jni_signature);
+
// Returns true if an exception is pending in the provided JNIEnv*.
// If an exception is pending, it is printed.
bool CheckException(JNIEnv* env);
« no previous file with comments | « no previous file | base/android/jni_android.cc » ('j') | base/android/jni_array.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698