| 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 re | 10 import re |
| (...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 'IDBFactory': _indexed_db_annotations, | 769 'IDBFactory': _indexed_db_annotations, |
| 770 'IDBDatabase': _indexed_db_annotations, | 770 'IDBDatabase': _indexed_db_annotations, |
| 771 'MutationObserver': [ | 771 'MutationObserver': [ |
| 772 "@SupportedBrowser(SupportedBrowser.CHROME)", | 772 "@SupportedBrowser(SupportedBrowser.CHROME)", |
| 773 "@SupportedBrowser(SupportedBrowser.FIREFOX)", | 773 "@SupportedBrowser(SupportedBrowser.FIREFOX)", |
| 774 "@SupportedBrowser(SupportedBrowser.SAFARI)", | 774 "@SupportedBrowser(SupportedBrowser.SAFARI)", |
| 775 "@Experimental()", | 775 "@Experimental()", |
| 776 ], | 776 ], |
| 777 'NotificationCenter': _webkit_experimental_annotations, | 777 'NotificationCenter': _webkit_experimental_annotations, |
| 778 'Performance': _performance_annotations, | 778 'Performance': _performance_annotations, |
| 779 'PopStateEvent': _history_annotations, |
| 779 'ShadowRoot': [ | 780 'ShadowRoot': [ |
| 780 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", | 781 "@SupportedBrowser(SupportedBrowser.CHROME, '25')", |
| 781 "@Experimental()", | 782 "@Experimental()", |
| 782 ], | 783 ], |
| 783 'SpeechRecognition': _speech_recognition_annotations, | 784 'SpeechRecognition': _speech_recognition_annotations, |
| 784 'SpeechRecognitionAlternative': _speech_recognition_annotations, | 785 'SpeechRecognitionAlternative': _speech_recognition_annotations, |
| 785 'SpeechRecognitionError': _speech_recognition_annotations, | 786 'SpeechRecognitionError': _speech_recognition_annotations, |
| 786 'SpeechRecognitionEvent': _speech_recognition_annotations, | 787 'SpeechRecognitionEvent': _speech_recognition_annotations, |
| 787 'SpeechRecognitionResult': _speech_recognition_annotations, | 788 'SpeechRecognitionResult': _speech_recognition_annotations, |
| 788 'WebSocket': _all_but_ie9_annotations, | 789 'WebSocket': _all_but_ie9_annotations, |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1387 self) | 1388 self) |
| 1388 | 1389 |
| 1389 if type_data.clazz == 'SVGTearOff': | 1390 if type_data.clazz == 'SVGTearOff': |
| 1390 dart_interface_name = self._renamer.RenameInterface( | 1391 dart_interface_name = self._renamer.RenameInterface( |
| 1391 self._database.GetInterface(type_name)) | 1392 self._database.GetInterface(type_name)) |
| 1392 return SVGTearOffIDLTypeInfo( | 1393 return SVGTearOffIDLTypeInfo( |
| 1393 type_name, type_data, dart_interface_name, self) | 1394 type_name, type_data, dart_interface_name, self) |
| 1394 | 1395 |
| 1395 class_name = '%sIDLTypeInfo' % type_data.clazz | 1396 class_name = '%sIDLTypeInfo' % type_data.clazz |
| 1396 return globals()[class_name](type_name, type_data) | 1397 return globals()[class_name](type_name, type_data) |
| OLD | NEW |