| Index: tools/dom/scripts/systemnative.py
|
| diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
|
| index b21364faae616300342d68accc2edf73032e9cb5..648f2eb059359fc8b28f62634967c2c18909b129 100644
|
| --- a/tools/dom/scripts/systemnative.py
|
| +++ b/tools/dom/scripts/systemnative.py
|
| @@ -198,6 +198,21 @@ class DartiumBackend(HtmlDartGenerator):
|
| '}\n',
|
| INTERFACE_NAME=self._interface.id);
|
|
|
| + def EmitHelpers(self, base_class):
|
| + # Emit internal constructor which is necessary for Dartium bindings
|
| + # to construct wrappers from C++. Eventually it should go away
|
| + # once it is possible to construct such an instance directly.
|
| + if not self._members_emitter:
|
| + return
|
| +
|
| + super_constructor = ''
|
| + if base_class and base_class != 'NativeFieldWrapperClass1':
|
| + super_constructor = ' : super.internal()'
|
| + self._members_emitter.Emit(
|
| + ' $CLASSNAME.internal()$SUPERCONSTRUCTOR;\n',
|
| + CLASSNAME=self._interface_type_info.implementation_name(),
|
| + SUPERCONSTRUCTOR=super_constructor)
|
| +
|
| def _EmitConstructorInfrastructure(self,
|
| constructor_info, constructor_callback_cpp_name, factory_method_name,
|
| argument_count=None):
|
|
|