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

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

Issue 9979031: Use non-pinned IDL for Dartium code gen (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 os.path 9 import os.path
10 import logging.config 10 import logging.config
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 'Exception': 'DOMException', # NotificationCenter.createNotification 142 'Exception': 'DOMException', # NotificationCenter.createNotification
143 'SharedWorkerContext': 'SharedWorkerGlobalScope', 143 'SharedWorkerContext': 'SharedWorkerGlobalScope',
144 'WorkerContext': 'WorkerGlobalScope', 144 'WorkerContext': 'WorkerGlobalScope',
145 }) 145 })
146 146
147 optional_argument_whitelist = [ 147 optional_argument_whitelist = [
148 ('CSSStyleDeclaration', 'setProperty', 'priority'), 148 ('CSSStyleDeclaration', 'setProperty', 'priority'),
149 ('IDBDatabase', 'transaction', 'mode'), 149 ('IDBDatabase', 'transaction', 'mode'),
150 ] 150 ]
151 151
152 # Assume standard Dart checkout. 152 # Assume Dartium checkout.
153 webcore_path = os.path.join(current_dir, '..', '..', '..', 153 webcore_path = os.path.join(current_dir, '..', '..', '..', '..',
154 'third_party', 'WebCore') 154 'third_party', 'WebKit', 'Source', 'WebCore')
155 155
156 if not os.path.exists(webcore_path): 156 if not os.path.exists(webcore_path):
157 # Dartium checkout. 157 # Fall back to standard Dart checkout.
158 webcore_path = os.path.join(current_dir, '..', '..', '..', '..', 158 webcore_path = os.path.join(current_dir, '..', '..', '..',
159 'third_party', 'WebKit', 'Source', 'WebCore') 159 'third_party', 'WebCore')
160 160
161 for dir_name in webkit_dirs: 161 for dir_name in webkit_dirs:
162 dir_path = os.path.join(webcore_path, dir_name) 162 dir_path = os.path.join(webcore_path, dir_name)
163 builder.import_idl_directory(dir_path, webkit_options) 163 builder.import_idl_directory(dir_path, webkit_options)
164 164
165 webkit_supplemental_options = databasebuilder.DatabaseBuilderOptions( 165 webkit_supplemental_options = databasebuilder.DatabaseBuilderOptions(
166 idl_syntax=idlparser.FREMONTCUT_SYNTAX, 166 idl_syntax=idlparser.FREMONTCUT_SYNTAX,
167 source='WebKit', 167 source='WebKit',
168 rename_operation_arguments_on_merge=True) 168 rename_operation_arguments_on_merge=True)
169 builder.import_idl_file( 169 builder.import_idl_file(
(...skipping 20 matching lines...) Expand all
190 190
191 builder.fix_displacements('WebKit') 191 builder.fix_displacements('WebKit')
192 192
193 # Cleanup: 193 # Cleanup:
194 builder.normalize_annotations(['WebKit', 'Dart']) 194 builder.normalize_annotations(['WebKit', 'Dart'])
195 195
196 db.Save() 196 db.Save()
197 197
198 if __name__ == '__main__': 198 if __name__ == '__main__':
199 sys.exit(main()) 199 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