reader/android: initial web-veiw JS
A make task has been added to web/Makefile for generating the JS build to be
loaded into the Android web view for PDF rendering via PDF.js:
make public/pdf-web-view.js
The source file lives in browser/pdf-web-view.js to access the build artifacts
from a normal browser visit http://127.0.0.1:8080/pdf-web-view.html after
running `make start`.
The state atom has been attached to the global window and can be accessed from
the developers console or via [Android's evaluateJavascript
API](http://goo.gl/JWUIaz):
window.atom.href.set(<url to pdf file>)
window.atom.pages.current.set(<page number>)
This CL is a first pass at trying to get the rendering working and has some
small issues (error handling, render optimizations, etc.) being tracked as TODOs
in #44.
Change-Id: If7b91453107aa3b5f898ccb66e067163b03eb4af
5 files changed