[mojo-js] Add Closure imports for specific types

This restores goog.requires() directives in mojom lite bindings, but has
them reference individual type (e.g. struct, interface) names instead of
the mojom file's declared module. This should allow Closure to properly
resolve dependencies among a group of JS sources while continuing to
allow multiple mojom files within the same module.

Bug: 939680
Change-Id: Ie8e1bbed02c048d54edc7966db908bb20432f60f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1510641
Reviewed-by: calamity <calamity@chromium.org>
Commit-Queue: Ken Rockot <rockot@google.com>
Cr-Commit-Position: refs/heads/master@{#639737}
13 files changed