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

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

Issue 12050005: Adding supported checks to websql. (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
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | 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 os 10 import os
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 'Window.location', 65 'Window.location',
66 'Window.open', 66 'Window.open',
67 'Window.requestAnimationFrame', 67 'Window.requestAnimationFrame',
68 'Window.webkitCancelAnimationFrame', 68 'Window.webkitCancelAnimationFrame',
69 'Window.webkitRequestAnimationFrame', 69 'Window.webkitRequestAnimationFrame',
70 'WorkerContext.indexedDB', 70 'WorkerContext.indexedDB',
71 ]) 71 ])
72 72
73 js_support_checks = { 73 js_support_checks = {
74 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", 74 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')",
75 'Database': "JS('bool', '!!(window.openDatabase)')",
75 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')", 76 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')",
76 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 77 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
77 'HashChangeEvent': "Event._isTypeSupported('HashChangeEvent')", 78 'HashChangeEvent': "Event._isTypeSupported('HashChangeEvent')",
78 'HTMLContentElement': "Element.isTagSupported('content')", 79 'HTMLContentElement': "Element.isTagSupported('content')",
79 'HTMLDataListElement': "Element.isTagSupported('datalist')", 80 'HTMLDataListElement': "Element.isTagSupported('datalist')",
80 'HTMLDetailsElement': "Element.isTagSupported('details')", 81 'HTMLDetailsElement': "Element.isTagSupported('details')",
81 'HTMLEmbedElement': "Element.isTagSupported('embed')", 82 'HTMLEmbedElement': "Element.isTagSupported('embed')",
82 # IE creates keygen as Block elements 83 # IE creates keygen as Block elements
83 'HTMLKeygenElement': "Element.isTagSupported('keygen') " 84 'HTMLKeygenElement': "Element.isTagSupported('keygen') "
84 "&& (new Element.tag('keygen') is KeygenElement)", 85 "&& (new Element.tag('keygen') is KeygenElement)",
(...skipping 953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 for library_name in libraries: 1039 for library_name in libraries:
1039 self._libraries[library_name] = DartLibrary( 1040 self._libraries[library_name] = DartLibrary(
1040 library_name, template_loader, library_type, output_dir) 1041 library_name, template_loader, library_type, output_dir)
1041 1042
1042 def AddFile(self, basename, library_name, path): 1043 def AddFile(self, basename, library_name, path):
1043 self._libraries[library_name].AddFile(path) 1044 self._libraries[library_name].AddFile(path)
1044 1045
1045 def Emit(self, emitter, auxiliary_dir): 1046 def Emit(self, emitter, auxiliary_dir):
1046 for lib in self._libraries.values(): 1047 for lib in self._libraries.values():
1047 lib.Emit(emitter, auxiliary_dir) 1048 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« no previous file with comments | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698