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

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

Issue 10636027: Support proper propagation of enabled per context and at runtime attributes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Next iteration Created 8 years, 5 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
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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 source='Dart', 140 source='Dart',
141 rename_operation_arguments_on_merge=True) 141 rename_operation_arguments_on_merge=True)
142 142
143 builder.import_idl_file( 143 builder.import_idl_file(
144 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'), 144 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'),
145 dart_options) 145 dart_options)
146 146
147 # Merging: 147 # Merging:
148 builder.merge_imported_interfaces(optional_argument_whitelist) 148 builder.merge_imported_interfaces(optional_argument_whitelist)
149 149
150 builder.fetch_constructor_data(webkit_options)
150 builder.fix_displacements('WebKit') 151 builder.fix_displacements('WebKit')
151 152
152 # Cleanup: 153 # Cleanup:
153 builder.normalize_annotations(['WebKit', 'Dart']) 154 builder.normalize_annotations(['WebKit', 'Dart'])
154 155
155 db.Save() 156 db.Save()
156 157
157 def main(): 158 def main():
158 current_dir = os.path.dirname(__file__) 159 current_dir = os.path.dirname(__file__)
159 160
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 205
205 for dir_name in webkit_dirs: 206 for dir_name in webkit_dirs:
206 dir_path = os.path.join(webcore_dir, dir_name) 207 dir_path = os.path.join(webcore_dir, dir_name)
207 os.path.walk(dir_path, visitor, None) 208 os.path.walk(dir_path, visitor, None)
208 209
209 database_dir = os.path.join(current_dir, '..', 'database') 210 database_dir = os.path.join(current_dir, '..', 'database')
210 return build_database(idl_files, database_dir) 211 return build_database(idl_files, database_dir)
211 212
212 if __name__ == '__main__': 213 if __name__ == '__main__':
213 sys.exit(main()) 214 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698