forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow C++ iteration over Java object arrays.
Introduce JavaObjectArrayReader, which provides an input iterator that returns each element of a Java object in turn, wrapped as a ScopedJavaLocalRef. Also add a utility function JavaRef<jobjectArray>::ReadElements<T>() which creates a reader for the array pointed to by the reference, for ease of use. Convert a number of simple cases in the Chromium sources to use the newly introduced mechanisms to demonstrate their use. Change-Id: I2b9aefe45a50885d96c074d5904a0ed3e22334be Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1283836 Reviewed-by: Joe Downing <joedow@chromium.org> Reviewed-by: Yaron Friedman <yfriedman@chromium.org> Reviewed-by: Frank Liberato <liberato@chromium.org> Reviewed-by: Dominick Ng <dominickn@chromium.org> Reviewed-by: Andrew Grieve <agrieve@chromium.org> Commit-Queue: Richard Coles <torne@chromium.org> Cr-Commit-Position: refs/heads/master@{#655028}
- Loading branch information
Showing
17 changed files
with
294 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.