| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 # Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 # Copyright (c) 2012, 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 """This module provides shared functionality for the system to generate | 6 """This module provides shared functionality for the system to generate |
| 7 Dart:html APIs from the IDL database.""" | 7 Dart:html APIs from the IDL database.""" |
| 8 | 8 |
| 9 from systemfrog import * | 9 from systemfrog import * |
| 10 from systeminterface import * | 10 from systeminterface import * |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 "Node.lookupPrefix", | 252 "Node.lookupPrefix", |
| 253 "Node.get:PROCESSING_INSTRUCTION_NODE", | 253 "Node.get:PROCESSING_INSTRUCTION_NODE", |
| 254 "IFrameElement.get:contentDocument", | 254 "IFrameElement.get:contentDocument", |
| 255 "Window.get:frameElement", | 255 "Window.get:frameElement", |
| 256 ]) | 256 ]) |
| 257 | 257 |
| 258 _html_library_custom = set([ | 258 _html_library_custom = set([ |
| 259 'IFrameElement.get:contentWindow', | 259 'IFrameElement.get:contentWindow', |
| 260 'Window.get:document', | 260 'Window.get:document', |
| 261 'Window.get:top', | 261 'Window.get:top', |
| 262 'IDBDatabase.transaction', |
| 262 ]) | 263 ]) |
| 263 | 264 |
| 264 # Events without onEventName attributes in the IDL we want to support. | 265 # Events without onEventName attributes in the IDL we want to support. |
| 265 # We can automatically extract most event event names by checking for | 266 # We can automatically extract most event event names by checking for |
| 266 # onEventName methods in the IDL but some events aren't listed so we need | 267 # onEventName methods in the IDL but some events aren't listed so we need |
| 267 # to manually add them here so that they are easy for users to find. | 268 # to manually add them here so that they are easy for users to find. |
| 268 _html_manual_events = { | 269 _html_manual_events = { |
| 269 'Element': ['touchleave', 'touchenter', 'webkitTransitionEnd'], | 270 'Element': ['touchleave', 'touchenter', 'webkitTransitionEnd'], |
| 270 'Window': ['DOMContentLoaded'] | 271 'Window': ['DOMContentLoaded'] |
| 271 } | 272 } |
| (...skipping 1080 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1352 Collect(database.GetInterface(parent.type.id), | 1353 Collect(database.GetInterface(parent.type.id), |
| 1353 seen, collected) | 1354 seen, collected) |
| 1354 | 1355 |
| 1355 inheritance_closure = {} | 1356 inheritance_closure = {} |
| 1356 for interface in database.GetInterfaces(): | 1357 for interface in database.GetInterfaces(): |
| 1357 seen = set() | 1358 seen = set() |
| 1358 collected = [] | 1359 collected = [] |
| 1359 Collect(interface, seen, collected) | 1360 Collect(interface, seen, collected) |
| 1360 inheritance_closure[interface.id] = collected | 1361 inheritance_closure[interface.id] = collected |
| 1361 return inheritance_closure | 1362 return inheritance_closure |
| OLD | NEW |