Gets mandoline working on android
commitc55c0a6cab1f3d767318ac8c6fecba8546897dd5
authorsky <sky@chromium.org>
Mon, 11 May 2015 22:14:47 +0000 (11 15:14 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 11 May 2015 22:15:25 +0000 (11 22:15 +0000)
treeed9d5d16857e2a6a45e35ce3e2ea992241c3c79e
parent56078ce434955a67159b59303f6691adb55d7ca1
Gets mandoline working on android

This consists of the following pieces:
. html_viewer now uses ResourceProvider to get resources.
. html_viewer no longer directly uses java.
. The java support for mojo_runner/shell has been mode pluggable:
  . You specify the name of the .so to load by way of a meta-tag in
    the manifest. This way mandoline can specify it's own.
  . Android's main function calls to an InitContext() function that
    mandoline plugs in.
  . The apk can include resources to extract. These are listed in the
    file 'assets_list.' The gn template rule
    generate_mojo_shell_assets_list does this for you given a
    directory.
. Changed around scripts to work with both mojo_shell/runner and
  mandoline.

BUG=481698
TEST=covered by tests
R=ben@chromim.org, jcivelli@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#329250}
19 files changed:
components/html_viewer/BUILD.gn
components/html_viewer/DEPS
components/html_viewer/android/android_hooks.cc [deleted file]
components/html_viewer/android/java/org/chromium/html_viewer/Main.java [deleted file]
components/html_viewer/html_viewer.cc
mandoline/app/android/BUILD.gn
mandoline/app/android/apk/AndroidManifest.xml
mandoline/app/android/mandoline_context_init.cc [new file with mode: 0644]
mandoline/tools/android_run_mandoline.py
mojo/generate_mojo_shell_assets_list.gni [new file with mode: 0644]
mojo/runner/BUILD.gn
mojo/runner/android/apk/AndroidManifest.xml
mojo/runner/android/apk/src/org/chromium/mojo/shell/FileHelper.java
mojo/runner/android/apk/src/org/chromium/mojo/shell/ShellMain.java
mojo/runner/android/context_init.cc [new file with mode: 0644]
mojo/runner/android/context_init.h [new file with mode: 0644]
mojo/runner/android/main.cc
mojo/tools/generate_mojo_shell_assets_list.py [new file with mode: 0755]
mojo/tools/mopy/android.py