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

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

Issue 10892010: Revert change 11459 and 11464. (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',
34 'Selection': 'DOMSelection', 35 'Selection': 'DOMSelection',
35 'SharedWorkerGlobalScope': 'SharedWorkerContext', 36 'SharedWorkerGlobalScope': 'SharedWorkerContext',
36 'Window': 'DOMWindow', 37 'Window': 'DOMWindow',
37 'WorkerGlobalScope': 'WorkerContext'} 38 'WorkerGlobalScope': 'WorkerContext'}
38 39
39 def Generate(system_names, database_dir, use_database_cache, dom_output_dir, 40 def Generate(system_names, database_dir, use_database_cache, dom_output_dir,
40 html_output_dir): 41 html_output_dir):
41 current_dir = os.path.dirname(__file__) 42 current_dir = os.path.dirname(__file__)
42 auxiliary_dir = os.path.join(current_dir, '..', 'src') 43 auxiliary_dir = os.path.join(current_dir, '..', 'src')
43 template_dir = os.path.join(current_dir, '..', 'templates') 44 template_dir = os.path.join(current_dir, '..', 'templates')
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 dom_output_dir = options.output_dir or os.path.join(current_dir, 178 dom_output_dir = options.output_dir or os.path.join(current_dir,
178 '../generated') 179 '../generated')
179 html_output_dir = options.output_dir or os.path.join(current_dir, 180 html_output_dir = options.output_dir or os.path.join(current_dir,
180 '../../html/generated') 181 '../../html/generated')
181 Generate(systems, database_dir, options.use_database_cache, 182 Generate(systems, database_dir, options.use_database_cache,
182 dom_output_dir, html_output_dir) 183 dom_output_dir, html_output_dir)
183 GenerateSingleFile(systems) 184 GenerateSingleFile(systems)
184 185
185 if __name__ == '__main__': 186 if __name__ == '__main__':
186 sys.exit(main()) 187 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