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

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

Issue 14732003: Implement Model-Driven-Views spec for Dart (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: small fix 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
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 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 'AudioContext': "JS('bool', '!!(window.AudioContext ||" 374 'AudioContext': "JS('bool', '!!(window.AudioContext ||"
375 " window.webkitAudioContext)')", 375 " window.webkitAudioContext)')",
376 'Crypto': 376 'Crypto':
377 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')", 377 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')",
378 'Database': "JS('bool', '!!(window.openDatabase)')", 378 'Database': "JS('bool', '!!(window.openDatabase)')",
379 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", 379 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')",
380 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 380 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
381 'FormData': "JS('bool', '!!(window.FormData)')", 381 'FormData': "JS('bool', '!!(window.FormData)')",
382 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')", 382 'HashChangeEvent': "Device.isEventTypeSupported('HashChangeEvent')",
383 'HTMLShadowElement': ElemSupportStr('shadow'), 383 'HTMLShadowElement': ElemSupportStr('shadow'),
384 'HTMLTemplateElement': ElemSupportStr('template'),
384 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", 385 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')",
385 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')", 386 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')",
386 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 387 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
387 'Performance': "JS('bool', '!!(window.performance)')", 388 'Performance': "JS('bool', '!!(window.performance)')",
388 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " 389 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || "
389 "window.webkitSpeechRecognition)')", 390 "window.webkitSpeechRecognition)')",
390 'SVGExternalResourcesRequired': ('supported(SvgElement element)', 391 'SVGExternalResourcesRequired': ('supported(SvgElement element)',
391 "JS('bool', '#.externalResourcesRequired !== undefined && " 392 "JS('bool', '#.externalResourcesRequired !== undefined && "
392 "#.externalResourcesRequired.animVal !== undefined', " 393 "#.externalResourcesRequired.animVal !== undefined', "
393 "element, element)"), 394 "element, element)"),
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
1156 for library_name in libraries: 1157 for library_name in libraries:
1157 self._libraries[library_name] = DartLibrary( 1158 self._libraries[library_name] = DartLibrary(
1158 library_name, template_loader, library_type, output_dir) 1159 library_name, template_loader, library_type, output_dir)
1159 1160
1160 def AddFile(self, basename, library_name, path): 1161 def AddFile(self, basename, library_name, path):
1161 self._libraries[library_name].AddFile(path) 1162 self._libraries[library_name].AddFile(path)
1162 1163
1163 def Emit(self, emitter, auxiliary_dir): 1164 def Emit(self, emitter, auxiliary_dir):
1164 for lib in self._libraries.values(): 1165 for lib in self._libraries.values():
1165 lib.Emit(emitter, auxiliary_dir) 1166 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698