| 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 systems to generate | 6 """This module provides shared functionality for systems to generate |
| 7 Dart APIs from the IDL database.""" | 7 Dart APIs from the IDL database.""" |
| 8 | 8 |
| 9 import copy | 9 import copy |
| 10 import json | 10 import json |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 ], | 758 ], |
| 759 'HTMLDataListElement': _all_but_ie9_annotations, | 759 'HTMLDataListElement': _all_but_ie9_annotations, |
| 760 'HTMLDetailsElement': _webkit_experimental_annotations, | 760 'HTMLDetailsElement': _webkit_experimental_annotations, |
| 761 'HTMLEmbedElement': [ | 761 'HTMLEmbedElement': [ |
| 762 "@SupportedBrowser(SupportedBrowser.CHROME)", | 762 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 763 "@SupportedBrowser(SupportedBrowser.IE)", | 763 "@SupportedBrowser(SupportedBrowser.IE)", |
| 764 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 764 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 765 ], | 765 ], |
| 766 'HTMLKeygenElement': _webkit_experimental_annotations, | 766 'HTMLKeygenElement': _webkit_experimental_annotations, |
| 767 'HTMLMeterElement': _no_ie_annotations, | 767 'HTMLMeterElement': _no_ie_annotations, |
| 768 'HTMLObjectElement': _no_ie_annotations, | 768 'HTMLObjectElement': [ |
| 769 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 770 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 771 ], |
| 769 'HTMLOutputElement': _no_ie_annotations, | 772 'HTMLOutputElement': _no_ie_annotations, |
| 770 'HTMLProgressElement': _all_but_ie9_annotations, | 773 'HTMLProgressElement': _all_but_ie9_annotations, |
| 771 'HTMLShadowElement': [ | 774 'HTMLShadowElement': [ |
| 772 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 775 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
| 773 "@Experimental", | 776 "@Experimental", |
| 774 ], | 777 ], |
| 775 'HTMLTrackElement': [ | 778 'HTMLTrackElement': [ |
| 776 "@SupportedBrowser(SupportedBrowser.CHROME)", | 779 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 777 "@SupportedBrowser(SupportedBrowser.IE, '10')", | 780 "@SupportedBrowser(SupportedBrowser.IE, '10')", |
| 778 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 781 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 self) | 1478 self) |
| 1476 | 1479 |
| 1477 if type_data.clazz == 'SVGTearOff': | 1480 if type_data.clazz == 'SVGTearOff': |
| 1478 dart_interface_name = self._renamer.RenameInterface( | 1481 dart_interface_name = self._renamer.RenameInterface( |
| 1479 self._database.GetInterface(type_name)) | 1482 self._database.GetInterface(type_name)) |
| 1480 return SVGTearOffIDLTypeInfo( | 1483 return SVGTearOffIDLTypeInfo( |
| 1481 type_name, type_data, dart_interface_name, self) | 1484 type_name, type_data, dart_interface_name, self) |
| 1482 | 1485 |
| 1483 class_name = '%sIDLTypeInfo' % type_data.clazz | 1486 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1484 return globals()[class_name](type_name, type_data) | 1487 return globals()[class_name](type_name, type_data) |
| OLD | NEW |