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

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

Issue 990383002: Add MediaSource.supported, annotations for supported browsers, and a minimal test (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 'Database': "JS('bool', '!!(window.openDatabase)')", 414 'Database': "JS('bool', '!!(window.openDatabase)')",
415 'DOMPoint': "JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)')", 415 'DOMPoint': "JS('bool', '!!(window.DOMPoint) || !!(window.WebKitPoint)')",
416 'ApplicationCache': "JS('bool', '!!(window.applicationCache)')", 416 'ApplicationCache': "JS('bool', '!!(window.applicationCache)')",
417 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 417 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
418 'FormData': "JS('bool', '!!(window.FormData)')", 418 'FormData': "JS('bool', '!!(window.FormData)')",
419 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", 419 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')",
420 'HTMLShadowElement': ElemSupportStr('shadow'), 420 'HTMLShadowElement': ElemSupportStr('shadow'),
421 'HTMLTemplateElement': ElemSupportStr('template'), 421 'HTMLTemplateElement': ElemSupportStr('template'),
422 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", 422 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')",
423 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')", 423 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')",
424 'MediaSource': "JS('bool', '!!(window.MediaSource)')",
424 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 425 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
425 'Performance': "JS('bool', '!!(window.performance)')", 426 'Performance': "JS('bool', '!!(window.performance)')",
426 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " 427 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || "
427 "window.webkitSpeechRecognition)')", 428 "window.webkitSpeechRecognition)')",
428 'SVGExternalResourcesRequired': ('supported(SvgElement element)', 429 'SVGExternalResourcesRequired': ('supported(SvgElement element)',
429 "JS('bool', '#.externalResourcesRequired !== undefined && " 430 "JS('bool', '#.externalResourcesRequired !== undefined && "
430 "#.externalResourcesRequired.animVal !== undefined', " 431 "#.externalResourcesRequired.animVal !== undefined', "
431 "element, element)"), 432 "element, element)"),
432 'SVGLangSpace': ('supported(SvgElement element)', 433 'SVGLangSpace': ('supported(SvgElement element)',
433 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " 434 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', "
(...skipping 840 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 1275
1275 def AddFile(self, basename, library_name, path): 1276 def AddFile(self, basename, library_name, path):
1276 self._libraries[library_name].AddFile(path) 1277 self._libraries[library_name].AddFile(path)
1277 1278
1278 def AddTypeEntry(self, library_name, idl_name, dart_name): 1279 def AddTypeEntry(self, library_name, idl_name, dart_name):
1279 self._libraries[library_name].AddTypeEntry(idl_name, dart_name) 1280 self._libraries[library_name].AddTypeEntry(idl_name, dart_name)
1280 1281
1281 def Emit(self, emitter, auxiliary_dir): 1282 def Emit(self, emitter, auxiliary_dir):
1282 for lib in self._libraries.values(): 1283 for lib in self._libraries.values():
1283 lib.Emit(emitter, auxiliary_dir) 1284 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« tests/html/mediasource_test.dart ('K') | « tools/dom/scripts/dartmetadata.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698