Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Unified Diff: mojo/public/bindings/generators/mojom_data.py

Issue 66353002: Mojo: RemotePtr<S> + bindings changes for Peer attribute. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move forward declarations to interface_declaration Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698