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

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

Issue 9495014: Support Dart optional arguments which are not dispatched, but instead use default values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rename Created 8 years, 9 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 | « client/dom/scripts/databasebuilder.py ('k') | client/dom/scripts/systemnative.py » ('j') | 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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 'DOMObject': 'object', 134 'DOMObject': 'object',
135 'DOMSelection': 'Selection', 135 'DOMSelection': 'Selection',
136 'DOMWindow': 'Window', 136 'DOMWindow': 'Window',
137 'Exception': 'DOMException', # NotificationCenter.createNotification 137 'Exception': 'DOMException', # NotificationCenter.createNotification
138 'SharedWorkerContext': 'SharedWorkerGlobalScope', 138 'SharedWorkerContext': 'SharedWorkerGlobalScope',
139 'WorkerContext': 'WorkerGlobalScope', 139 'WorkerContext': 'WorkerGlobalScope',
140 }) 140 })
141 141
142 optional_argument_whitelist = [ 142 optional_argument_whitelist = [
143 ('CSSStyleDeclaration', 'setProperty', 'priority'), 143 ('CSSStyleDeclaration', 'setProperty', 'priority'),
144 # TODO(sra): Issue 1812 ('IDBDatabase', 'transaction', 'mode'), 144 ('IDBDatabase', 'transaction', 'mode'),
145 ] 145 ]
146 146
147 for dir_name in webkit_dirs: 147 for dir_name in webkit_dirs:
148 dir_path = os.path.join(current_dir, '..', '..', '..', '..', 148 dir_path = os.path.join(current_dir, '..', '..', '..', '..',
149 'third_party', 'WebKit', 'Source', 'WebCore', dir_name) 149 'third_party', 'WebKit', 'Source', 'WebCore', dir_name)
150 builder.import_idl_directory(dir_path, webkit_options) 150 builder.import_idl_directory(dir_path, webkit_options)
151 151
152 webkit_supplemental_options = databasebuilder.DatabaseBuilderOptions( 152 webkit_supplemental_options = databasebuilder.DatabaseBuilderOptions(
153 idl_syntax=idlparser.FREMONTCUT_SYNTAX, 153 idl_syntax=idlparser.FREMONTCUT_SYNTAX,
154 source='WebKit', 154 source='WebKit',
(...skipping 22 matching lines...) Expand all
177 177
178 builder.fix_displacements('WebKit') 178 builder.fix_displacements('WebKit')
179 179
180 # Cleanup: 180 # Cleanup:
181 builder.normalize_annotations(['WebKit', 'Dart']) 181 builder.normalize_annotations(['WebKit', 'Dart'])
182 182
183 db.Save() 183 db.Save()
184 184
185 if __name__ == '__main__': 185 if __name__ == '__main__':
186 sys.exit(main()) 186 sys.exit(main())
OLDNEW
« no previous file with comments | « client/dom/scripts/databasebuilder.py ('k') | client/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698