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

Unified Diff: base/android/jni_array.h

Issue 1337703002: [Contextual Search] Add support for crushed sprites and animate the search provider icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Very small changes from last pedrosimonneti@ review Created 5 years, 2 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_array.cc » ('j') | base/android/jni_array.cc » ('J')
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 122b88ca2912ed268a02b77a419e7e35fb6e50cd..658239df8e94b0236b101e7816caf1075f106839 100644
--- a/base/android/jni_array.h
+++ b/base/android/jni_array.h
@@ -99,6 +99,13 @@ BASE_EXPORT void JavaArrayOfByteArrayToStringVector(
jobjectArray array,
std::vector<std::string>* out);
+// Assuming |array| is an int[][] (array of int arrays), replaces the
+// contents of |out| with the corresponding vectors of ints.
+BASE_EXPORT void JavaArrayOfIntArrayToIntVector(
+ JNIEnv* env,
+ jobjectArray array,
+ std::vector<std::vector<int>>* out);
+
} // namespace android
} // namespace base
« no previous file with comments | « no previous file | base/android/jni_array.cc » ('j') | base/android/jni_array.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698