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

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

Issue 2225673002: Support exporting Mojo bindings for the component build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix win_clang 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') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | 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 ccb8363bdec91a9b8359687ff34f393ec5129ee3..1a10e8b2b2257a134ec899ed99dd8c90c8c6eeb9 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/generator.py
@@ -37,8 +37,8 @@ class Generator(object):
# Pass |output_dir| to emit files to disk. Omit |output_dir| to echo all
# 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):
+ bytecode_path=None, for_blink=False, use_new_wrapper_types=False,
+ export_attribute=None, export_header=None):
self.module = module
self.output_dir = output_dir
self.typemap = typemap or {}
@@ -46,6 +46,8 @@ class Generator(object):
self.bytecode_path = bytecode_path
self.for_blink = for_blink
self.use_new_wrapper_types = use_new_wrapper_types
+ self.export_attribute = export_attribute
+ self.export_header = export_header
def GetStructsFromMethods(self):
result = []
« no previous file with comments | « mojo/public/tools/bindings/mojom_bindings_generator.py ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698