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

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

Issue 10014028: Remove EventListener attributes from Dart DOM API. (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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 ] 118 ]
119 119
120 # Import WebKit IDLs. 120 # Import WebKit IDLs.
121 idl_list_file = open(idl_list_file_name, 'r') 121 idl_list_file = open(idl_list_file_name, 'r')
122 for file_name in idl_list_file: 122 for file_name in idl_list_file:
123 file_name = file_name.strip() 123 file_name = file_name.strip()
124 idl_file_name = os.path.join(os.path.dirname(idl_list_file_name), file_name) 124 idl_file_name = os.path.join(os.path.dirname(idl_list_file_name), file_name)
125 builder.import_idl_file(idl_file_name, webkit_options) 125 builder.import_idl_file(idl_file_name, webkit_options)
126 idl_list_file.close() 126 idl_list_file.close()
127 127
128 webkit_supplemental_options = databasebuilder.DatabaseBuilderOptions(
129 idl_syntax=idlparser.FREMONTCUT_SYNTAX,
130 source='WebKit',
131 rename_operation_arguments_on_merge=True)
132 builder.import_idl_file(
133 os.path.join(current_dir, '..', 'idl', 'dart', 'webkit-supplemental.idl'),
134 webkit_supplemental_options)
135
136 # Import Dart idl: 128 # Import Dart idl:
137 dart_options = databasebuilder.DatabaseBuilderOptions( 129 dart_options = databasebuilder.DatabaseBuilderOptions(
138 idl_syntax=idlparser.FREMONTCUT_SYNTAX, 130 idl_syntax=idlparser.FREMONTCUT_SYNTAX,
139 source='Dart', 131 source='Dart',
140 rename_operation_arguments_on_merge=True) 132 rename_operation_arguments_on_merge=True)
141 133
142 builder.import_idl_file( 134 builder.import_idl_file(
143 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'), 135 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'),
144 dart_options) 136 dart_options)
145 137
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 for dir_name in webkit_dirs: 195 for dir_name in webkit_dirs:
204 dir_path = os.path.join(webcore_dir, dir_name) 196 dir_path = os.path.join(webcore_dir, dir_name)
205 os.path.walk(dir_path, visitor, None) 197 os.path.walk(dir_path, visitor, None)
206 198
207 os.close(idl_list_file) 199 os.close(idl_list_file)
208 200
209 return build_database(idl_list_file_name) 201 return build_database(idl_list_file_name)
210 202
211 if __name__ == '__main__': 203 if __name__ == '__main__':
212 sys.exit(main()) 204 sys.exit(main())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698