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

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

Issue 952133004: Changes to support roll 39 IDLs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Cleanup Created 5 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
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | tools/dom/scripts/systemnative.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 logging 10 import logging
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 "window.webkitSpeechRecognition)')", 426 "window.webkitSpeechRecognition)')",
427 'SVGExternalResourcesRequired': ('supported(SvgElement element)', 427 'SVGExternalResourcesRequired': ('supported(SvgElement element)',
428 "JS('bool', '#.externalResourcesRequired !== undefined && " 428 "JS('bool', '#.externalResourcesRequired !== undefined && "
429 "#.externalResourcesRequired.animVal !== undefined', " 429 "#.externalResourcesRequired.animVal !== undefined', "
430 "element, element)"), 430 "element, element)"),
431 'SVGLangSpace': ('supported(SvgElement element)', 431 'SVGLangSpace': ('supported(SvgElement element)',
432 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " 432 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', "
433 "element, element)"), 433 "element, element)"),
434 'TouchList': "JS('bool', '!!document.createTouchList')", 434 'TouchList': "JS('bool', '!!document.createTouchList')",
435 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')", 435 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')",
436 'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')",
437 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", 436 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')",
438 'Worker': "JS('bool', '(typeof window.Worker != \"undefined\")')", 437 'Worker': "JS('bool', '(typeof window.Worker != \"undefined\")')",
439 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')", 438 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')",
440 }.items() + 439 }.items() +
441 dict((key, 440 dict((key,
442 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG') 441 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG')
443 else ElemSupportStr(_html_element_constructors[key])) for key in 442 else ElemSupportStr(_html_element_constructors[key])) for key in
444 _js_support_checks_basic_element_with_constructors + 443 _js_support_checks_basic_element_with_constructors +
445 _js_support_checks_additional_element).items()) 444 _js_support_checks_additional_element).items())
446 # ------------------------------------------------------------------------------ 445 # ------------------------------------------------------------------------------
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 1273
1275 def AddFile(self, basename, library_name, path): 1274 def AddFile(self, basename, library_name, path):
1276 self._libraries[library_name].AddFile(path) 1275 self._libraries[library_name].AddFile(path)
1277 1276
1278 def AddTypeEntry(self, library_name, idl_name, dart_name): 1277 def AddTypeEntry(self, library_name, idl_name, dart_name):
1279 self._libraries[library_name].AddTypeEntry(idl_name, dart_name) 1278 self._libraries[library_name].AddTypeEntry(idl_name, dart_name)
1280 1279
1281 def Emit(self, emitter, auxiliary_dir): 1280 def Emit(self, emitter, auxiliary_dir):
1282 for lib in self._libraries.values(): 1281 for lib in self._libraries.values():
1283 lib.Emit(emitter, auxiliary_dir) 1282 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/idlnode.py ('k') | tools/dom/scripts/systemnative.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698