Chromium Code Reviews
Description[ios Mojo] Supporting code for define WebUI function.
iOS WebUI will be rebuilt on top of Mojo. All mojo dependencies in JavaScript
are managed via |define| function, which is natively implemented in content//
only for WebUI pages. iOS does not use content, so |define| can only be
implemented in JavaScript. Require.js open source library implements |define| in
almost exactly same way as needed by web//. The only exception is that loading
can not happen from network, because WKWebView does not support custom network
protocols.
This CL implements scripts fetching initiated by require.js library.
https://docs.google.com/document/d/1iUJXX_zoY2BbnecpfxjznOeasf29KUzl_9S_LG08Bes/edit#heading=h.yjqp5garsqf9
BUG=567809
Committed: https://crrev.com/174e8ecd336f3582187aeff6deb2bb1a4a9803b9
Cr-Commit-Position: refs/heads/master@{#392212}
Patch Set 1 #Patch Set 2 : Self review #Patch Set 3 : Merged with require.js CL #
Total comments: 6
Patch Set 4 : Addressed review comments #
Total comments: 8
Patch Set 5 : Addressed review comments #
Total comments: 5
Patch Set 6 : Actually use Map API #
Depends on Patchset: Messages
Total messages: 20 (6 generated)
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||