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

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

Issue 10871070: Provide a constructor for (DOM)FormData, and rename to the more standard name, (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | « lib/dom/idl/dart/dart.idl ('k') | lib/dom/scripts/systemhtml.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 logging.config 10 import logging.config
(...skipping 13 matching lines...) Expand all
24 from templateloader import TemplateLoader 24 from templateloader import TemplateLoader
25 25
26 _logger = logging.getLogger('dartdomgenerator') 26 _logger = logging.getLogger('dartdomgenerator')
27 27
28 _webkit_renames = { 28 _webkit_renames = {
29 # W3C -> WebKit name conversion 29 # W3C -> WebKit name conversion
30 # TODO(vsm): Maybe Store these renames in the IDLs. 30 # TODO(vsm): Maybe Store these renames in the IDLs.
31 'ApplicationCache': 'DOMApplicationCache', 31 'ApplicationCache': 'DOMApplicationCache',
32 'BarProp': 'BarInfo', 32 'BarProp': 'BarInfo',
33 'DedicatedWorkerGlobalScope': 'DedicatedWorkerContext', 33 'DedicatedWorkerGlobalScope': 'DedicatedWorkerContext',
34 'FormData': 'DOMFormData',
35 'Selection': 'DOMSelection', 34 'Selection': 'DOMSelection',
36 'SharedWorkerGlobalScope': 'SharedWorkerContext', 35 'SharedWorkerGlobalScope': 'SharedWorkerContext',
37 'Window': 'DOMWindow', 36 'Window': 'DOMWindow',
38 'WorkerGlobalScope': 'WorkerContext'} 37 'WorkerGlobalScope': 'WorkerContext'}
39 38
40 def Generate(system_names, database_dir, use_database_cache, dom_output_dir, 39 def Generate(system_names, database_dir, use_database_cache, dom_output_dir,
41 html_output_dir): 40 html_output_dir):
42 current_dir = os.path.dirname(__file__) 41 current_dir = os.path.dirname(__file__)
43 auxiliary_dir = os.path.join(current_dir, '..', 'src') 42 auxiliary_dir = os.path.join(current_dir, '..', 'src')
44 template_dir = os.path.join(current_dir, '..', 'templates') 43 template_dir = os.path.join(current_dir, '..', 'templates')
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 dom_output_dir = options.output_dir or os.path.join(current_dir, 177 dom_output_dir = options.output_dir or os.path.join(current_dir,
179 '../generated') 178 '../generated')
180 html_output_dir = options.output_dir or os.path.join(current_dir, 179 html_output_dir = options.output_dir or os.path.join(current_dir,
181 '../../html/generated') 180 '../../html/generated')
182 Generate(systems, database_dir, options.use_database_cache, 181 Generate(systems, database_dir, options.use_database_cache,
183 dom_output_dir, html_output_dir) 182 dom_output_dir, html_output_dir)
184 GenerateSingleFile(systems) 183 GenerateSingleFile(systems)
185 184
186 if __name__ == '__main__': 185 if __name__ == '__main__':
187 sys.exit(main()) 186 sys.exit(main())
OLDNEW
« no previous file with comments | « lib/dom/idl/dart/dart.idl ('k') | lib/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698