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

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

Issue 12857006: Removing CssValue APIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 "JS('bool', '#.externalResourcesRequired !== undefined && " 385 "JS('bool', '#.externalResourcesRequired !== undefined && "
386 "#.externalResourcesRequired.animVal !== undefined', " 386 "#.externalResourcesRequired.animVal !== undefined', "
387 "element, element)"), 387 "element, element)"),
388 'SVGLangSpace': ('supported(SvgElement element)', 388 'SVGLangSpace': ('supported(SvgElement element)',
389 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " 389 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', "
390 "element, element)"), 390 "element, element)"),
391 'TouchList': "JS('bool', '!!document.createTouchList')", 391 'TouchList': "JS('bool', '!!document.createTouchList')",
392 'XMLHttpRequestProgressEvent': 392 'XMLHttpRequestProgressEvent':
393 "Device.isEventTypeSupported('XMLHttpRequestProgressEvent')", 393 "Device.isEventTypeSupported('XMLHttpRequestProgressEvent')",
394 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')", 394 'WebGLRenderingContext': "JS('bool', '!!(window.WebGLRenderingContext)')",
395 'WebKitCSSMatrix': "JS('bool', '!!(window.WebKitCSSMatrix)')",
396 'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')", 395 'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')",
397 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", 396 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')",
398 'Worker': "JS('bool', '(typeof window.Worker != \"undefined\")')", 397 'Worker': "JS('bool', '(typeof window.Worker != \"undefined\")')",
399 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')", 398 'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')",
400 }.items() + 399 }.items() +
401 dict((key, 400 dict((key,
402 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG') 401 SvgSupportStr(_svg_element_constructors[key]) if key.startswith('SVG')
403 else ElemSupportStr(_html_element_constructors[key])) for key in 402 else ElemSupportStr(_html_element_constructors[key])) for key in
404 _js_support_checks_basic_element_with_constructors + 403 _js_support_checks_basic_element_with_constructors +
405 _js_support_checks_additional_element).items()) 404 _js_support_checks_additional_element).items())
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
1152 for library_name in libraries: 1151 for library_name in libraries:
1153 self._libraries[library_name] = DartLibrary( 1152 self._libraries[library_name] = DartLibrary(
1154 library_name, template_loader, library_type, output_dir) 1153 library_name, template_loader, library_type, output_dir)
1155 1154
1156 def AddFile(self, basename, library_name, path): 1155 def AddFile(self, basename, library_name, path):
1157 self._libraries[library_name].AddFile(path) 1156 self._libraries[library_name].AddFile(path)
1158 1157
1159 def Emit(self, emitter, auxiliary_dir): 1158 def Emit(self, emitter, auxiliary_dir):
1160 for lib in self._libraries.values(): 1159 for lib in self._libraries.values():
1161 lib.Emit(emitter, auxiliary_dir) 1160 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_SVGColor.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698