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

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

Issue 296723002: Dartium 35: Add a deprecated ShadowRoot.resetStyleInheritance (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: regen Created 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »
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 fremontcutbuilder 10 import fremontcutbuilder
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 interface_generator.Generate() 94 interface_generator.Generate()
95 95
96 generator.Generate(webkit_database, common_database, generate_interface) 96 generator.Generate(webkit_database, common_database, generate_interface)
97 97
98 dart_library_emitter.EmitLibraries(auxiliary_dir) 98 dart_library_emitter.EmitLibraries(auxiliary_dir)
99 99
100 if dart2js_output_dir: 100 if dart2js_output_dir:
101 template_paths = ['html/dart2js', 'html/impl', 'html/interface', ''] 101 template_paths = ['html/dart2js', 'html/impl', 'html/interface', '']
102 template_loader = TemplateLoader(template_dir, 102 template_loader = TemplateLoader(template_dir,
103 template_paths, 103 template_paths,
104 {'DARTIUM': False, 'DART2JS': True}) 104 {'DARTIUM': False, 'DART2JS': True,
105 'DART_USE_BLINK' : False})
105 backend_options = GeneratorOptions( 106 backend_options = GeneratorOptions(
106 template_loader, webkit_database, type_registry, renamer, 107 template_loader, webkit_database, type_registry, renamer,
107 metadata) 108 metadata)
108 backend_factory = lambda interface:\ 109 backend_factory = lambda interface:\
109 Dart2JSBackend(interface, backend_options) 110 Dart2JSBackend(interface, backend_options)
110 111
111 dart_output_dir = os.path.join(dart2js_output_dir, 'dart') 112 dart_output_dir = os.path.join(dart2js_output_dir, 'dart')
112 dart_libraries = DartLibraries( 113 dart_libraries = DartLibraries(
113 HTML_LIBRARY_NAMES, template_loader, 'dart2js', dart2js_output_dir) 114 HTML_LIBRARY_NAMES, template_loader, 'dart2js', dart2js_output_dir)
114 115
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 for library_name in HTML_LIBRARY_NAMES: 230 for library_name in HTML_LIBRARY_NAMES:
230 GenerateSingleFile( 231 GenerateSingleFile(
231 os.path.join(dartium_output_dir, '%s_dartium.dart' % library_name), 232 os.path.join(dartium_output_dir, '%s_dartium.dart' % library_name),
232 os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dartium')) 233 os.path.join('..', '..', '..', 'sdk', 'lib', library_name, 'dartium'))
233 GenerateSingleFile( 234 GenerateSingleFile(
234 os.path.join(dartium_output_dir, '_blink_dartium.dart'), 235 os.path.join(dartium_output_dir, '_blink_dartium.dart'),
235 os.path.join('..', '..', '..', 'sdk', 'lib', '_blink', 'dartium')) 236 os.path.join('..', '..', '..', 'sdk', 'lib', '_blink', 'dartium'))
236 237
237 if __name__ == '__main__': 238 if __name__ == '__main__':
238 sys.exit(main()) 239 sys.exit(main())
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698