| 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 'Element.onwebkitTransitionEnd': _all_but_ie9_annotations, | 744 'Element.onwebkitTransitionEnd': _all_but_ie9_annotations, |
| 745 # Placeholder to add experimental flag, implementation for this is | 745 # Placeholder to add experimental flag, implementation for this is |
| 746 # pending in a separate CL. | 746 # pending in a separate CL. |
| 747 'Element.webkitMatchesSelector': ['@Experimental()'], | 747 'Element.webkitMatchesSelector': ['@Experimental()'], |
| 748 'Element.webkitCreateShadowRoot': [ | 748 'Element.webkitCreateShadowRoot': [ |
| 749 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 749 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
| 750 "@Experimental", | 750 "@Experimental", |
| 751 ], | 751 ], |
| 752 'FileSystem': _file_system_annotations, | 752 'FileSystem': _file_system_annotations, |
| 753 'FileSystemSync': _file_system_annotations, | 753 'FileSystemSync': _file_system_annotations, |
| 754 'FormData': _all_but_ie9_annotations, |
| 754 'HashChangeEvent': [ | 755 'HashChangeEvent': [ |
| 755 "@SupportedBrowser(SupportedBrowser.CHROME)", | 756 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 756 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 757 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
| 757 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 758 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 758 ], | 759 ], |
| 759 'History.pushState': _history_annotations, | 760 'History.pushState': _history_annotations, |
| 760 'History.replaceState': _history_annotations, | 761 'History.replaceState': _history_annotations, |
| 761 'HTMLContentElement': [ | 762 'HTMLContentElement': [ |
| 762 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 763 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
| 763 "@Experimental", | 764 "@Experimental", |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 'WebKitCSSMatrix': _webkit_experimental_annotations, | 854 'WebKitCSSMatrix': _webkit_experimental_annotations, |
| 854 'WebKitPoint': _webkit_experimental_annotations, | 855 'WebKitPoint': _webkit_experimental_annotations, |
| 855 'WebSocket': _all_but_ie9_annotations, | 856 'WebSocket': _all_but_ie9_annotations, |
| 856 'WorkerContext.indexedDB': _indexed_db_annotations, | 857 'WorkerContext.indexedDB': _indexed_db_annotations, |
| 857 'WorkerContext.openDatabase': _web_sql_annotations, | 858 'WorkerContext.openDatabase': _web_sql_annotations, |
| 858 'WorkerContext.openDatabaseSync': _web_sql_annotations, | 859 'WorkerContext.openDatabaseSync': _web_sql_annotations, |
| 859 'WorkerContext.webkitRequestFileSystem': _file_system_annotations, | 860 'WorkerContext.webkitRequestFileSystem': _file_system_annotations, |
| 860 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations, | 861 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations, |
| 861 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations, | 862 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations, |
| 862 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations, | 863 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations, |
| 864 'XMLHttpRequest.onloadend': _all_but_ie9_annotations, |
| 865 'XMLHttpRequest.onprogress': _all_but_ie9_annotations, |
| 866 'XMLHttpRequest.response': _all_but_ie9_annotations, |
| 863 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, | 867 'XMLHttpRequestProgressEvent': _webkit_experimental_annotations, |
| 864 'XSLTProcessor': [ | 868 'XSLTProcessor': [ |
| 865 "@SupportedBrowser(SupportedBrowser.CHROME)", | 869 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 866 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 870 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
| 867 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 871 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 868 ], | 872 ], |
| 869 } | 873 } |
| 870 | 874 |
| 871 def GetComments(library_name, interface_name, member_name=None): | 875 def GetComments(library_name, interface_name, member_name=None): |
| 872 """ Finds all comments for the interface or member and returns a list. """ | 876 """ Finds all comments for the interface or member and returns a list. """ |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1499 self) | 1503 self) |
| 1500 | 1504 |
| 1501 if type_data.clazz == 'SVGTearOff': | 1505 if type_data.clazz == 'SVGTearOff': |
| 1502 dart_interface_name = self._renamer.RenameInterface( | 1506 dart_interface_name = self._renamer.RenameInterface( |
| 1503 self._database.GetInterface(type_name)) | 1507 self._database.GetInterface(type_name)) |
| 1504 return SVGTearOffIDLTypeInfo( | 1508 return SVGTearOffIDLTypeInfo( |
| 1505 type_name, type_data, dart_interface_name, self) | 1509 type_name, type_data, dart_interface_name, self) |
| 1506 | 1510 |
| 1507 class_name = '%sIDLTypeInfo' % type_data.clazz | 1511 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1508 return globals()[class_name](type_name, type_data) | 1512 return globals()[class_name](type_name, type_data) |
| OLD | NEW |