| 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,
|
|
|