| 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 import emitter | 9 import emitter |
| 10 | 10 |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 'pageshow': 'pageShow', | 402 'pageshow': 'pageShow', |
| 403 'paste': 'paste', | 403 'paste': 'paste', |
| 404 'pause': 'pause', | 404 'pause': 'pause', |
| 405 'play': 'play', | 405 'play': 'play', |
| 406 'playing': 'playing', | 406 'playing': 'playing', |
| 407 'popstate': 'popState', | 407 'popstate': 'popState', |
| 408 'progress': 'progress', | 408 'progress': 'progress', |
| 409 'ratechange': 'rateChange', | 409 'ratechange': 'rateChange', |
| 410 'readystatechange': 'readyStateChange', | 410 'readystatechange': 'readyStateChange', |
| 411 'removestream': 'removeStream', | 411 'removestream': 'removeStream', |
| 412 'removetrack': 'removeTrack', |
| 412 'reset': 'reset', | 413 'reset': 'reset', |
| 413 'resize': 'resize', | 414 'resize': 'resize', |
| 414 'result': 'result', | 415 'result': 'result', |
| 415 'resultdeleted': 'resultDeleted', | 416 'resultdeleted': 'resultDeleted', |
| 416 'scroll': 'scroll', | 417 'scroll': 'scroll', |
| 417 'search': 'search', | 418 'search': 'search', |
| 418 'seeked': 'seeked', | 419 'seeked': 'seeked', |
| 419 'seeking': 'seeking', | 420 'seeking': 'seeking', |
| 420 'select': 'select', | 421 'select': 'select', |
| 421 'selectionchange': 'selectionChange', | 422 'selectionchange': 'selectionChange', |
| (...skipping 988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1410 Collect(database.GetInterface(parent.type.id), | 1411 Collect(database.GetInterface(parent.type.id), |
| 1411 seen, collected) | 1412 seen, collected) |
| 1412 | 1413 |
| 1413 inheritance_closure = {} | 1414 inheritance_closure = {} |
| 1414 for interface in database.GetInterfaces(): | 1415 for interface in database.GetInterfaces(): |
| 1415 seen = set() | 1416 seen = set() |
| 1416 collected = [] | 1417 collected = [] |
| 1417 Collect(interface, seen, collected) | 1418 Collect(interface, seen, collected) |
| 1418 inheritance_closure[interface.id] = collected | 1419 inheritance_closure[interface.id] = collected |
| 1419 return inheritance_closure | 1420 return inheritance_closure |
| OLD | NEW |