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

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

Issue 12326071: Adding supported checks and annotations to Crypto API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 'SVGFESpotLightElement', 352 'SVGFESpotLightElement',
353 'SVGFETileElement', 353 'SVGFETileElement',
354 'SVGFETurbulenceElement', 354 'SVGFETurbulenceElement',
355 'SVGFilterElement', 355 'SVGFilterElement',
356 'SVGForeignObjectElement', 356 'SVGForeignObjectElement',
357 'SVGSetElement', 357 'SVGSetElement',
358 ] 358 ]
359 359
360 js_support_checks = dict({ 360 js_support_checks = dict({
361 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", 361 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')",
362 'Crypto':
363 "JS('bool', '!!(window.crypto && window.crypto.getRandomValues)')",
362 'Database': "JS('bool', '!!(window.openDatabase)')", 364 'Database': "JS('bool', '!!(window.openDatabase)')",
363 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", 365 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')",
364 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 366 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
365 'FormData': "JS('bool', '!!(window.FormData)')", 367 'FormData': "JS('bool', '!!(window.FormData)')",
366 'HashChangeEvent': "Event._isTypeSupported('HashChangeEvent')", 368 'HashChangeEvent': "Event._isTypeSupported('HashChangeEvent')",
367 'HTMLShadowElement': ElemSupportStr('shadow'), 369 'HTMLShadowElement': ElemSupportStr('shadow'),
368 'MediaStreamEvent': "Event._isTypeSupported('MediaStreamEvent')", 370 'MediaStreamEvent': "Event._isTypeSupported('MediaStreamEvent')",
369 'MediaStreamTrackEvent': "Event._isTypeSupported('MediaStreamTrackEvent')", 371 'MediaStreamTrackEvent': "Event._isTypeSupported('MediaStreamTrackEvent')",
370 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')", 372 'NotificationCenter': "JS('bool', '!!(window.webkitNotifications)')",
371 'Performance': "JS('bool', '!!(window.performance)')", 373 'Performance': "JS('bool', '!!(window.performance)')",
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 for library_name in libraries: 1118 for library_name in libraries:
1117 self._libraries[library_name] = DartLibrary( 1119 self._libraries[library_name] = DartLibrary(
1118 library_name, template_loader, library_type, output_dir) 1120 library_name, template_loader, library_type, output_dir)
1119 1121
1120 def AddFile(self, basename, library_name, path): 1122 def AddFile(self, basename, library_name, path):
1121 self._libraries[library_name].AddFile(path) 1123 self._libraries[library_name].AddFile(path)
1122 1124
1123 def Emit(self, emitter, auxiliary_dir): 1125 def Emit(self, emitter, auxiliary_dir):
1124 for lib in self._libraries.values(): 1126 for lib in self._libraries.values():
1125 lib.Emit(emitter, auxiliary_dir) 1127 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« sdk/lib/html/dartium/html_dartium.dart ('K') | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698