| Index: client/dom/scripts/dartgenerator.py
|
| diff --git a/client/dom/scripts/dartgenerator.py b/client/dom/scripts/dartgenerator.py
|
| index 92f80da59e48c4e79f6dc1c3b9f160f956c6fcee..6fb73267d38b300513a086a135ad9c1d9e0a1810 100755
|
| --- a/client/dom/scripts/dartgenerator.py
|
| +++ b/client/dom/scripts/dartgenerator.py
|
| @@ -1929,16 +1929,16 @@ class FrogInterfaceGenerator(object):
|
| pass
|
|
|
| def AddGetter(self, attr):
|
| - # Declare as a field in the native class.
|
| - # TODO(vsm): Mark this as native somehow.
|
| + # TODO(sra): Remove native body when Issue 829 fixed.
|
| self._members_emitter.Emit(
|
| - '\n'
|
| - ' $TYPE $NAME;\n',
|
| - NAME=attr.id, TYPE=attr.type.id, INTERFACE=self._interface.id)
|
| + '\n $TYPE get $NAME() native "return this.$NAME;";\n',
|
| + NAME=attr.id, TYPE=attr.type.id)
|
|
|
| def AddSetter(self, attr):
|
| - # TODO(vsm): Suppress for now. Should emit if there is no getter.
|
| - pass
|
| + # TODO(sra): Remove native body when Issue 829 fixed.
|
| + self._members_emitter.Emit(
|
| + '\n void set $NAME($TYPE value) native "this.$NAME = value;";\n',
|
| + NAME=attr.id, TYPE=attr.type.id)
|
|
|
| def AddSecondaryGetter(self, interface, attr):
|
| self._SecondaryContext(interface)
|
|
|