| Index: tools/dom/scripts/systemhtml.py
|
| diff --git a/tools/dom/scripts/systemhtml.py b/tools/dom/scripts/systemhtml.py
|
| index f960434674d7d21029f23ef0943997db9b670698..bae81fdf8bc0b522e5b726282563d77b8b7dac92 100644
|
| --- a/tools/dom/scripts/systemhtml.py
|
| +++ b/tools/dom/scripts/systemhtml.py
|
| @@ -70,6 +70,17 @@ _js_custom_members = set([
|
| 'WorkerContext.indexedDB',
|
| ])
|
|
|
| +_js_custom_constructors = set([
|
| + 'AudioContext',
|
| + 'Blob',
|
| + 'MutationObserver',
|
| + 'Notification',
|
| + 'RTCIceCandidate',
|
| + 'RTCPeerConnection',
|
| + 'RTCSessionDescription',
|
| + 'SpeechRecognition',
|
| + ])
|
| +
|
| # Classes that offer only static methods, and therefore we should suppress
|
| # constructor creation.
|
| _static_classes = set(['Url'])
|
| @@ -611,12 +622,7 @@ class Dart2JSBackend(HtmlDartGenerator):
|
|
|
| def GenerateCustomFactory(self, constructor_info):
|
| # Custom factory will be taken from the template.
|
| - return self._interface.doc_js_name in [
|
| - 'AudioContext',
|
| - 'Blob',
|
| - 'MutationObserver',
|
| - 'SpeechRecognition',
|
| - ]
|
| + return self._interface.doc_js_name in _js_custom_constructors
|
|
|
| def IsConstructorArgumentOptional(self, argument):
|
| return 'Optional' in argument.ext_attrs
|
|
|