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

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

Issue 1014843004: Make Element.animate work in dart2js Chrome (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix comment indentation 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
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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 'ConsoleBase.timeStamp', 51 'ConsoleBase.timeStamp',
52 'ConsoleBase.trace', 52 'ConsoleBase.trace',
53 'ConsoleBase.warn', 53 'ConsoleBase.warn',
54 'WebKitCSSKeyframesRule.insertRule', 54 'WebKitCSSKeyframesRule.insertRule',
55 'CSSStyleDeclaration.setProperty', 55 'CSSStyleDeclaration.setProperty',
56 'CSSStyleDeclaration.__propertyQuery__', 56 'CSSStyleDeclaration.__propertyQuery__',
57 'Document.createNodeIterator', 57 'Document.createNodeIterator',
58 'Document.createTreeWalker', 58 'Document.createTreeWalker',
59 'DOMException.name', 59 'DOMException.name',
60 'DOMException.toString', 60 'DOMException.toString',
61 'Element.animate',
61 'Element.createShadowRoot', 62 'Element.createShadowRoot',
62 'Element.insertAdjacentElement', 63 'Element.insertAdjacentElement',
63 'Element.insertAdjacentHTML', 64 'Element.insertAdjacentHTML',
64 'Element.insertAdjacentText', 65 'Element.insertAdjacentText',
65 'Element.remove', 66 'Element.remove',
66 'Element.shadowRoot', 67 'Element.shadowRoot',
67 'Element.matches', 68 'Element.matches',
68 'ElementEvents.mouseWheel', 69 'ElementEvents.mouseWheel',
69 'ElementEvents.transitionEnd', 70 'ElementEvents.transitionEnd',
70 'FileReader.result', 71 'FileReader.result',
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 'SVGFESpecularLightingElement', 401 'SVGFESpecularLightingElement',
401 'SVGFESpotLightElement', 402 'SVGFESpotLightElement',
402 'SVGFETileElement', 403 'SVGFETileElement',
403 'SVGFETurbulenceElement', 404 'SVGFETurbulenceElement',
404 'SVGFilterElement', 405 'SVGFilterElement',
405 'SVGForeignObjectElement', 406 'SVGForeignObjectElement',
406 'SVGSetElement', 407 'SVGSetElement',
407 ] 408 ]
408 409
409 js_support_checks = dict({ 410 js_support_checks = dict({
411 'AnimationPlayer': "JS('bool', '!!(document.body.animate)')",
410 'AudioContext': "JS('bool', '!!(window.AudioContext ||" 412 'AudioContext': "JS('bool', '!!(window.AudioContext ||"
411 " window.webkitAudioContext)')", 413 " window.webkitAudioContext)')",
412 'Crypto': 414 'Crypto':
413 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", 415 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')",
414 'Database': "JS('bool', '!!(window.openDatabase)')", 416 'Database': "JS('bool', '!!(window.openDatabase)')",
415 'DOMPoint': "JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)')", 417 'DOMPoint': "JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)')",
416 'ApplicationCache': "JS('bool', '!!(window.applicationCache)')", 418 'ApplicationCache': "JS('bool', '!!(window.applicationCache)')",
417 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 419 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
418 'FormData': "JS('bool', '!!(window.FormData)')", 420 'FormData': "JS('bool', '!!(window.FormData)')",
419 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", 421 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')",
(...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 1277
1276 def AddFile(self, basename, library_name, path): 1278 def AddFile(self, basename, library_name, path):
1277 self._libraries[library_name].AddFile(path) 1279 self._libraries[library_name].AddFile(path)
1278 1280
1279 def AddTypeEntry(self, library_name, idl_name, dart_name): 1281 def AddTypeEntry(self, library_name, idl_name, dart_name):
1280 self._libraries[library_name].AddTypeEntry(idl_name, dart_name) 1282 self._libraries[library_name].AddTypeEntry(idl_name, dart_name)
1281 1283
1282 def Emit(self, emitter, auxiliary_dir): 1284 def Emit(self, emitter, auxiliary_dir):
1283 for lib in self._libraries.values(): 1285 for lib in self._libraries.values():
1284 lib.Emit(emitter, auxiliary_dir) 1286 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698