Mojo code generator: simplify how imported types and values are handled.

With this change, there is no need to make deep-copies of types and values from the imported module. Besides, Module.imports are a list of Modules, instead of dictionary objects with redundant information.

This CL also removes some trivial IsXXXField forwarding functions in mojom_js_generator.py

BUG=718614

Review-Url: https://codereview.chromium.org/2864753002
Cr-Commit-Position: refs/heads/master@{#470054}


CrOS-Libchrome-Original-Commit: 8899feb0588fd6fa12ecd3e5807cf55aa778eac7
11 files changed
tree: 8084b1f7ff0bb363e4127ed157ef3e43d8dbcd1e
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/