| Index: tools/dom/scripts/dartgenerator.py
|
| diff --git a/tools/dom/scripts/dartgenerator.py b/tools/dom/scripts/dartgenerator.py
|
| index 8635eff719db6b0f94df2dca1726caad902ea343..5954d4e2c3b595187e78c4f76d2ec5c92b56ba70 100755
|
| --- a/tools/dom/scripts/dartgenerator.py
|
| +++ b/tools/dom/scripts/dartgenerator.py
|
| @@ -86,7 +86,7 @@ class DartGenerator(object):
|
| self._IsCompoundType(database, type_name)):
|
| continue
|
| # Ignore constructor warnings.
|
| - if not (interface.id in ['DOMWindow', 'WorkerContext'] and
|
| + if not (interface.id in ['Window', 'WorkerContext'] and
|
| type_name.endswith('Constructor')):
|
| _logger.warn('removing %s in %s which has unidentified type %s' %
|
| (node_name, interface.id, type_name))
|
| @@ -213,6 +213,7 @@ class DartGenerator(object):
|
| ARG = idlnode.IDLArgument([('Type', ('ScopedName', 'object')), ('Id', 'arg')])
|
| for interface in database.GetInterfaces():
|
| for operation in interface.operations:
|
| - call_with = operation.ext_attrs.get('CallWith', '').split('|')
|
| + call_with = (operation.ext_attrs.get('CallWith', '').split('|') +
|
| + operation.ext_attrs.get('ConstructorCallWith', '').split('|'))
|
| if 'ScriptArguments' in call_with:
|
| operation.arguments.append(ARG)
|
|
|