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

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

Issue 14908005: "Reverting 22561" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/src/ModelTreeObserver.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 monitored 10 import monitored
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 'AudioContext': "JS('bool', '!!(window.AudioContext ||" 377 'AudioContext': "JS('bool', '!!(window.AudioContext ||"
378 " window.webkitAudioContext)')", 378 " window.webkitAudioContext)')",
379 'Crypto': 379 'Crypto':
380 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", 380 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')",
381 'Database': "JS('bool', '!!(window.openDatabase)')", 381 'Database': "JS('bool', '!!(window.openDatabase)')",
382 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", 382 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')",
383 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 383 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
384 'FormData': "JS('bool', '!!(window.FormData)')", 384 'FormData': "JS('bool', '!!(window.FormData)')",
385 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", 385 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')",
386 'HTMLShadowElement': ElemSupportStr('shadow'), 386 'HTMLShadowElement': ElemSupportStr('shadow'),
387 'HTMLTemplateElement': ElemSupportStr('template'),
388 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", 387 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')",
389 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')", 388 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')",
390 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 389 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
391 'Performance': "JS('bool', '!!(window.performance)')", 390 'Performance': "JS('bool', '!!(window.performance)')",
392 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " 391 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || "
393 "window.webkitSpeechRecognition)')", 392 "window.webkitSpeechRecognition)')",
394 'SVGExternalResourcesRequired': ('supported(SvgElement element)', 393 'SVGExternalResourcesRequired': ('supported(SvgElement element)',
395 "JS('bool', '#.externalResourcesRequired !== undefined && " 394 "JS('bool', '#.externalResourcesRequired !== undefined && "
396 "#.externalResourcesRequired.animVal !== undefined', " 395 "#.externalResourcesRequired.animVal !== undefined', "
397 "element, element)"), 396 "element, element)"),
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1168 for library_name in libraries: 1167 for library_name in libraries:
1169 self._libraries[library_name] = DartLibrary( 1168 self._libraries[library_name] = DartLibrary(
1170 library_name, template_loader, library_type, output_dir) 1169 library_name, template_loader, library_type, output_dir)
1171 1170
1172 def AddFile(self, basename, library_name, path): 1171 def AddFile(self, basename, library_name, path):
1173 self._libraries[library_name].AddFile(path) 1172 self._libraries[library_name].AddFile(path)
1174 1173
1175 def Emit(self, emitter, auxiliary_dir): 1174 def Emit(self, emitter, auxiliary_dir):
1176 for lib in self._libraries.values(): 1175 for lib in self._libraries.values():
1177 lib.Emit(emitter, auxiliary_dir) 1176 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/src/ModelTreeObserver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698