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

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

Issue 12047020: Adding supported checks to media events (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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 os 10 import os
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 'HTMLEmbedElement': "Element.isTagSupported('embed')", 80 'HTMLEmbedElement': "Element.isTagSupported('embed')",
81 # IE creates keygen as Block elements 81 # IE creates keygen as Block elements
82 'HTMLKeygenElement': "Element.isTagSupported('keygen') " 82 'HTMLKeygenElement': "Element.isTagSupported('keygen') "
83 "&& (new Element.tag('keygen') is KeygenElement)", 83 "&& (new Element.tag('keygen') is KeygenElement)",
84 'HTMLMeterElement': "Element.isTagSupported('meter')", 84 'HTMLMeterElement': "Element.isTagSupported('meter')",
85 'HTMLObjectElement': "Element.isTagSupported('object')", 85 'HTMLObjectElement': "Element.isTagSupported('object')",
86 'HTMLOutputElement': "Element.isTagSupported('output')", 86 'HTMLOutputElement': "Element.isTagSupported('output')",
87 'HTMLProgressElement': "Element.isTagSupported('progress')", 87 'HTMLProgressElement': "Element.isTagSupported('progress')",
88 'HTMLShadowElement': "Element.isTagSupported('shadow')", 88 'HTMLShadowElement': "Element.isTagSupported('shadow')",
89 'HTMLTrackElement': "Element.isTagSupported('track')", 89 'HTMLTrackElement': "Element.isTagSupported('track')",
90 'MediaStreamEvent': "Event._isTypeSupported('MediaStreamEvent')",
91 'MediaStreamTrackEvent': "Event._isTypeSupported('MediaStreamTrackEvent')",
90 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 92 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
91 'Performance': "JS('bool', '!!(window.performance)')", 93 'Performance': "JS('bool', '!!(window.performance)')",
92 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", 94 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')",
93 } 95 }
94 96
95 # Classes that offer only static methods, and therefore we should suppress 97 # Classes that offer only static methods, and therefore we should suppress
96 # constructor creation. 98 # constructor creation.
97 _static_classes = set(['Url']) 99 _static_classes = set(['Url'])
98 100
99 # Information for generating element constructors. 101 # Information for generating element constructors.
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 for library_name in libraries: 1046 for library_name in libraries:
1045 self._libraries[library_name] = DartLibrary( 1047 self._libraries[library_name] = DartLibrary(
1046 library_name, template_loader, library_type, output_dir) 1048 library_name, template_loader, library_type, output_dir)
1047 1049
1048 def AddFile(self, basename, library_name, path): 1050 def AddFile(self, basename, library_name, path):
1049 self._libraries[library_name].AddFile(path) 1051 self._libraries[library_name].AddFile(path)
1050 1052
1051 def Emit(self, emitter, auxiliary_dir): 1053 def Emit(self, emitter, auxiliary_dir):
1052 for lib in self._libraries.values(): 1054 for lib in self._libraries.values():
1053 lib.Emit(emitter, auxiliary_dir) 1055 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tests/html/media_stream_test.dart ('k') | tools/dom/templates/html/impl/impl_Event.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698