[JS Mojo Externs] Add support for Constants and Enums.

This CL adds support to the Mojo JS Externs generator for Constants and
Enums so they can be used with the Closure Compiler. It also fixes an
issue with conflicting modules.

Bug: 864298
Change-Id: I1d3412ab21b638c16b6aa332165bfff1cee45bb6
Reviewed-on: https://chromium-review.googlesource.com/1139453
Reviewed-by: Ken Rockot <rockot@chromium.org>
Reviewed-by: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: calamity <calamity@chromium.org>
Cr-Commit-Position: refs/heads/master@{#575951}
1 file changed