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

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: rebase + fix error in sample_service.h 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
« no previous file with comments | « mojo/public/bindings/generators/mojom_cpp_generator.py ('k') | mojo/public/bindings/lib/remote_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d9b800aa77b1c336ce554353c508fe163e8a2b7d 100644
--- a/mojo/public/bindings/generators/mojom_data.py
+++ b/mojo/public/bindings/generators/mojom_data.py
@@ -127,12 +127,14 @@ def MethodFromData(kinds, data):
def InterfaceToData(interface):
return {
istr(0, 'name'): interface.name,
- istr(1, 'methods'): map(MethodToData, interface.methods)
+ istr(1, 'peer'): interface.peer,
+ istr(2, 'methods'): map(MethodToData, interface.methods)
}
def InterfaceFromData(kinds, data):
interface = mojom.Interface()
interface.name = data['name']
+ interface.peer = data['peer']
interface.methods = map(
lambda method: MethodFromData(kinds, method), data['methods'])
return interface
« no previous file with comments | « mojo/public/bindings/generators/mojom_cpp_generator.py ('k') | mojo/public/bindings/lib/remote_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698