| 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 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, | 798 'DOMWindow.webkitRequestFileSystem': _file_system_annotations, |
| 799 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, | 799 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations, |
| 800 'Element.onwebkitTransitionEnd': _all_but_ie9_annotations, | 800 'Element.onwebkitTransitionEnd': _all_but_ie9_annotations, |
| 801 # Placeholder to add experimental flag, implementation for this is | 801 # Placeholder to add experimental flag, implementation for this is |
| 802 # pending in a separate CL. | 802 # pending in a separate CL. |
| 803 'Element.webkitMatchesSelector': ['@Experimental()'], | 803 'Element.webkitMatchesSelector': ['@Experimental()'], |
| 804 'Element.webkitCreateShadowRoot': [ | 804 'Element.webkitCreateShadowRoot': [ |
| 805 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 805 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
| 806 "@Experimental", | 806 "@Experimental", |
| 807 ], | 807 ], |
| 808 'Event.clipboardData': _webkit_experimental_annotations, |
| 808 'FormData': _all_but_ie9_annotations, | 809 'FormData': _all_but_ie9_annotations, |
| 809 'HashChangeEvent': [ | 810 'HashChangeEvent': [ |
| 810 "@SupportedBrowser(SupportedBrowser.CHROME)", | 811 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 811 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 812 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
| 812 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 813 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 813 ], | 814 ], |
| 814 'History.pushState': _history_annotations, | 815 'History.pushState': _history_annotations, |
| 815 'History.replaceState': _history_annotations, | 816 'History.replaceState': _history_annotations, |
| 816 'HTMLContentElement': _shadow_dom_annotations, | 817 'HTMLContentElement': _shadow_dom_annotations, |
| 817 'HTMLDataListElement': _all_but_ie9_annotations, | 818 'HTMLDataListElement': _all_but_ie9_annotations, |
| (...skipping 747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1565 self) | 1566 self) |
| 1566 | 1567 |
| 1567 if type_data.clazz == 'SVGTearOff': | 1568 if type_data.clazz == 'SVGTearOff': |
| 1568 dart_interface_name = self._renamer.RenameInterface( | 1569 dart_interface_name = self._renamer.RenameInterface( |
| 1569 self._database.GetInterface(type_name)) | 1570 self._database.GetInterface(type_name)) |
| 1570 return SVGTearOffIDLTypeInfo( | 1571 return SVGTearOffIDLTypeInfo( |
| 1571 type_name, type_data, dart_interface_name, self) | 1572 type_name, type_data, dart_interface_name, self) |
| 1572 | 1573 |
| 1573 class_name = '%sIDLTypeInfo' % type_data.clazz | 1574 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1574 return globals()[class_name](type_name, type_data) | 1575 return globals()[class_name](type_name, type_data) |
| OLD | NEW |