| 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 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 "JS('bool', '#.externalResourcesRequired !== undefined && " | 377 "JS('bool', '#.externalResourcesRequired !== undefined && " |
| 378 "#.externalResourcesRequired.animVal !== undefined', " | 378 "#.externalResourcesRequired.animVal !== undefined', " |
| 379 "element, element)"), | 379 "element, element)"), |
| 380 'SVGLangSpace': ('supported(SvgElement element)', | 380 'SVGLangSpace': ('supported(SvgElement element)', |
| 381 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " | 381 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " |
| 382 "element, element)"), | 382 "element, element)"), |
| 383 'TouchList': "JS('bool', '!!document.createTouchList')", | 383 'TouchList': "JS('bool', '!!document.createTouchList')", |
| 384 'XMLHttpRequestProgressEvent': | 384 'XMLHttpRequestProgressEvent': |
| 385 "Device.isEventTypeSupported('XMLHttpRequestProgressEvent')", | 385 "Device.isEventTypeSupported('XMLHttpRequestProgressEvent')", |
| 386 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')", | 386 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')", |
| 387 'WebKitCSSMatrix': "JS('bool', '!!(window.WebKitCSSMatrix)')", | |
| 388 'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')", | 387 'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')", |
| 389 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", | 388 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", |
| 390 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')", | 389 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')", |
| 391 }.items() + | 390 }.items() + |
| 392 dict((key, | 391 dict((key, |
| 393 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG') | 392 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG') |
| 394 else ElemSupportStr(_html_element_constructors[key])) for key in | 393 else ElemSupportStr(_html_element_constructors[key])) for key in |
| 395 _js_support_checks_basic_element_with_constructors + | 394 _js_support_checks_basic_element_with_constructors + |
| 396 _js_support_checks_additional_element).items()) | 395 _js_support_checks_additional_element).items()) |
| 397 # ------------------------------------------------------------------------------ | 396 # ------------------------------------------------------------------------------ |
| (...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1135 for library_name in libraries: | 1134 for library_name in libraries: |
| 1136 self._libraries[library_name] = DartLibrary( | 1135 self._libraries[library_name] = DartLibrary( |
| 1137 library_name, template_loader, library_type, output_dir) | 1136 library_name, template_loader, library_type, output_dir) |
| 1138 | 1137 |
| 1139 def AddFile(self, basename, library_name, path): | 1138 def AddFile(self, basename, library_name, path): |
| 1140 self._libraries[library_name].AddFile(path) | 1139 self._libraries[library_name].AddFile(path) |
| 1141 | 1140 |
| 1142 def Emit(self, emitter, auxiliary_dir): | 1141 def Emit(self, emitter, auxiliary_dir): |
| 1143 for lib in self._libraries.values(): | 1142 for lib in self._libraries.values(): |
| 1144 lib.Emit(emitter, auxiliary_dir) | 1143 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |