| Index: mojo/public/bindings/generators/mojom_data.py
|
| diff --git a/mojo/public/bindings/generators/mojom_data.py b/mojo/public/bindings/generators/mojom_data.py
|
| index 359351195f6161bc260338129db68fc1c949c652..848daaf0cc8a7168a57b62d457856f6d98d2f880 100644
|
| --- a/mojo/public/bindings/generators/mojom_data.py
|
| +++ b/mojo/public/bindings/generators/mojom_data.py
|
| @@ -126,13 +126,15 @@ def MethodFromData(kinds, data):
|
|
|
| def InterfaceToData(interface):
|
| return {
|
| - istr(0, 'name'): interface.name,
|
| - istr(1, 'methods'): map(MethodToData, interface.methods)
|
| + istr(0, 'name'): interface.name,
|
| + istr(1, 'attributes'): interface.attributes,
|
| + istr(2, 'methods'): map(MethodToData, interface.methods)
|
| }
|
|
|
| def InterfaceFromData(kinds, data):
|
| interface = mojom.Interface()
|
| interface.name = data['name']
|
| + interface.attributes = data['attributes']
|
| interface.methods = map(
|
| lambda method: MethodFromData(kinds, method), data['methods'])
|
| return interface
|
|
|