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

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

Issue 11885031: Adding support checks for ApplicationCache. (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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 'Window.location', 63 'Window.location',
64 'Window.open', 64 'Window.open',
65 'Window.requestAnimationFrame', 65 'Window.requestAnimationFrame',
66 'Window.webkitCancelAnimationFrame', 66 'Window.webkitCancelAnimationFrame',
67 'Window.webkitRequestAnimationFrame', 67 'Window.webkitRequestAnimationFrame',
68 'WorkerContext.indexedDB', 68 'WorkerContext.indexedDB',
69 ]) 69 ])
70 70
71 js_support_checks = { 71 js_support_checks = {
72 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')", 72 'ArrayBuffer': "JS('bool', 'typeof window.ArrayBuffer != \"undefined\"')",
73 'DOMApplicationCache': "JS('bool', '!!(window.applicationCache)')",
73 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')", 74 'DOMFileSystem': "JS('bool', '!!(window.webkitRequestFileSystem)')",
74 'HTMLContentElement': "Element.isTagSupported('content')", 75 'HTMLContentElement': "Element.isTagSupported('content')",
75 'HTMLDataListElement': "Element.isTagSupported('datalist')", 76 'HTMLDataListElement': "Element.isTagSupported('datalist')",
76 'HTMLDetailsElement': "Element.isTagSupported('details')", 77 'HTMLDetailsElement': "Element.isTagSupported('details')",
77 'HTMLEmbedElement': "Element.isTagSupported('embed')", 78 'HTMLEmbedElement': "Element.isTagSupported('embed')",
78 # IE creates keygen as Block elements 79 # IE creates keygen as Block elements
79 'HTMLKeygenElement': "Element.isTagSupported('keygen') " 80 'HTMLKeygenElement': "Element.isTagSupported('keygen') "
80 "&& (new Element.tag('keygen') is KeygenElement)", 81 "&& (new Element.tag('keygen') is KeygenElement)",
81 'HTMLMarqueeElement': "Element.isTagSupported('marquee')" 82 'HTMLMarqueeElement': "Element.isTagSupported('marquee')"
82 "&& (new Element.tag('marquee') is MarqueeElement)", 83 "&& (new Element.tag('marquee') is MarqueeElement)",
(...skipping 965 matching lines...) Expand 10 before | Expand all | Expand 10 after
1048 for library_name in libraries: 1049 for library_name in libraries:
1049 self._libraries[library_name] = DartLibrary( 1050 self._libraries[library_name] = DartLibrary(
1050 library_name, template_loader, library_type, output_dir) 1051 library_name, template_loader, library_type, output_dir)
1051 1052
1052 def AddFile(self, basename, library_name, path): 1053 def AddFile(self, basename, library_name, path):
1053 self._libraries[library_name].AddFile(path) 1054 self._libraries[library_name].AddFile(path)
1054 1055
1055 def Emit(self, emitter, auxiliary_dir): 1056 def Emit(self, emitter, auxiliary_dir):
1056 for lib in self._libraries.values(): 1057 for lib in self._libraries.values():
1057 lib.Emit(emitter, auxiliary_dir) 1058 lib.Emit(emitter, auxiliary_dir)
OLDNEW
« tools/dom/scripts/generator.py ('K') | « tools/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698