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

Unified Diff: mojo/public/bindings/generators/mojom_cpp_generator.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_cpp_generator.py
diff --git a/mojo/public/bindings/generators/mojom_cpp_generator.py b/mojo/public/bindings/generators/mojom_cpp_generator.py
index e5c764e08ba645ee41a4a64b3709157fba898b65..e159b829e114f69605d1974cbfd13fee58c57869 100644
--- a/mojo/public/bindings/generators/mojom_cpp_generator.py
+++ b/mojo/public/bindings/generators/mojom_cpp_generator.py
@@ -309,9 +309,11 @@ class CPPGenerator(object):
methods.append(
" virtual void %s(%s) %s;" %
(method.name, ", ".join(params), method_postfix))
DaveMoore 2013/11/11 18:49:05 Since this ends up being a statically defined thin
+ peer = interface.attributes['Peer']
return template.substitute(
CLASS=interface.name,
- METHODS='.\n'.join(methods))
+ PEER=peer,
+ METHODS='\n'.join(methods))
def GetInterfaceClassDeclarations(self):
template = self.GetTemplate("interface_declaration")

Powered by Google App Engine
This is Rietveld 408576698