| 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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 423 'webkitAnimationEnd': 'animationEnd', | 423 'webkitAnimationEnd': 'animationEnd', |
| 424 'webkitAnimationIteration': 'animationIteration', | 424 'webkitAnimationIteration': 'animationIteration', |
| 425 'webkitAnimationStart': 'animationStart', | 425 'webkitAnimationStart': 'animationStart', |
| 426 'webkitfullscreenchange': 'fullscreenChange', | 426 'webkitfullscreenchange': 'fullscreenChange', |
| 427 'webkitfullscreenerror': 'fullscreenError', | 427 'webkitfullscreenerror': 'fullscreenError', |
| 428 'webkitkeyadded': 'keyAdded', | 428 'webkitkeyadded': 'keyAdded', |
| 429 'webkitkeyerror': 'keyError', | 429 'webkitkeyerror': 'keyError', |
| 430 'webkitkeymessage': 'keyMessage', | 430 'webkitkeymessage': 'keyMessage', |
| 431 'webkitneedkey': 'needKey', | 431 'webkitneedkey': 'needKey', |
| 432 'webkitSpeechChange': 'speechChange', | 432 'webkitSpeechChange': 'speechChange', |
| 433 'webkitsourceclose': 'sourceClose', |
| 434 'webkitsourceended': 'sourceEnded', |
| 435 'webkitsourceopen': 'sourceOpen', |
| 433 'webkitTransitionEnd': 'transitionEnd', | 436 'webkitTransitionEnd': 'transitionEnd', |
| 434 'write': 'write', | 437 'write': 'write', |
| 435 'writeend': 'writeEnd', | 438 'writeend': 'writeEnd', |
| 436 'writestart': 'writeStart' | 439 'writestart': 'writeStart' |
| 437 } | 440 } |
| 438 | 441 |
| 439 # These classes require an explicit declaration for the "on" method even though | 442 # These classes require an explicit declaration for the "on" method even though |
| 440 # they don't declare any unique events, because the concrete class hierarchy | 443 # they don't declare any unique events, because the concrete class hierarchy |
| 441 # doesn't match the interface hierarchy. | 444 # doesn't match the interface hierarchy. |
| 442 _html_explicit_event_classes = set(['DocumentFragment']) | 445 _html_explicit_event_classes = set(['DocumentFragment']) |
| (...skipping 1121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1564 Collect(database.GetInterface(parent.type.id), | 1567 Collect(database.GetInterface(parent.type.id), |
| 1565 seen, collected) | 1568 seen, collected) |
| 1566 | 1569 |
| 1567 inheritance_closure = {} | 1570 inheritance_closure = {} |
| 1568 for interface in database.GetInterfaces(): | 1571 for interface in database.GetInterfaces(): |
| 1569 seen = set() | 1572 seen = set() |
| 1570 collected = [] | 1573 collected = [] |
| 1571 Collect(interface, seen, collected) | 1574 Collect(interface, seen, collected) |
| 1572 inheritance_closure[interface.id] = collected | 1575 inheritance_closure[interface.id] = collected |
| 1573 return inheritance_closure | 1576 return inheritance_closure |
| OLD | NEW |