Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef BASE_ANDROID_JNI_ARRAY_H_ | 5 #ifndef BASE_ANDROID_JNI_ARRAY_H_ |
| 6 #define BASE_ANDROID_JNI_ARRAY_H_ | 6 #define BASE_ANDROID_JNI_ARRAY_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 92 std::vector<float>* out); | 92 std::vector<float>* out); |
| 93 | 93 |
| 94 // Assuming |array| is an byte[][] (array of byte arrays), replaces the | 94 // Assuming |array| is an byte[][] (array of byte arrays), replaces the |
| 95 // content of |out| with the corresponding vector of strings. No UTF-8 | 95 // content of |out| with the corresponding vector of strings. No UTF-8 |
| 96 // conversion is performed. | 96 // conversion is performed. |
| 97 BASE_EXPORT void JavaArrayOfByteArrayToStringVector( | 97 BASE_EXPORT void JavaArrayOfByteArrayToStringVector( |
| 98 JNIEnv* env, | 98 JNIEnv* env, |
| 99 jobjectArray array, | 99 jobjectArray array, |
| 100 std::vector<std::string>* out); | 100 std::vector<std::string>* out); |
| 101 | 101 |
| 102 BASE_EXPORT void JavaArrayOfIntArrayToIntVector( | |
|
rmcilroy
2015/10/28 11:22:11
Please add a comment, like JavaArrayOfByteArrayToS
Theresa
2015/10/28 22:20:58
Done.
| |
| 103 JNIEnv* env, | |
| 104 jobjectArray array, | |
| 105 std::vector<std::vector<int>>* out); | |
| 106 | |
| 102 } // namespace android | 107 } // namespace android |
| 103 } // namespace base | 108 } // namespace base |
| 104 | 109 |
| 105 #endif // BASE_ANDROID_JNI_ARRAY_H_ | 110 #endif // BASE_ANDROID_JNI_ARRAY_H_ |
| OLD | NEW |