Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: tools/dom/scripts/systemhtml.py

Issue 11510013: Making ScriptProcessorNode not an EventTarget. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 'SVGFESpecularLightingElement', 351 'SVGFESpecularLightingElement',
352 'SVGFESpotLightElement', 352 'SVGFESpotLightElement',
353 'SVGFETileElement', 353 'SVGFETileElement',
354 'SVGFETurbulenceElement', 354 'SVGFETurbulenceElement',
355 'SVGFilterElement', 355 'SVGFilterElement',
356 'SVGForeignObjectElement', 356 'SVGForeignObjectElement',
357 'SVGSetElement', 357 'SVGSetElement',
358 ] 358 ]
359 359
360 js_support_checks = dict({ 360 js_support_checks = dict({
361 'AudioContext': "JS('bool', '!!(window.AudioContex ||"
362 " window.webkitAudioContext)')",
361 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", 363 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')",
362 'Crypto': 364 'Crypto':
363 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", 365 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')",
364 'Database': "JS('bool', '!!(window.openDatabase)')", 366 'Database': "JS('bool', '!!(window.openDatabase)')",
365 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", 367 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')",
366 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 368 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
367 'FormData': "JS('bool', '!!(window.FormData)')", 369 'FormData': "JS('bool', '!!(window.FormData)')",
368 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", 370 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')",
369 'HTMLShadowElement': ElemSupportStr('shadow'), 371 'HTMLShadowElement': ElemSupportStr('shadow'),
370 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", 372 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')",
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1135 for library_name in libraries: 1137 for library_name in libraries:
1136 self._libraries[library_name] = DartLibrary( 1138 self._libraries[library_name] = DartLibrary(
1137 library_name, template_loader, library_type, output_dir) 1139 library_name, template_loader, library_type, output_dir)
1138 1140
1139 def AddFile(self, basename, library_name, path): 1141 def AddFile(self, basename, library_name, path):
1140 self._libraries[library_name].AddFile(path) 1142 self._libraries[library_name].AddFile(path)
1141 1143
1142 def Emit(self, emitter, auxiliary_dir): 1144 def Emit(self, emitter, auxiliary_dir):
1143 for lib in self._libraries.values(): 1145 for lib in self._libraries.values():
1144 lib.Emit(emitter, auxiliary_dir) 1146 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698