Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1468)

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/generator.py

Issue 2237913004: Mojo C++ bindings: support generating code shared by different variants. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tools/bindings/pylib/mojom/generate/generator.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
index 1a10e8b2b2257a134ec899ed99dd8c90c8c6eeb9..f76cc2e197abb89579473004a155f652765fd9e9 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
@@ -38,7 +38,8 @@ class Generator(object):
# files to stdout.
def __init__(self, module, output_dir=None, typemap=None, variant=None,
bytecode_path=None, for_blink=False, use_new_wrapper_types=False,
- export_attribute=None, export_header=None):
+ export_attribute=None, export_header=None,
+ generate_non_variant_code=False):
self.module = module
self.output_dir = output_dir
self.typemap = typemap or {}
@@ -48,6 +49,7 @@ class Generator(object):
self.use_new_wrapper_types = use_new_wrapper_types
self.export_attribute = export_attribute
self.export_header = export_header
+ self.generate_non_variant_code = generate_non_variant_code
def GetStructsFromMethods(self):
result = []
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698