| Index: mojo/public/tools/bindings/mojom.gni
|
| diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni
|
| index 246663672eb281df9fd5c3befbaf54f588e214d8..4a244fb5b11de7f387a8b454e9c5bedd861410f5 100644
|
| --- a/mojo/public/tools/bindings/mojom.gni
|
| +++ b/mojo/public/tools/bindings/mojom.gni
|
| @@ -134,6 +134,13 @@ if (enable_mojom_typemapping) {
|
| # cpp_only (optional)
|
| # If set to true, only the C++ bindings targets will be generated.
|
| #
|
| +# use_new_js_bindings (optional)
|
| +# If set to true, the generated JS code will use the new module loading
|
| +# approach and the core API exposed by Web IDL.
|
| +#
|
| +# TODO(yzshen): Switch all existing users to use_new_js_bindings=true and
|
| +# remove the old mode.
|
| +#
|
| # The following parameters are used to support the component build. They are
|
| # needed so that bindings which are linked with a component can use the same
|
| # export settings for classes. The first three are for the chromium variant, and
|
| @@ -434,6 +441,11 @@ template("mojom") {
|
| if (defined(invoker.use_once_callback) && invoker.use_once_callback) {
|
| args += [ "--use_once_callback" ]
|
| }
|
| +
|
| + if (defined(invoker.use_new_js_bindings) &&
|
| + invoker.use_new_js_bindings) {
|
| + args += [ "--use_new_js_bindings" ]
|
| + }
|
| }
|
| }
|
|
|
|
|