commit | 0a7cb79a7f041ff1130595ab6f51f4eb3223f5cf | [log] [tgz] |
---|---|---|
author | Aiden Benner <abenner@google.com> | Tue Oct 30 15:17:00 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Oct 30 15:17:00 2018 |
tree | 0774c93fa0bdc6a11169675c2c4d8312b32e1357 | |
parent | 784e73acb8fdabcb540361d42ed8a9fc6aabf21f [diff] |
Add support for generation of header files and registration of proxy native methods. 'Proxy' native methods are declared in an @JniStaticNatives interface without a native qualifier and indicate that the JNI annotation processor should generate code to link between the equivalent native method as if it were declare statically. Under the hood the annotation processor generates the actual native method declaration in another another class (org.chromium.base.natives.GEN_JNI) but generates wrapper code so it can be called through the declaring class. This CL adds support to the python header generator to generate header files and registration header files for native methods declared in an @JniStaticNatives annotated interface which uses the JNI annotation processor. Change-Id: I7a1c10f67d6b7c7dad3423634bdb995e76e751a4 Bug: 898261 Reviewed-on: https://chromium-review.googlesource.com/c/1297184 Commit-Queue: Aiden Benner <abenner@google.com> Reviewed-by: agrieve <agrieve@chromium.org> Reviewed-by: Eric Stevenson <estevenson@chromium.org> Cr-Commit-Position: refs/heads/master@{#603900}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .