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

Unified Diff: tools/dom/scripts/systemhtml.py

Issue 13444007: Removing all Worker-related APIs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_WorkerContext.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemhtml.py
diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
index 99c27e78ca19c4f38b2bd85bdb070feb6ee5fdd9..2a88e180878cffcbb35bec095a9ab37ae60a45d8 100644
--- a/tools/dom/scripts/systemhtml.py
+++ b/tools/dom/scripts/systemhtml.py
@@ -70,7 +70,7 @@ _js_custom_members = monitored.Set('systemhtml._js_custom_members', [
'Window.location',
'Window.open',
'Window.requestAnimationFrame',
- 'WorkerContext.indexedDB',
+ # 'WorkerContext.indexedDB', # Workers
])
_js_custom_constructors = monitored.Set('systemhtml._js_custom_constructors', [
@@ -395,6 +395,7 @@ js_support_checks = dict({
'WebKitCSSMatrix': "JS('bool', '!!(window.WebKitCSSMatrix)')",
'WebKitPoint': "JS('bool', '!!(window.WebKitPoint)')",
'WebSocket': "JS('bool', 'typeof window.WebSocket != \"undefined\"')",
+ 'Worker': "JS('bool', '(typeof window.Worker != \"undefined\")')",
'XSLTProcessor': "JS('bool', '!!(window.XSLTProcessor)')",
}.items() +
dict((key,
@@ -429,12 +430,15 @@ class HtmlDartInterfaceGenerator(object):
def GenerateCallback(self):
"""Generates a typedef for the callback interface."""
+ typedef_name = self._renamer.RenameInterface(self._interface)
+ if not typedef_name:
+ return
+
info = GetCallbackInfo(self._interface)
code = self._library_emitter.FileEmitter(self._interface.id,
self._library_name)
code.Emit(self._template_loader.Load('callback.darttemplate'))
- typedef_name = self._renamer.RenameInterface(self._interface)
code.Emit('typedef void $NAME($PARAMS);\n',
LIBRARYNAME='dart.dom.%s' % self._library_name,
NAME=typedef_name,
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/impl/impl_WorkerContext.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698