| 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 os | 10 import os |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 'Performance': "JS('bool', '!!(window.performance)')", | 350 'Performance': "JS('bool', '!!(window.performance)')", |
| 351 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " | 351 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " |
| 352 "window.webkitSpeechRecognition)')", | 352 "window.webkitSpeechRecognition)')", |
| 353 'SVGExternalResourcesRequired': ('supported(SvgElement element)', | 353 'SVGExternalResourcesRequired': ('supported(SvgElement element)', |
| 354 "JS('bool', '#.externalResourcesRequired !== undefined && " | 354 "JS('bool', '#.externalResourcesRequired !== undefined && " |
| 355 "#.externalResourcesRequired.animVal !== undefined', " | 355 "#.externalResourcesRequired.animVal !== undefined', " |
| 356 "element, element)"), | 356 "element, element)"), |
| 357 'SVGLangSpace': ('supported(SvgElement element)', | 357 'SVGLangSpace': ('supported(SvgElement element)', |
| 358 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " | 358 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " |
| 359 "element, element)"), | 359 "element, element)"), |
| 360 'TouchList': "JS('bool', '!!document.createTouchList')", |
| 360 'XMLHttpRequestProgressEvent': | 361 'XMLHttpRequestProgressEvent': |
| 361 "Event._isTypeSupported('XMLHttpRequestProgressEvent')", | 362 "Event._isTypeSupported('XMLHttpRequestProgressEvent')", |
| 362 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')", | 363 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')", |
| 363 'WebKitCSSMatrix': "JS('bool', '!!(window.WebKitCSSMatrix)')", | 364 'WebKitCSSMatrix': "JS('bool', '!!(window.WebKitCSSMatrix)')", |
| 364 'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')", | 365 'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')", |
| 365 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", | 366 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", |
| 366 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')", | 367 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')", |
| 367 }.items() + | 368 }.items() + |
| 368 dict((key, | 369 dict((key, |
| 369 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG') | 370 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG') |
| (...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1105 for library_name in libraries: | 1106 for library_name in libraries: |
| 1106 self._libraries[library_name] = DartLibrary( | 1107 self._libraries[library_name] = DartLibrary( |
| 1107 library_name, template_loader, library_type, output_dir) | 1108 library_name, template_loader, library_type, output_dir) |
| 1108 | 1109 |
| 1109 def AddFile(self, basename, library_name, path): | 1110 def AddFile(self, basename, library_name, path): |
| 1110 self._libraries[library_name].AddFile(path) | 1111 self._libraries[library_name].AddFile(path) |
| 1111 | 1112 |
| 1112 def Emit(self, emitter, auxiliary_dir): | 1113 def Emit(self, emitter, auxiliary_dir): |
| 1113 for lib in self._libraries.values(): | 1114 for lib in self._libraries.values(): |
| 1114 lib.Emit(emitter, auxiliary_dir) | 1115 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |