| 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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 'SVGFETileElement', | 362 'SVGFETileElement', |
| 363 'SVGFETurbulenceElement', | 363 'SVGFETurbulenceElement', |
| 364 'SVGFilterElement', | 364 'SVGFilterElement', |
| 365 'SVGForeignObjectElement', | 365 'SVGForeignObjectElement', |
| 366 'SVGSetElement', | 366 'SVGSetElement', |
| 367 ] | 367 ] |
| 368 | 368 |
| 369 js_support_checks = dict({ | 369 js_support_checks = dict({ |
| 370 'AudioContext': "JS('bool', '!!(window.AudioContext ||" | 370 'AudioContext': "JS('bool', '!!(window.AudioContext ||" |
| 371 " window.webkitAudioContext)')", | 371 " window.webkitAudioContext)')", |
| 372 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", | |
| 373 'Crypto': | 372 'Crypto': |
| 374 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", | 373 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", |
| 375 'Database': "JS('bool', '!!(window.openDatabase)')", | 374 'Database': "JS('bool', '!!(window.openDatabase)')", |
| 376 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", | 375 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", |
| 377 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", | 376 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", |
| 378 'FormData': "JS('bool', '!!(window.FormData)')", | 377 'FormData': "JS('bool', '!!(window.FormData)')", |
| 379 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", | 378 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", |
| 380 'HTMLShadowElement': ElemSupportStr('shadow'), | 379 'HTMLShadowElement': ElemSupportStr('shadow'), |
| 381 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", | 380 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", |
| 382 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent
')", | 381 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent
')", |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1154 for library_name in libraries: | 1153 for library_name in libraries: |
| 1155 self._libraries[library_name] = DartLibrary( | 1154 self._libraries[library_name] = DartLibrary( |
| 1156 library_name, template_loader, library_type, output_dir) | 1155 library_name, template_loader, library_type, output_dir) |
| 1157 | 1156 |
| 1158 def AddFile(self, basename, library_name, path): | 1157 def AddFile(self, basename, library_name, path): |
| 1159 self._libraries[library_name].AddFile(path) | 1158 self._libraries[library_name].AddFile(path) |
| 1160 | 1159 |
| 1161 def Emit(self, emitter, auxiliary_dir): | 1160 def Emit(self, emitter, auxiliary_dir): |
| 1162 for lib in self._libraries.values(): | 1161 for lib in self._libraries.values(): |
| 1163 lib.Emit(emitter, auxiliary_dir) | 1162 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |