OLD | NEW |
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 Loading... |
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 Loading... |
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()) |
OLD | NEW |