| 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 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 'AnchorElement' : | 493 'AnchorElement' : |
| 494 ElementConstructorInfo(tag='a', opt_params=[('String', 'href')]), | 494 ElementConstructorInfo(tag='a', opt_params=[('String', 'href')]), |
| 495 'AreaElement': 'area', | 495 'AreaElement': 'area', |
| 496 'ButtonElement': 'button', | 496 'ButtonElement': 'button', |
| 497 'BRElement': 'br', | 497 'BRElement': 'br', |
| 498 'BaseElement': 'base', | 498 'BaseElement': 'base', |
| 499 'BodyElement': 'body', | 499 'BodyElement': 'body', |
| 500 'ButtonElement': 'button', | 500 'ButtonElement': 'button', |
| 501 'CanvasElement': | 501 'CanvasElement': |
| 502 ElementConstructorInfo(tag='canvas', | 502 ElementConstructorInfo(tag='canvas', |
| 503 opt_params=[('int', 'height'), ('int', 'width')]), | 503 opt_params=[('int', 'width'), ('int', 'height')]), |
| 504 'DListElement': 'dl', | 504 'DListElement': 'dl', |
| 505 'DetailsElement': 'details', | 505 'DetailsElement': 'details', |
| 506 'DivElement': 'div', | 506 'DivElement': 'div', |
| 507 'EmbedElement': 'embed', | 507 'EmbedElement': 'embed', |
| 508 'FieldSetElement': 'fieldset', | 508 'FieldSetElement': 'fieldset', |
| 509 'Form': 'form', | 509 'Form': 'form', |
| 510 'HRElement': 'hr', | 510 'HRElement': 'hr', |
| 511 'HeadElement': 'head', | 511 'HeadElement': 'head', |
| 512 'HeadingElement': [ElementConstructorInfo('h1'), | 512 'HeadingElement': [ElementConstructorInfo('h1'), |
| 513 ElementConstructorInfo('h2'), | 513 ElementConstructorInfo('h2'), |
| 514 ElementConstructorInfo('h3'), | 514 ElementConstructorInfo('h3'), |
| 515 ElementConstructorInfo('h4'), | 515 ElementConstructorInfo('h4'), |
| 516 ElementConstructorInfo('h5'), | 516 ElementConstructorInfo('h5'), |
| 517 ElementConstructorInfo('h6')], | 517 ElementConstructorInfo('h6')], |
| 518 'HtmlElement': 'html', | 518 'HtmlElement': 'html', |
| 519 'IFrameElement': 'iframe', | 519 'IFrameElement': 'iframe', |
| 520 'ImageElement': | 520 'ImageElement': |
| 521 ElementConstructorInfo(tag='img', | 521 ElementConstructorInfo(tag='img', |
| 522 opt_params=[('String', 'src'), | 522 opt_params=[('String', 'src'), |
| 523 ('int', 'height'), ('int', 'width')]), | 523 ('int', 'width'), ('int', 'height')]), |
| 524 'InputElement': | 524 'InputElement': |
| 525 ElementConstructorInfo(tag='input', opt_params=[('String', 'type')]), | 525 ElementConstructorInfo(tag='input', opt_params=[('String', 'type')]), |
| 526 'KeygenElement': 'keygen', | 526 'KeygenElement': 'keygen', |
| 527 'LIElement': 'li', | 527 'LIElement': 'li', |
| 528 'LabelElement': 'label', | 528 'LabelElement': 'label', |
| 529 'LegendElement': 'legend', | 529 'LegendElement': 'legend', |
| 530 'LinkElement': 'link', | 530 'LinkElement': 'link', |
| 531 'MapElement': 'map', | 531 'MapElement': 'map', |
| 532 'MenuElement': 'menu', | 532 'MenuElement': 'menu', |
| 533 'MeterElement': 'meter', | 533 'MeterElement': 'meter', |
| (...skipping 918 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1452 Collect(database.GetInterface(parent.type.id), | 1452 Collect(database.GetInterface(parent.type.id), |
| 1453 seen, collected) | 1453 seen, collected) |
| 1454 | 1454 |
| 1455 inheritance_closure = {} | 1455 inheritance_closure = {} |
| 1456 for interface in database.GetInterfaces(): | 1456 for interface in database.GetInterfaces(): |
| 1457 seen = set() | 1457 seen = set() |
| 1458 collected = [] | 1458 collected = [] |
| 1459 Collect(interface, seen, collected) | 1459 Collect(interface, seen, collected) |
| 1460 inheritance_closure[interface.id] = collected | 1460 inheritance_closure[interface.id] = collected |
| 1461 return inheritance_closure | 1461 return inheritance_closure |
| OLD | NEW |