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

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

Issue 1002953005: Fix Notification (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed formatting of the test 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 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 424 'Notification': "JS('bool', '!!(window.Notification)')",
425 'Performance': "JS('bool', '!!(window.performance)')", 425 'Performance': "JS('bool', '!!(window.performance)')",
426 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " 426 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || "
427 "window.webkitSpeechRecognition)')", 427 "window.webkitSpeechRecognition)')",
428 'SVGExternalResourcesRequired': ('supported(SvgElement element)', 428 'SVGExternalResourcesRequired': ('supported(SvgElement element)',
429 "JS('bool', '#.externalResourcesRequired !== undefined && " 429 "JS('bool', '#.externalResourcesRequired !== undefined && "
430 "#.externalResourcesRequired.animVal !== undefined', " 430 "#.externalResourcesRequired.animVal !== undefined', "
431 "element, element)"), 431 "element, element)"),
432 'SVGLangSpace': ('supported(SvgElement element)', 432 'SVGLangSpace': ('supported(SvgElement element)',
433 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', " 433 "JS('bool', '#.xmlspace !== undefined && #.xmllang !== undefined', "
434 "element, element)"), 434 "element, element)"),
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1274 1274
1275 def AddFile(self, basename, library_name, path): 1275 def AddFile(self, basename, library_name, path):
1276 self._libraries[library_name].AddFile(path) 1276 self._libraries[library_name].AddFile(path)
1277 1277
1278 def AddTypeEntry(self, library_name, idl_name, dart_name): 1278 def AddTypeEntry(self, library_name, idl_name, dart_name):
1279 self._libraries[library_name].AddTypeEntry(idl_name, dart_name) 1279 self._libraries[library_name].AddTypeEntry(idl_name, dart_name)
1280 1280
1281 def Emit(self, emitter, auxiliary_dir): 1281 def Emit(self, emitter, auxiliary_dir):
1282 for lib in self._libraries.values(): 1282 for lib in self._libraries.values():
1283 lib.Emit(emitter, auxiliary_dir) 1283 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_Notification.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698