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}


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