| 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 logging | 10 import logging |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 'WheelEvent.deltaMode', | 78 'WheelEvent.deltaMode', |
| 79 'WheelEvent.wheelDeltaX', | 79 'WheelEvent.wheelDeltaX', |
| 80 'WheelEvent.wheelDeltaY', | 80 'WheelEvent.wheelDeltaY', |
| 81 'Window.cancelAnimationFrame', | 81 'Window.cancelAnimationFrame', |
| 82 'Window.console', | 82 'Window.console', |
| 83 'Window.document', | 83 'Window.document', |
| 84 'Window.indexedDB', | 84 'Window.indexedDB', |
| 85 'Window.location', | 85 'Window.location', |
| 86 'Window.open', | 86 'Window.open', |
| 87 'Window.requestAnimationFrame', | 87 'Window.requestAnimationFrame', |
| 88 'Window.scrollX', |
| 89 'Window.scrollY' |
| 88 # 'WorkerContext.indexedDB', # Workers | 90 # 'WorkerContext.indexedDB', # Workers |
| 89 ], dart2jsOnly=True) | 91 ], dart2jsOnly=True) |
| 90 | 92 |
| 91 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [ | 93 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [ |
| 92 'AudioContext', | 94 'AudioContext', |
| 93 'Blob', | 95 'Blob', |
| 94 'MutationObserver', | 96 'MutationObserver', |
| 95 'RTCIceCandidate', | 97 'RTCIceCandidate', |
| 96 'RTCPeerConnection', | 98 'RTCPeerConnection', |
| 97 'RTCSessionDescription', | 99 'RTCSessionDescription', |
| (...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1202 for library_name in libraries: | 1204 for library_name in libraries: |
| 1203 self._libraries[library_name] = DartLibrary( | 1205 self._libraries[library_name] = DartLibrary( |
| 1204 library_name, template_loader, library_type, output_dir) | 1206 library_name, template_loader, library_type, output_dir) |
| 1205 | 1207 |
| 1206 def AddFile(self, basename, library_name, path): | 1208 def AddFile(self, basename, library_name, path): |
| 1207 self._libraries[library_name].AddFile(path) | 1209 self._libraries[library_name].AddFile(path) |
| 1208 | 1210 |
| 1209 def Emit(self, emitter, auxiliary_dir): | 1211 def Emit(self, emitter, auxiliary_dir): |
| 1210 for lib in self._libraries.values(): | 1212 for lib in self._libraries.values(): |
| 1211 lib.Emit(emitter, auxiliary_dir) | 1213 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |