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

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

Issue 10829008: Communication optionality of priority in CSSStyleDeclaration.setProperty via dart.idl. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
« no previous file with comments | « lib/dom/scripts/databasebuilder.py ('k') | 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 'DedicatedWorkerContext': 'DedicatedWorkerGlobalScope', 119 'DedicatedWorkerContext': 'DedicatedWorkerGlobalScope',
120 'DOMApplicationCache': 'ApplicationCache', 120 'DOMApplicationCache': 'ApplicationCache',
121 'DOMCoreException': 'DOMException', 121 'DOMCoreException': 'DOMException',
122 'DOMFormData': 'FormData', 122 'DOMFormData': 'FormData',
123 'DOMSelection': 'Selection', 123 'DOMSelection': 'Selection',
124 'DOMWindow': 'Window', 124 'DOMWindow': 'Window',
125 'SharedWorkerContext': 'SharedWorkerGlobalScope', 125 'SharedWorkerContext': 'SharedWorkerGlobalScope',
126 'WorkerContext': 'WorkerGlobalScope', 126 'WorkerContext': 'WorkerGlobalScope',
127 }) 127 })
128 128
129 optional_argument_whitelist = [
130 ('CSSStyleDeclaration', 'setProperty', 'priority'),
131 ]
132
133 # Import WebKit IDLs. 129 # Import WebKit IDLs.
134 for file_name in idl_files: 130 for file_name in idl_files:
135 builder.import_idl_file(file_name, webkit_options) 131 builder.import_idl_file(file_name, webkit_options)
136 132
137 # Import Dart idl: 133 # Import Dart idl:
138 dart_options = databasebuilder.DatabaseBuilderOptions( 134 dart_options = databasebuilder.DatabaseBuilderOptions(
139 idl_syntax=idlparser.FREMONTCUT_SYNTAX, 135 idl_syntax=idlparser.FREMONTCUT_SYNTAX,
140 source='Dart', 136 source='Dart',
141 rename_operation_arguments_on_merge=True) 137 rename_operation_arguments_on_merge=True)
142 138
143 builder.import_idl_file( 139 builder.import_idl_file(
144 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'), 140 os.path.join(current_dir, '..', 'idl', 'dart', 'dart.idl'),
145 dart_options) 141 dart_options)
146 142
147 # Merging: 143 # Merging:
148 builder.merge_imported_interfaces(optional_argument_whitelist) 144 builder.merge_imported_interfaces()
149 145
150 builder.fetch_constructor_data(webkit_options) 146 builder.fetch_constructor_data(webkit_options)
151 builder.fix_displacements('WebKit') 147 builder.fix_displacements('WebKit')
152 148
153 # Cleanup: 149 # Cleanup:
154 builder.normalize_annotations(['WebKit', 'Dart']) 150 builder.normalize_annotations(['WebKit', 'Dart'])
155 151
156 db.Save() 152 db.Save()
157 153
158 def main(): 154 def main():
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 203
208 for dir_name in webkit_dirs: 204 for dir_name in webkit_dirs:
209 dir_path = os.path.join(webcore_dir, dir_name) 205 dir_path = os.path.join(webcore_dir, dir_name)
210 os.path.walk(dir_path, visitor, None) 206 os.path.walk(dir_path, visitor, None)
211 207
212 database_dir = os.path.join(current_dir, '..', 'database') 208 database_dir = os.path.join(current_dir, '..', 'database')
213 return build_database(idl_files, database_dir) 209 return build_database(idl_files, database_dir)
214 210
215 if __name__ == '__main__': 211 if __name__ == '__main__':
216 sys.exit(main()) 212 sys.exit(main())
OLDNEW
« no previous file with comments | « lib/dom/scripts/databasebuilder.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698