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

Unified Diff: mojo/public/tools/bindings/pylib/mojom/generate/module.py

Issue 272323003: Mojo: Implement support for |Foo&| mojom syntax (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months 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/tools/bindings/pylib/mojom/generate/module.py
diff --git a/mojo/public/tools/bindings/pylib/mojom/generate/module.py b/mojo/public/tools/bindings/pylib/mojom/generate/module.py
index b60986aa5bf49bf0a983af98ba8f57c1eb80e8c6..345f432030fbc42f4ef0965a3f158a8b219add90 100644
--- a/mojo/public/tools/bindings/pylib/mojom/generate/module.py
+++ b/mojo/public/tools/bindings/pylib/mojom/generate/module.py
@@ -122,6 +122,15 @@ class Array(Kind):
Kind.__init__(self)
+class InterfaceRequest(Kind):
+ def __init__(self, kind=None):
+ self.kind = kind
+ if kind != None:
+ Kind.__init__(self, 'r:' + kind.spec)
+ else:
+ Kind.__init__(self)
+
+
class Parameter(object):
def __init__(self, name=None, kind=None, ordinal=None, default=None):
self.name = name
@@ -155,6 +164,7 @@ class Interface(Kind):
def __init__(self, name=None, client=None, module=None):
self.module = module
self.name = name
+ self.imported_from = None
if name != None:
spec = 'x:' + name
else:
« no previous file with comments | « mojo/public/tools/bindings/pylib/mojom/generate/generator.py ('k') | mojo/public/tools/bindings/pylib/mojom/generate/pack.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698