Index: mojo/public/tools/bindings/mojom.gni |
diff --git a/mojo/public/tools/bindings/mojom.gni b/mojo/public/tools/bindings/mojom.gni |
index 0caaabf38146e91e6f8d22319350decf84afcc3b..c3faf158c0e746c140a3ebfbb703aecd2c730553 100644 |
--- a/mojo/public/tools/bindings/mojom.gni |
+++ b/mojo/public/tools/bindings/mojom.gni |
@@ -69,6 +69,13 @@ foreach(configuration, _bindings_configurations) { |
# testonly (optional) |
# |
# visibility (optional) |
+# |
+# use_new_wrapper_types (optional) |
+# If set to true, mojom array/map/string will be mapped to STL (for |
+# chromium variant) or WTF (for blink) types. Otherwise, they will be |
+# mapped to mojo::Array/Map/String/etc. |
+# Default value is false. |
+# TODO(yzshen): Eventually remove this parameter. |
template("mojom") { |
assert( |
defined(invoker.sources) || defined(invoker.deps) || |
@@ -219,6 +226,11 @@ template("mojom") { |
bindings_configuration.for_blink) { |
args += [ "--for_blink" ] |
} |
+ |
+ if (defined(invoker.use_new_wrapper_types) && |
+ invoker.use_new_wrapper_types) { |
+ args += [ "--use_new_wrapper_types" ] |
+ } |
} |
} |