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

Side by Side Diff: lib/dom/scripts/dartdomgenerator.py

Issue 10456006: Wrapperless dart:html for Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | lib/dom/scripts/systemhtml.py » ('j') | lib/dom/scripts/systemhtml.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 2 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
3 # for details. All rights reserved. Use of this source code is governed by a 3 # for details. All rights reserved. Use of this source code is governed by a
4 # BSD-style license that can be found in the LICENSE file. 4 # BSD-style license that can be found in the LICENSE file.
5 5
6 """This is the entry point to create Dart APIs from the IDL database.""" 6 """This is the entry point to create Dart APIs from the IDL database."""
7 7
8 import dartgenerator 8 import dartgenerator
9 import database 9 import database
10 import logging.config 10 import logging.config
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 target_database, emitters, output_dir) 134 target_database, emitters, output_dir)
135 elif system == 'htmlfrog': 135 elif system == 'htmlfrog':
136 implementation_system = HtmlFrogSystem( 136 implementation_system = HtmlFrogSystem(
137 TemplateLoader(template_dir, 137 TemplateLoader(template_dir,
138 ['html/frog', 'html/impl', 'html', ''], 138 ['html/frog', 'html/impl', 'html', ''],
139 {'DARTIUM': False, 'FROG': True}), 139 {'DARTIUM': False, 'FROG': True}),
140 target_database, emitters, output_dir) 140 target_database, emitters, output_dir)
141 elif system == 'htmldartium': 141 elif system == 'htmldartium':
142 # Generate native wrappers. 142 # Generate native wrappers.
143 native_system = NativeImplementationSystem( 143 native_system = NativeImplementationSystem(
144 TemplateLoader(template_dir, ['dom/native', 'dom', '']), 144 TemplateLoader(template_dir, ['dom/native', 'html/dartium',
145 'html/impl', ''],
146 {'DARTIUM': True, 'FROG': False}),
145 dom_database, html_database, html_renames, emitters, output_dir) 147 dom_database, html_database, html_renames, emitters, output_dir)
146 generator.Generate(dom_database, native_system, 148 generator.Generate(dom_database, native_system,
147 source_filter=['WebKit', 'Dart'], 149 source_filter=['WebKit', 'Dart'],
148 super_database=common_database, 150 super_database=common_database,
149 common_prefix='common', 151 common_prefix='common',
150 webkit_renames=_webkit_renames, 152 webkit_renames=_webkit_renames,
151 html_renames=html_renames) 153 html_renames=html_renames)
152 dom_implementation_classes = native_system.DartImplementationFiles() 154 dom_implementation_classes = native_system.DartImplementationFiles()
153 implementation_system = HtmlDartiumSystem( 155 implementation_system = HtmlDartiumSystem(
154 TemplateLoader(template_dir, 156 TemplateLoader(template_dir,
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 dom_output_dir = options.output_dir or os.path.join(current_dir, 229 dom_output_dir = options.output_dir or os.path.join(current_dir,
228 '../generated') 230 '../generated')
229 html_output_dir = options.output_dir or os.path.join(current_dir, 231 html_output_dir = options.output_dir or os.path.join(current_dir,
230 '../../html/generated') 232 '../../html/generated')
231 Generate(systems, database_dir, options.use_database_cache, 233 Generate(systems, database_dir, options.use_database_cache,
232 dom_output_dir, html_output_dir) 234 dom_output_dir, html_output_dir)
233 GenerateSingleFile(systems) 235 GenerateSingleFile(systems)
234 236
235 if __name__ == '__main__': 237 if __name__ == '__main__':
236 sys.exit(main()) 238 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | lib/dom/scripts/systemhtml.py » ('j') | lib/dom/scripts/systemhtml.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698