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

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

Issue 11883025: Detect if webkitNotifications is available and remove webkit prefix (replaced (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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 'HTMLKeygenElement': "Element.isTagSupported('keygen') " 79 'HTMLKeygenElement': "Element.isTagSupported('keygen') "
80 "&& (new Element.tag('keygen') is KeygenElement)", 80 "&& (new Element.tag('keygen') is KeygenElement)",
81 'HTMLMarqueeElement': "Element.isTagSupported('marquee')" 81 'HTMLMarqueeElement': "Element.isTagSupported('marquee')"
82 "&& (new Element.tag('marquee') is MarqueeElement)", 82 "&& (new Element.tag('marquee') is MarqueeElement)",
83 'HTMLMeterElement': "Element.isTagSupported('meter')", 83 'HTMLMeterElement': "Element.isTagSupported('meter')",
84 'HTMLObjectElement': "Element.isTagSupported('object')", 84 'HTMLObjectElement': "Element.isTagSupported('object')",
85 'HTMLOutputElement': "Element.isTagSupported('output')", 85 'HTMLOutputElement': "Element.isTagSupported('output')",
86 'HTMLProgressElement': "Element.isTagSupported('progress')", 86 'HTMLProgressElement': "Element.isTagSupported('progress')",
87 'HTMLShadowElement': "Element.isTagSupported('shadow')", 87 'HTMLShadowElement': "Element.isTagSupported('shadow')",
88 'HTMLTrackElement': "Element.isTagSupported('track')", 88 'HTMLTrackElement': "Element.isTagSupported('track')",
89 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
89 'Performance': "JS('bool', '!!(window.performance)')", 90 'Performance': "JS('bool', '!!(window.performance)')",
90 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')", 91 'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')",
91 } 92 }
92 93
93 # Classes that offer only static methods, and therefore we should suppress 94 # Classes that offer only static methods, and therefore we should suppress
94 # constructor creation. 95 # constructor creation.
95 _static_classes = set(['Url']) 96 _static_classes = set(['Url'])
96 97
97 # Information for generating element constructors. 98 # Information for generating element constructors.
98 # 99 #
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 for library_name in libraries: 1049 for library_name in libraries:
1049 self._libraries[library_name] = DartLibrary( 1050 self._libraries[library_name] = DartLibrary(
1050 library_name, template_loader, library_type, output_dir) 1051 library_name, template_loader, library_type, output_dir)
1051 1052
1052 def AddFile(self, basename, library_name, path): 1053 def AddFile(self, basename, library_name, path):
1053 self._libraries[library_name].AddFile(path) 1054 self._libraries[library_name].AddFile(path)
1054 1055
1055 def Emit(self, emitter, auxiliary_dir): 1056 def Emit(self, emitter, auxiliary_dir):
1056 for lib in self._libraries.values(): 1057 for lib in self._libraries.values():
1057 lib.Emit(emitter, auxiliary_dir) 1058 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« tests/html/exceptions_test.dart ('K') | « tools/dom/scripts/htmlrenamer.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698