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

Unified Diff: third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl

Issue 890843003: Revert of Update mojo sdk to rev 8af2ccff2eee4bfca1043015abee30482a030b30 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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: third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl b/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
index a475a584e351e51473ea96c0df75e8d7a5ac1eb4..1e9f0bd68c4914b93d451b75b6a036e22a862ec1 100644
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/python_templates/module.py.tmpl
@@ -36,6 +36,9 @@
class {{interface|name}}(object):
__metaclass__ = _reflection.MojoInterfaceType
DESCRIPTOR = {
+{% if interface.client %}
+ 'client': lambda: {{interface.qualified_client|fully_qualified_name}},
+{% endif %}
'fully_qualified_name': '{% if namespace %}{{namespace|replace(".","::")}}::{% endif %}{{interface|fully_qualified_name|replace(".","::")}}',
'methods': [
{% for method in interface.methods %}

Powered by Google App Engine
This is Rietveld 408576698