| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 'DOMException.name', | 51 'DOMException.name', |
| 52 'HTMLTableElement.createTBody', | 52 'HTMLTableElement.createTBody', |
| 53 'IDBDatabase.transaction', | 53 'IDBDatabase.transaction', |
| 54 'KeyboardEvent.initKeyboardEvent', | 54 'KeyboardEvent.initKeyboardEvent', |
| 55 'MouseEvent.offsetX', | 55 'MouseEvent.offsetX', |
| 56 'MouseEvent.offsetY', | 56 'MouseEvent.offsetY', |
| 57 'Navigator.language', | 57 'Navigator.language', |
| 58 'Navigator.webkitGetUserMedia', | 58 'Navigator.webkitGetUserMedia', |
| 59 'URL.createObjectURL', | 59 'URL.createObjectURL', |
| 60 'URL.revokeObjectURL', | 60 'URL.revokeObjectURL', |
| 61 'WheelEvent.deltaMode', |
| 61 'WheelEvent.wheelDeltaX', | 62 'WheelEvent.wheelDeltaX', |
| 62 'WheelEvent.wheelDeltaY', | 63 'WheelEvent.wheelDeltaY', |
| 63 'Window.cancelAnimationFrame', | 64 'Window.cancelAnimationFrame', |
| 64 'Window.console', | 65 'Window.console', |
| 65 'Window.document', | 66 'Window.document', |
| 66 'Window.indexedDB', | 67 'Window.indexedDB', |
| 67 'Window.location', | 68 'Window.location', |
| 68 'Window.open', | 69 'Window.open', |
| 69 'Window.requestAnimationFrame', | 70 'Window.requestAnimationFrame', |
| 70 'WorkerContext.indexedDB', | 71 'WorkerContext.indexedDB', |
| (...skipping 1044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 for library_name in libraries: | 1116 for library_name in libraries: |
| 1116 self._libraries[library_name] = DartLibrary( | 1117 self._libraries[library_name] = DartLibrary( |
| 1117 library_name, template_loader, library_type, output_dir) | 1118 library_name, template_loader, library_type, output_dir) |
| 1118 | 1119 |
| 1119 def AddFile(self, basename, library_name, path): | 1120 def AddFile(self, basename, library_name, path): |
| 1120 self._libraries[library_name].AddFile(path) | 1121 self._libraries[library_name].AddFile(path) |
| 1121 | 1122 |
| 1122 def Emit(self, emitter, auxiliary_dir): | 1123 def Emit(self, emitter, auxiliary_dir): |
| 1123 for lib in self._libraries.values(): | 1124 for lib in self._libraries.values(): |
| 1124 lib.Emit(emitter, auxiliary_dir) | 1125 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |