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

Unified Diff: base/android/jni_array.h

Issue 2735113003: Changing SpawnChild to return a struct.
Patch Set: Created 3 years, 9 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 | « base/android/java/src/org/chromium/base/ParcelableWrapper.java ('k') | base/android/jni_array.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/android/jni_array.h
diff --git a/base/android/jni_array.h b/base/android/jni_array.h
index 58282b1b0c7dfacc443f8fb253f1083ee7fcd02e..b3b11d358a3f1764c2d1522f4d8dbbdf71b061d5 100644
--- a/base/android/jni_array.h
+++ b/base/android/jni_array.h
@@ -104,6 +104,12 @@ BASE_EXPORT void JavaFloatArrayToFloatVector(
jfloatArray float_array,
std::vector<float>* out);
+// Replaces the content of |out| with the Java objects in |jobject_array|.
+BASE_EXPORT void JavaJObjectArrayToJObjectVector(
+ JNIEnv* env,
+ jobjectArray jobject_array,
+ std::vector<ScopedJavaLocalRef<jobject>>* out);
+
// Assuming |array| is an byte[][] (array of byte arrays), replaces the
// content of |out| with the corresponding vector of strings. No UTF-8
// conversion is performed.
« no previous file with comments | « base/android/java/src/org/chromium/base/ParcelableWrapper.java ('k') | base/android/jni_array.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698