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

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

Issue 10094009: Cleanup old phasing code. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | no next file » | 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 import database 6 import database
7 import databasebuilder 7 import databasebuilder
8 import idlparser 8 import idlparser
9 import logging.config 9 import logging.config
10 import os.path 10 import os.path
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 'SharedWorkerContext': 'SharedWorkerGlobalScope', 123 'SharedWorkerContext': 'SharedWorkerGlobalScope',
124 'WorkerContext': 'WorkerGlobalScope', 124 'WorkerContext': 'WorkerGlobalScope',
125 }) 125 })
126 126
127 optional_argument_whitelist = [ 127 optional_argument_whitelist = [
128 ('CSSStyleDeclaration', 'setProperty', 'priority'), 128 ('CSSStyleDeclaration', 'setProperty', 'priority'),
129 ('IDBDatabase', 'transaction', 'mode'), 129 ('IDBDatabase', 'transaction', 'mode'),
130 ] 130 ]
131 131
132 # Import WebKit IDLs. 132 # Import WebKit IDLs.
133 if isinstance(idl_files, list): 133 for file_name in idl_files:
134 for file_name in idl_files: 134 builder.import_idl_file(file_name, webkit_options)
135 builder.import_idl_file(file_name, webkit_options)
136 else:
137 idl_list_file = open(idl_files, 'r')
138 for file_name in idl_list_file:
139 file_name = file_name.strip()
140 idl_file_name = os.path.join(os.path.dirname(idl_files), file_name)
141 builder.import_idl_file(idl_file_name, webkit_options)
142 idl_list_file.close()
143 135
144 # Import Dart idl: 136 # Import Dart idl:
145 dart_options = databasebuilder.DatabaseBuilderOptions( 137 dart_options = databasebuilder.DatabaseBuilderOptions(
146 idl_syntax=idlparser.FREMONTCUT_SYNTAX, 138 idl_syntax=idlparser.FREMONTCUT_SYNTAX,
147 source='Dart', 139 source='Dart',
148 rename_operation_arguments_on_merge=True) 140 rename_operation_arguments_on_merge=True)
149 141
150 builder.import_idl_file( 142 builder.import_idl_file(
151 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'), 143 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'),
152 dart_options) 144 dart_options)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 203
212 for dir_name in webkit_dirs: 204 for dir_name in webkit_dirs:
213 dir_path = os.path.join(webcore_dir, dir_name) 205 dir_path = os.path.join(webcore_dir, dir_name)
214 os.path.walk(dir_path, visitor, None) 206 os.path.walk(dir_path, visitor, None)
215 207
216 database_dir = os.path.join(current_dir, '..', 'database') 208 database_dir = os.path.join(current_dir, '..', 'database')
217 return build_database(idl_files, database_dir) 209 return build_database(idl_files, database_dir)
218 210
219 if __name__ == '__main__': 211 if __name__ == '__main__':
220 sys.exit(main()) 212 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698