jni_generator: Wrap all native methods in stubs.

Instead of only wrapping native methods which call C++ methods, wrap
them all. This doesn't require any changes to the implementations, but
makes the handling of the two kinds of method more consistent in
preparation for introducing return type/parameter wrapping in future
changes.

This also changes the way that some of the stub code is generated to
make it less different depending whether native exports are in use, and
moves "extern "C"" declarations to be on only the specifically exported
symbols instead of applying to all forward declarations.

BUG=519562
R=rmcilroy@chromium.org

Review URL: https://codereview.chromium.org/1279163006 .

Cr-Commit-Position: refs/heads/master@{#343370}


CrOS-Libchrome-Original-Commit: b37ad14e10041f15a4467022d5169be4dac73ceb
15 files changed
tree: 881d08634f0382fdaf5ff8132991e99e442a33ed
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/