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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 'WheelEvent.deltaMode', | 63 'WheelEvent.deltaMode', |
64 'WheelEvent.wheelDeltaX', | 64 'WheelEvent.wheelDeltaX', |
65 'WheelEvent.wheelDeltaY', | 65 'WheelEvent.wheelDeltaY', |
66 'Window.cancelAnimationFrame', | 66 'Window.cancelAnimationFrame', |
67 'Window.console', | 67 'Window.console', |
68 'Window.document', | 68 'Window.document', |
69 'Window.indexedDB', | 69 'Window.indexedDB', |
70 'Window.location', | 70 'Window.location', |
71 'Window.open', | 71 'Window.open', |
72 'Window.requestAnimationFrame', | 72 'Window.requestAnimationFrame', |
73 'WorkerContext.indexedDB', | 73 # 'WorkerContext.indexedDB', # Workers |
74 ]) | 74 ]) |
75 | 75 |
76 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [ | 76 _js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [ |
77 'AudioContext', | 77 'AudioContext', |
78 'Blob', | 78 'Blob', |
79 'MutationObserver', | 79 'MutationObserver', |
80 'RTCIceCandidate', | 80 'RTCIceCandidate', |
81 'RTCPeerConnection', | 81 'RTCPeerConnection', |
82 'RTCSessionDescription', | 82 'RTCSessionDescription', |
83 'SpeechRecognition', | 83 'SpeechRecognition', |
(...skipping 1059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1143 for library_name in libraries: | 1143 for library_name in libraries: |
1144 self._libraries[library_name] = DartLibrary( | 1144 self._libraries[library_name] = DartLibrary( |
1145 library_name, template_loader, library_type, output_dir) | 1145 library_name, template_loader, library_type, output_dir) |
1146 | 1146 |
1147 def AddFile(self, basename, library_name, path): | 1147 def AddFile(self, basename, library_name, path): |
1148 self._libraries[library_name].AddFile(path) | 1148 self._libraries[library_name].AddFile(path) |
1149 | 1149 |
1150 def Emit(self, emitter, auxiliary_dir): | 1150 def Emit(self, emitter, auxiliary_dir): |
1151 for lib in self._libraries.values(): | 1151 for lib in self._libraries.values(): |
1152 lib.Emit(emitter, auxiliary_dir) | 1152 lib.Emit(emitter, auxiliary_dir) |
OLD | NEW |