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

Unified Diff: lib/dom/scripts/dartdomgenerator.py

Issue 10383302: Move dart:dom implementation classes to dart:html library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 7 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 | « no previous file | lib/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/dartdomgenerator.py
diff --git a/lib/dom/scripts/dartdomgenerator.py b/lib/dom/scripts/dartdomgenerator.py
index cf847b0a638027308e9619df5f548d8579a889a7..18a926f720168ab00a09842f9b98c59251716c87 100755
--- a/lib/dom/scripts/dartdomgenerator.py
+++ b/lib/dom/scripts/dartdomgenerator.py
@@ -139,11 +139,23 @@ def Generate(systems, database_dir, use_database_cache, dom_output_dir,
{'DARTIUM': False, 'FROG': True}),
target_database, emitters, output_dir)
elif system == 'htmldartium':
+ # Generate native wrappers.
+ native_system = NativeImplementationSystem(
Anton Muhin 2012/05/23 15:25:23 that probably should go directly into HTMLDartium,
podivilov 2012/05/24 10:33:08 Not sure. They use different databases, and such a
+ TemplateLoader(template_dir, ['dom/native', 'dom', '']),
+ dom_database, html_renames, emitters, auxiliary_dir,
+ output_dir)
+ generator.Generate(dom_database, native_system,
+ source_filter=['WebKit', 'Dart'],
+ super_database=common_database,
+ common_prefix='common',
+ webkit_renames=_webkit_renames,
+ html_renames=html_renames)
+ dom_implementation_classes = native_system.DartImplementationFiles()
implementation_system = HtmlDartiumSystem(
TemplateLoader(template_dir,
['html/dartium', 'html/impl', 'html', ''],
{'DARTIUM': True, 'FROG': False}),
- target_database, emitters, auxiliary_dir,
+ target_database, emitters, auxiliary_dir, dom_implementation_classes,
output_dir)
elif system == 'native':
implementation_system = NativeImplementationSystem(
@@ -168,6 +180,7 @@ def Generate(systems, database_dir, use_database_cache, dom_output_dir,
_logger.info('Flush...')
emitters.Flush()
+def GenerateSingleFile(systems):
if 'frog' in systems:
_logger.info('Copy dom_frog to frog/')
subprocess.call(['cd ../generated ; '
@@ -223,6 +236,7 @@ def main():
'../../html/generated')
Generate(systems, database_dir, options.use_database_cache,
dom_output_dir, html_output_dir)
+ GenerateSingleFile(systems)
if __name__ == '__main__':
sys.exit(main())
« no previous file with comments | « no previous file | lib/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698