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

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

Issue 10310118: Now mode argument is correctly marked as optional in IDL itself. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 'DOMCoreException': 'DOMException', 124 'DOMCoreException': 'DOMException',
125 'DOMFormData': 'FormData', 125 'DOMFormData': 'FormData',
126 'DOMSelection': 'Selection', 126 'DOMSelection': 'Selection',
127 'DOMWindow': 'Window', 127 'DOMWindow': 'Window',
128 'SharedWorkerContext': 'SharedWorkerGlobalScope', 128 'SharedWorkerContext': 'SharedWorkerGlobalScope',
129 'WorkerContext': 'WorkerGlobalScope', 129 'WorkerContext': 'WorkerGlobalScope',
130 }) 130 })
131 131
132 optional_argument_whitelist = [ 132 optional_argument_whitelist = [
133 ('CSSStyleDeclaration', 'setProperty', 'priority'), 133 ('CSSStyleDeclaration', 'setProperty', 'priority'),
134 ('IDBDatabase', 'transaction', 'mode'),
135 ] 134 ]
136 135
137 # Import WebKit IDLs. 136 # Import WebKit IDLs.
138 for file_name in idl_files: 137 for file_name in idl_files:
139 builder.import_idl_file(file_name, webkit_options) 138 builder.import_idl_file(file_name, webkit_options)
140 139
141 # Import Dart idl: 140 # Import Dart idl:
142 dart_options = databasebuilder.DatabaseBuilderOptions( 141 dart_options = databasebuilder.DatabaseBuilderOptions(
143 idl_syntax=idlparser.FREMONTCUT_SYNTAX, 142 idl_syntax=idlparser.FREMONTCUT_SYNTAX,
144 source='Dart', 143 source='Dart',
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 207
209 for dir_name in webkit_dirs: 208 for dir_name in webkit_dirs:
210 dir_path = os.path.join(webcore_dir, dir_name) 209 dir_path = os.path.join(webcore_dir, dir_name)
211 os.path.walk(dir_path, visitor, None) 210 os.path.walk(dir_path, visitor, None)
212 211
213 database_dir = os.path.join(current_dir, '..', 'database') 212 database_dir = os.path.join(current_dir, '..', 'database')
214 return build_database(idl_files, database_dir) 213 return build_database(idl_files, database_dir)
215 214
216 if __name__ == '__main__': 215 if __name__ == '__main__':
217 sys.exit(main()) 216 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