| 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 import emitter | 9 import emitter |
| 10 import monitored | 10 import monitored |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 'Window.location', | 68 'Window.location', |
| 69 'Window.open', | 69 'Window.open', |
| 70 'Window.requestAnimationFrame', | 70 'Window.requestAnimationFrame', |
| 71 'WorkerContext.indexedDB', | 71 'WorkerContext.indexedDB', |
| 72 ]) | 72 ]) |
| 73 | 73 |
| 74 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [ | 74 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [ |
| 75 'AudioContext', | 75 'AudioContext', |
| 76 'Blob', | 76 'Blob', |
| 77 'MutationObserver', | 77 'MutationObserver', |
| 78 'Notification', | |
| 79 'RTCIceCandidate', | 78 'RTCIceCandidate', |
| 80 'RTCPeerConnection', | 79 'RTCPeerConnection', |
| 81 'RTCSessionDescription', | 80 'RTCSessionDescription', |
| 82 'SpeechRecognition', | 81 'SpeechRecognition', |
| 83 ]) | 82 ]) |
| 84 | 83 |
| 85 # Classes that offer only static methods, and therefore we should suppress | 84 # Classes that offer only static methods, and therefore we should suppress |
| 86 # constructor creation. | 85 # constructor creation. |
| 87 _static_classes = set(['Url']) | 86 _static_classes = set(['Url']) |
| 88 | 87 |
| (...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 for library_name in libraries: | 1134 for library_name in libraries: |
| 1136 self._libraries[library_name] = DartLibrary( | 1135 self._libraries[library_name] = DartLibrary( |
| 1137 library_name, template_loader, library_type, output_dir) | 1136 library_name, template_loader, library_type, output_dir) |
| 1138 | 1137 |
| 1139 def AddFile(self, basename, library_name, path): | 1138 def AddFile(self, basename, library_name, path): |
| 1140 self._libraries[library_name].AddFile(path) | 1139 self._libraries[library_name].AddFile(path) |
| 1141 | 1140 |
| 1142 def Emit(self, emitter, auxiliary_dir): | 1141 def Emit(self, emitter, auxiliary_dir): |
| 1143 for lib in self._libraries.values(): | 1142 for lib in self._libraries.values(): |
| 1144 lib.Emit(emitter, auxiliary_dir) | 1143 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |