| 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 390 'SVGForeignObjectElement', | 390 'SVGForeignObjectElement', |
| 391 'SVGSetElement', | 391 'SVGSetElement', |
| 392 ] | 392 ] |
| 393 | 393 |
| 394 js_support_checks = dict({ | 394 js_support_checks = dict({ |
| 395 'AudioContext': "JS('bool', '!!(window.AudioContext ||" | 395 'AudioContext': "JS('bool', '!!(window.AudioContext ||" |
| 396 " window.webkitAudioContext)')", | 396 " window.webkitAudioContext)')", |
| 397 'Crypto': | 397 'Crypto': |
| 398 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", | 398 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", |
| 399 'Database': "JS('bool', '!!(window.openDatabase)')", | 399 'Database': "JS('bool', '!!(window.openDatabase)')", |
| 400 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", | 400 'ApplicationCache': "JS('bool', '!!(window.applicationCache)')", |
| 401 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", | 401 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", |
| 402 'FormData': "JS('bool', '!!(window.FormData)')", | 402 'FormData': "JS('bool', '!!(window.FormData)')", |
| 403 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", | 403 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", |
| 404 'HTMLShadowElement': ElemSupportStr('shadow'), | 404 'HTMLShadowElement': ElemSupportStr('shadow'), |
| 405 'HTMLTemplateElement': ElemSupportStr('template'), | 405 'HTMLTemplateElement': ElemSupportStr('template'), |
| 406 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", | 406 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", |
| 407 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent
')", | 407 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent
')", |
| 408 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", | 408 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", |
| 409 'Performance': "JS('bool', '!!(window.performance)')", | 409 'Performance': "JS('bool', '!!(window.performance)')", |
| 410 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " | 410 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " |
| (...skipping 810 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1221 for library_name in libraries: | 1221 for library_name in libraries: |
| 1222 self._libraries[library_name] = DartLibrary( | 1222 self._libraries[library_name] = DartLibrary( |
| 1223 library_name, template_loader, library_type, output_dir) | 1223 library_name, template_loader, library_type, output_dir) |
| 1224 | 1224 |
| 1225 def AddFile(self, basename, library_name, path): | 1225 def AddFile(self, basename, library_name, path): |
| 1226 self._libraries[library_name].AddFile(path) | 1226 self._libraries[library_name].AddFile(path) |
| 1227 | 1227 |
| 1228 def Emit(self, emitter, auxiliary_dir): | 1228 def Emit(self, emitter, auxiliary_dir): |
| 1229 for lib in self._libraries.values(): | 1229 for lib in self._libraries.values(): |
| 1230 lib.Emit(emitter, auxiliary_dir) | 1230 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |