Index: mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
diff --git a/mojo/public/tools/bindings/generators/mojom_cpp_generator.py b/mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
index c75013badf88a19cab5a678a1b77174e20c877fc..1597f32cc5b3e369a15c19bb12b45e7480ad3232 100644 |
--- a/mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
+++ b/mojo/public/tools/bindings/generators/mojom_cpp_generator.py |
@@ -152,10 +152,12 @@ def GetNameForKind(kind, internal=False, flatten_nested_kind=False, |
internal=internal, flatten_nested_kind=flatten_nested_kind, |
add_same_module_namespaces=add_same_module_namespaces) |
-def GetQualifiedNameForKind(kind, internal=False, flatten_nested_kind=False): |
- return _NameFormatter(kind, _variant).FormatForCpp( |
- internal=internal, add_same_module_namespaces=True, |
- flatten_nested_kind=flatten_nested_kind) |
+def GetQualifiedNameForKind(kind, internal=False, flatten_nested_kind=False, |
+ include_variant=True): |
+ return _NameFormatter( |
+ kind, _variant if include_variant else None).FormatForCpp( |
+ internal=internal, add_same_module_namespaces=True, |
+ flatten_nested_kind=flatten_nested_kind) |
def GetFullMojomNameForKind(kind): |
return _NameFormatter(kind, _variant).FormatForMojom() |