| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 'SVGFESpecularLightingElement', | 350 'SVGFESpecularLightingElement', |
| 351 'SVGFESpotLightElement', | 351 'SVGFESpotLightElement', |
| 352 'SVGFETileElement', | 352 'SVGFETileElement', |
| 353 'SVGFETurbulenceElement', | 353 'SVGFETurbulenceElement', |
| 354 'SVGFilterElement', | 354 'SVGFilterElement', |
| 355 'SVGForeignObjectElement', | 355 'SVGForeignObjectElement', |
| 356 'SVGSetElement', | 356 'SVGSetElement', |
| 357 ] | 357 ] |
| 358 | 358 |
| 359 js_support_checks = dict({ | 359 js_support_checks = dict({ |
| 360 'AudioContext': "JS('bool', '!!(window.AudioContext ||" |
| 361 " window.webkitAudioContext)')", |
| 360 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", | 362 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", |
| 361 'Crypto': | 363 'Crypto': |
| 362 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", | 364 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", |
| 363 'Database': "JS('bool', '!!(window.openDatabase)')", | 365 'Database': "JS('bool', '!!(window.openDatabase)')", |
| 364 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", | 366 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", |
| 365 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", | 367 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", |
| 366 'FormData': "JS('bool', '!!(window.FormData)')", | 368 'FormData': "JS('bool', '!!(window.FormData)')", |
| 367 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", | 369 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", |
| 368 'HTMLShadowElement': ElemSupportStr('shadow'), | 370 'HTMLShadowElement': ElemSupportStr('shadow'), |
| 369 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", | 371 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 for library_name in libraries: | 1136 for library_name in libraries: |
| 1135 self._libraries[library_name] = DartLibrary( | 1137 self._libraries[library_name] = DartLibrary( |
| 1136 library_name, template_loader, library_type, output_dir) | 1138 library_name, template_loader, library_type, output_dir) |
| 1137 | 1139 |
| 1138 def AddFile(self, basename, library_name, path): | 1140 def AddFile(self, basename, library_name, path): |
| 1139 self._libraries[library_name].AddFile(path) | 1141 self._libraries[library_name].AddFile(path) |
| 1140 | 1142 |
| 1141 def Emit(self, emitter, auxiliary_dir): | 1143 def Emit(self, emitter, auxiliary_dir): |
| 1142 for lib in self._libraries.values(): | 1144 for lib in self._libraries.values(): |
| 1143 lib.Emit(emitter, auxiliary_dir) | 1145 lib.Emit(emitter, auxiliary_dir) |
| OLD | NEW |