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

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: try upload again 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 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'),
387 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')", 388 'MediaStreamEvent': "Device.isEventTypeSupported('MediaStreamEvent')",
388 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')", 389 'MediaStreamTrackEvent': "Device.isEventTypeSupported('MediaStreamTrackEvent ')",
389 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 390 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
390 'Performance': "JS('bool', '!!(window.performance)')", 391 'Performance': "JS('bool', '!!(window.performance)')",
391 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || " 392 'SpeechRecognition': "JS('bool', '!!(window.SpeechRecognition || "
392 "window.webkitSpeechRecognition)')", 393 "window.webkitSpeechRecognition)')",
393 'SVGExternalResourcesRequired': ('supported(SvgElement element)', 394 'SVGExternalResourcesRequired': ('supported(SvgElement element)',
394 "JS('bool', '#.externalResourcesRequired !== undefined && " 395 "JS('bool', '#.externalResourcesRequired !== undefined && "
395 "#.externalResourcesRequired.animVal !== undefined', " 396 "#.externalResourcesRequired.animVal !== undefined', "
396 "element, element)"), 397 "element, element)"),
(...skipping 770 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 for library_name in libraries: 1168 for library_name in libraries:
1168 self._libraries[library_name] = DartLibrary( 1169 self._libraries[library_name] = DartLibrary(
1169 library_name, template_loader, library_type, output_dir) 1170 library_name, template_loader, library_type, output_dir)
1170 1171
1171 def AddFile(self, basename, library_name, path): 1172 def AddFile(self, basename, library_name, path):
1172 self._libraries[library_name].AddFile(path) 1173 self._libraries[library_name].AddFile(path)
1173 1174
1174 def Emit(self, emitter, auxiliary_dir): 1175 def Emit(self, emitter, auxiliary_dir):
1175 for lib in self._libraries.values(): 1176 for lib in self._libraries.values():
1176 lib.Emit(emitter, auxiliary_dir) 1177 lib.Emit(emitter, auxiliary_dir)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698