Mojo JS bindings: add support to generate "dual-mode" code.

Previously, if mojom target A and B both depend on C, in order to convert A to
the new mode, we need to convert C, and also all the targets that depend on C
(i.e., B).

With this CL, we could let target C generate code supporting both modes. That
way B don't have to be touched in the same CL.

TBR=brettw@chromium.org
(For the changes in url/mojo/BUILD.gn)

BUG=699569
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Review-Url: https://codereview.chromium.org/2965803003
Cr-Commit-Position: refs/heads/master@{#484145}
12 files changed