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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 'ENABLE_XHR_RESPONSE_BLOB', | 111 'ENABLE_XHR_RESPONSE_BLOB', |
112 'ENABLE_XSLT', | 112 'ENABLE_XSLT', |
113 ] | 113 ] |
114 webkit_options = databasebuilder.DatabaseBuilderOptions( | 114 webkit_options = databasebuilder.DatabaseBuilderOptions( |
115 idl_syntax=idlparser.WEBKIT_SYNTAX, | 115 idl_syntax=idlparser.WEBKIT_SYNTAX, |
116 # TODO(vsm): What else should we define as on when processing IDL? | 116 # TODO(vsm): What else should we define as on when processing IDL? |
117 idl_defines=webkit_defines, | 117 idl_defines=webkit_defines, |
118 source='WebKit', | 118 source='WebKit', |
119 source_attributes={'revision': webkit_revision}, | 119 source_attributes={'revision': webkit_revision}, |
120 type_rename_map={ | 120 type_rename_map={ |
| 121 # Some of these are typos in the IDL. |
121 'float': 'double', | 122 'float': 'double', |
122 'BarInfo': 'BarProp', | 123 'BarInfo': 'BarProp', |
123 'DedicatedWorkerContext': 'DedicatedWorkerGlobalScope', | 124 'DedicatedWorkerContext': 'DedicatedWorkerGlobalScope', |
124 'DOMApplicationCache': 'ApplicationCache', | 125 'DOMApplicationCache': 'ApplicationCache', |
125 'DOMCoreException': 'DOMException', | 126 'DOMCoreException': 'DOMException', |
| 127 'DOMExceptionJSC': 'DOMException', # Node.replaceChild |
| 128 'DomException': 'DOMException', # Navigator.registerProtocolHandler |
126 'DOMFormData': 'FormData', | 129 'DOMFormData': 'FormData', |
127 'DOMObject': 'object', | 130 'DOMObject': 'object', |
128 'DOMSelection': 'Selection', | 131 'DOMSelection': 'Selection', |
129 'DOMWindow': 'Window', | 132 'DOMWindow': 'Window', |
| 133 'Exception': 'DOMException', # NotificationCenter.createNotification |
130 'SharedWorkerContext': 'SharedWorkerGlobalScope', | 134 'SharedWorkerContext': 'SharedWorkerGlobalScope', |
131 'WorkerContext': 'WorkerGlobalScope', | 135 'WorkerContext': 'WorkerGlobalScope', |
132 }) | 136 }) |
133 | 137 |
134 optional_argument_whitelist = [ | 138 optional_argument_whitelist = [ |
135 ('CSSStyleDeclaration', 'setProperty', 'priority'), | 139 ('CSSStyleDeclaration', 'setProperty', 'priority'), |
136 ] | 140 ] |
137 | 141 |
138 for dir_name in webkit_dirs: | 142 for dir_name in webkit_dirs: |
139 dir_path = os.path.join(current_dir, '..', '..', '..', '..', | 143 dir_path = os.path.join(current_dir, '..', '..', '..', '..', |
(...skipping 28 matching lines...) Expand all Loading... |
168 | 172 |
169 builder.fix_displacements('WebKit') | 173 builder.fix_displacements('WebKit') |
170 | 174 |
171 # Cleanup: | 175 # Cleanup: |
172 builder.normalize_annotations(['WebKit', 'Dart']) | 176 builder.normalize_annotations(['WebKit', 'Dart']) |
173 | 177 |
174 db.Save() | 178 db.Save() |
175 | 179 |
176 if __name__ == '__main__': | 180 if __name__ == '__main__': |
177 sys.exit(main()) | 181 sys.exit(main()) |
OLD | NEW |