Mojo JS bindings generator doesn't generate import-qualified struct references
commitd36ef7400494cf8fdbcb6b83877ba1e26d672e9a
authorhansmuller@chromium.org <hansmuller@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 20 Aug 2014 21:36:39 +0000 (20 21:36 +0000)
committerhansmuller@chromium.org <hansmuller@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 20 Aug 2014 21:37:48 +0000 (20 21:37 +0000)
tree3df8a2d60f393d44bed810231b79e5f0aa275cbf
parent937a773dd49d09d73839de6bf1c08aef9b9df62e
Mojo JS bindings generator doesn't generate import-qualified struct references

The JS bindings generator maps '.mojom' files - not Mojo
modules - to JS modules. Struct names that can be used
without qualification in separate '.mojom' files (because
both files specify the same Mojo module) must be JS-module
qualified in the JS bindings.

BUG=404788

Review URL: https://codereview.chromium.org/486203003

Cr-Commit-Position: refs/heads/master@{#290919}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290919 0039d316-1c4b-4281-b951-d872f2087c98
mojo/mojo_public_tests.gypi
mojo/public/interfaces/bindings/tests/BUILD.gn
mojo/public/interfaces/bindings/tests/rect.mojom [copied from mojo/public/interfaces/bindings/tests/test_structs.mojom with 57% similarity]
mojo/public/interfaces/bindings/tests/test_structs.mojom
mojo/public/js/bindings/codec_unittests.js
mojo/public/tools/bindings/generators/mojom_js_generator.py